Hi,
I have lets say 10 files , I need to process them one by one.
So I need a command to get one file name at a time to process it into a variable
Example
Files
P1111.dat
P3344.dat
S344.dat
...
v_file_name = 'p111.dat' .. I will rename it to something after processing
second iteration v_file_name = p3344.dat
Etc.
Thanks would really appreciate your help
---------- Post updated at 02:42 PM ---------- Previous update was at 01:42 PM ----------
Never mind got it
cd $HOME
for file in $HOME/[pP]*.*
do
echo $file
done