Skip to content

Instantly share code, notes, and snippets.

@oolong32
Created April 25, 2017 10:56
Show Gist options
  • Save oolong32/00825987ada7325804838fb4b24fcbc2 to your computer and use it in GitHub Desktop.
Save oolong32/00825987ada7325804838fb4b24fcbc2 to your computer and use it in GitHub Desktop.
shellscript – create file in a list of folders
for i in `ls -1`
do touch $i/filename.txt && echo "https://www.bla.com“ >> $i/filename.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment