Skip to content

Instantly share code, notes, and snippets.

@timsuchanek
Created January 20, 2016 18:07
Show Gist options
  • Save timsuchanek/e8455ff84c7d4d1d5191 to your computer and use it in GitHub Desktop.
Save timsuchanek/e8455ff84c7d4d1d5191 to your computer and use it in GitHub Desktop.
copying files to subfolders with fish shell
#!/bin/fish
set modes landscape portrait
for file in (ls -d */)
for mode in $modes
for i in (seq 4)
cp lines.x-template.js {$file}lines.{$mode}.{$i}.js
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment