Re: Bash Help: Renaming all files in a Directory

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

 



Off the top of my head...
$ for f in *.jpg; do; mv $f `echo $f | sed 's/ //g'`; done

hth

--wpd

I was able to benefit from this tip as I had a bunch of web pages
printed to postscript files that I wanted to convert to pdf so I used
the command:

for f in *.ps; do ps2pdf "$f";done

It worked like a charm.

I love the command line tips & tricks because you can use them in so
many situations.

Jacques B.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux