Hi all,
Am piping a list of files to "xargs rm -v".
The files may have spaces in their names.
Please advise how do i deal with it...
Thanks.
Hi all,
Am piping a list of files to "xargs rm -v".
The files may have spaces in their names.
Please advise how do i deal with it...
Thanks.
This should work:
$ ls | xargs -I{} rm -v {}
OK.Thanks scottn.
heh , I always do
find . -type f -print0 | xargs -0 ls -lh
You never know what you can get in file name and white space is just simple case ...