Browsing index pages (3 articles)
↧
Creating script to move files based on date or filename
I have an FTP process that is constantly putting files into a directory. The date created is part of the filename in a format like this: YYYY-MM-DD-HH-MM-SS-xxxxxxxxxx.wav I would like to move the...
View ArticleAnswer by MelBurslan for Creating script to move files based on date or filename
### capitalization is important. Space separated. ### Null is a month 0 space filler and has to be there for ease of use later. MONTHS=(Null Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec) cd...
View ArticleAnswer by user79743 for Creating script to move files based on date or filename
This script may help. (please remove the echo to actually mv files): #!/bin/bash shopt -s nullglob month=(Jan Feb Mar May Apr Jun Jul Aug Sep Oct Nov Dec) for y in 2016; do for m in {01..12}; do...
View Article
Browsing index pages (3 articles)