here's my problem, that i can't solve on my own
i have some directory "/some/stupid directory"
and i have some files "/some/stupid directory/file 1" and "/some/stupid directory/file 2"
i'm using
it give wrong output [which is as it should be in this case]:
if i try
i get:
which is not what i wan, but it correct from point of sh view
I want to add doulb (or single) equote to each line ls outputs, before it's passed to for. I tried awk, but i'm noob in this, and failed many times....
i would like correct output to be:
I hope I gave good enough examples, and you did understand what i'm trying to do, if not let me know, i'll try to explain better.
Removing spaces from files with my Win****.sh script can't be used here, because this script will operate on files that i'm downloading/uploading with torrents
Thanks in advance
i have some directory "/some/stupid directory"
and i have some files "/some/stupid directory/file 1" and "/some/stupid directory/file 2"
i'm using
Code:
for fileName in `ls "/some/stupid directory/"`; do
echo "*** file: $1/$fileName"
done
Code:
*** file: /some/stupid directory/file
*** file: /some/stupid directory/1
*** file: /some/stupid directory/file
*** file: /some/stupid directory/2
if i try
Code:
for fileName in "`ls "/some/stupid directory/""`; do
echo "*** file: $1/$fileName"
done
Code:
*** file: /some/stupid directory/file 1
/some/stupid directory/file 2
I want to add doulb (or single) equote to each line ls outputs, before it's passed to for. I tried awk, but i'm noob in this, and failed many times....
i would like correct output to be:
Code:
*** file: /some/stupid directory/file 1
*** file: /some/stupid directory/file 2
I hope I gave good enough examples, and you did understand what i'm trying to do, if not let me know, i'll try to explain better.
Removing spaces from files with my Win****.sh script can't be used here, because this script will operate on files that i'm downloading/uploading with torrents
Thanks in advance