Skip to content

Instantly share code, notes, and snippets.

@kairusds
Last active November 2, 2021 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kairusds/73eb6150987601f7977e26cb072bbd76 to your computer and use it in GitHub Desktop.
Save kairusds/73eb6150987601f7977e26cb072bbd76 to your computer and use it in GitHub Desktop.
Creates empty files/clone files from an ls output. https://unix.stackexchange.com/a/456636/499476
for file in $(<files.txt); do cp file_clone_source "$file"; done
xargs -d "\n" touch -- < files.txt
ls > files.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment