Re: Stupid spaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 10:51 PM 02/12/2004, Agus Budy Wuysang wrote:
Scott Taylor wrote:

If you're lucky enough to have bash V2, use (faster):

for f in *;do mv -i "$f" "${f// /}";done

otherwise:

for f in *;do mv -i "$f" "$(echo $f|tr -d ' ')";done

This last works, it also works in more then just bash so I like it best. I have more then one OS that store Windows files for users. :)
I don't remember using echo in it last time but, it works...


Cheers.

Scott.

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux