Skip to content

Instantly share code, notes, and snippets.

@AlexKMDev
Created March 6, 2014 17:20
Show Gist options
  • Select an option

  • Save AlexKMDev/9394737 to your computer and use it in GitHub Desktop.

Select an option

Save AlexKMDev/9394737 to your computer and use it in GitHub Desktop.
add newline to list of files
#!/bin/sh
for file in $(cat list.txt); do sed -i '' -e '$a\' $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment