Created
January 20, 2016 18:07
-
-
Save timsuchanek/e8455ff84c7d4d1d5191 to your computer and use it in GitHub Desktop.
copying files to subfolders with fish shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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