Search Results

Search: Posts Made By: falcon2noah
2,338
Posted By Scrutinizer
mvf() { IFS=, read line set -- $line ...
mvf()
{
IFS=, read line
set -- $line
mv "$@" /path/to/dir }
}
mvf < infile
2,338
Posted By sjc
cat file | awk '{ split($0,temp," "); print "mv "...
cat file | awk '{ split($0,temp," "); print "mv " temp[1] "Desination" }'

you can pass this to a shell script and can run that script to mv or cp
2,338
Posted By Ygor
Try something like...tr , \\n < input.csv | while...
Try something like...tr , \\n < input.csv | while read file; do mv "$file" /path/to/destination; done
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy