I need to copy all files listed in TXT file from one location to another location.
/1132526906_tt_nad87_1.jpg /thumb/t1132526906_tt_nad87_1.jpg /1132526906_tt_nad87_10.jpg /thumb/t1132526906_tt_nad87_10.jpg /1132526906_tt_nad87_11.jpg /thumb/t1132526906_tt_nad87_11.jpg /1132526907_tt_nad87_12.jpg /thumb/t1132526907_tt_nad87_12.jpg /1132526907_tt_nad87_13.jpg /thumb/t1132526907_tt_nad87_13.jpg /1132526908_tt_nad87_14.jpg /thumb/t1132526908_tt_nad87_14.jpg
I can create a CSV file and divide
target with some usable character.
I would like to copy file
/thumb/t1132526906_tt_nad87_1.jpg - rename and move.
Is there some command line command to do it? I found examples but these examples do only copying (without rename).
I created this script:
#!/bin/bash input="/data/web/web/gallery/data.csv" while IFS=',' read from to do echo "from: $from, to: $to" done < "$input"
but no line is "echoed", it seems that
data.csv file is not read. Is there something wrong?