Search Results

Search: Posts Made By: hare_krishna
1,264
Posted By hare_krishna
Need help on file processing algorithm.
Hi,
I have a data file having 3 fields. AC No, Start date, end date.

101|07/19/2008|07/21/2008
102|07/20/2008|07/21/2008
101|07/18/2008|07/21/2008
105|07/16/2008|07/21/2008...
20,620
Posted By hare_krishna
You can try #!/bin/bash while ( `ls...
You can try

#!/bin/bash

while ( `ls -1 /source/*|head -1` )
do
file=`ls -1 /source/*|head -1`
mv /source/$file /target
done
Showing results 1 to 2 of 2

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