/ Published in: Bash
Expand |
Embed | Plain Text
for f in *.txt; do mv "$f" "${f%.txt}.bak"; done #% removes characters after it while # removes those before it
You need to login to post a comment.
for f in *.txt; do mv "$f" "${f%.txt}.bak"; done #% removes characters after it while # removes those before it
You need to login to post a comment.