I am trying to write a unix shell script which will list all the names of the .csv in a current folder( this folder may have other sub folders and other .txt files, ) to A.txt file .
After the above A.txt file is created I am doing some processing and then after my processing is finished I want to move all the file in the A.txt file to a archive directory.Can some one help me with the script pls..
Thanks,Mora
#!/bin/bash
ls /path/*.csv /path/csv-list
... ... ...
... ... ...
for i in `cat /path/csv-list`
do
cp $i /archive-directory
done
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |