I am making a script that will show the list of JPG files and saving
that list with xargs for further processing. When I am using echo to
get the file names it adds "./" in the start of every filename.
find . -type f -iname '*.JPG' -print0 |
xargs -0 -n 1 -P 1 -I {} \
echo The file is \'{}\'!
It is showing following output:
The file is './DSC_7555.JPG'!
How to remove "./" in the start of every file name?
--
Thanks
Arshpreet Singh
http://arshpreetsingh.wordpress.com/
It’s not that I’m so smart, it’s just that I stay with problems longer.
-Albert Einstein
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/