xargs -I{} mv {} {}.bak

Category: Text Processing

xargs -I{} mv {} {}.bak

Use placeholder to pass each input as argument

Uses {} as a placeholder that gets replaced by each input item. This renames every file by adding a .bak extension.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.