mkdir -p folder/{1..100}/{one,two,three}
This will create a folder structure with 1 through 100 then the children of one two and three inside of it. Noticed that the sub folder one two and three has no space separating them except the comma.
mkdir -p folder/{1..100}/{one,two,three}
cd needRotate90CW
# Remove all metadata from the images
exiftool -all= *.jpg# Rotate them 90 degrees counter clockwise and overwrite
exiftool -orientation="Rotate 90 CW" -overwrite_original *.jpg
grep -v -F -x -f file1 file2
number=$(echo $filename | egrep -o '[[:digit:]]{5}' | head -n1)
number=${filename:offset:length}
stuff_digits_... you can use awk:number=$(echo $filename | awk -F _ '{ print $2 }')
number=$(echo $filename | tr -cd '[[:digit:]]')
I need to loop through the directory and take the filename and crop off the name assuming that the first 6 numbers are the ID number then change it to the final form. I had to ignore all the spacing and junk after the number and just made the assumption that all I needed was the numbers in front of the file.find . -print0 | while read -d $'\0' file; do number=$(echo $file | egrep -o '[[:digit:]]{6}' | head -n1); mv ${number}* ${number}.jpg ; done
for x in `cat /tmp/list`; do number=$(echo $x | egrep -o '[[:digit:]]{6}' | head -n1); mv ${number}* ${number}.jpg; done
for x in `ls *JPG`; do mv $x $(basename $x .JPG).jpg; done