How to rename multiple files from bash
Rename all *html files to *test:
for x in `ls *html`; do mv $x `echo $x | sed -e "s/html/test/"`; done
Bash for:
for var in some-list ; do command ; done
Posted by: Z24 | Sun, Aug 27 2006 |
Category: /linux |
Permanent link |
home
Tagged as: command-line, linux, programming, script, shell
http://www.mycomputingart.com/
To contact the webmaster and author write to: info<at>mycomputingart<dot>com
© mycomputingart.com, year(today()).


