Bash scripting dealing with any characters in strings or filenames
Imagine a file list, list.txt, like this one
1 2 3 |
image1.jpg image2.jpg image3.jpg |
Naturally you could deal with it like so
1 2 3 4 |
cat list.txt | while read i; do FILE="$i" dosomething "$FILE" done |
Or just use the $i variable as its already the file and do aRead More…