7
edits
No edit summary |
No edit summary |
||
| Line 29: | Line 29: | ||
This has the benefit of using a full regular expression in the sed part so you can do much more complex renames, it is also generally more widely available as rename is not available in as many places as ls, awk, sed and sh. | This has the benefit of using a full regular expression in the sed part so you can do much more complex renames, it is also generally more widely available as rename is not available in as many places as ls, awk, sed and sh. | ||
ls *.php | awk '{print("mv "$1" "$1)}' | sed 's/php/gif/2' | /bin/sh | ls *.php | awk '{print("mv "$1" "$1)}' | sed 's/php$/gif/2' | /bin/sh | ||
[[Category:HowTo]] | [[Category:HowTo]] | ||
edits