Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ touch file1 'filename with spaces'
$ for file in *; do cp "$file" "$file.bak"; done
$ ls -1
file1
file1.bak
filename with spaces
filename with spaces.bak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.