0

file_list='find /home/attrib/ -name *.csv'
for fn in $file_list
do
echo "Inside the loop"
echo $fn
done

I need the list files available in the specified directory
find /home/attrib/ -name *.csv - This works on the command line and gives the desired output .
But the above script Gives me output sme thing like

find
/home/attrib/
-name
*.csv

Am completely new to shell scripting ...Please help me

2
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by shyamalaa
0

Check which quote you are using. On the keyboard it should be the one that slants from the upper left to the lower right, not the other way around and not straight up and down. In the code, it should also appear to slant in that direction and not appear in one of the other two ways.

0

Thanks for the reply ..But am not getting wat u r trying to tell . There is only one single quote available right " ' " . Can u explain it a lill more pls

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.