Created
October 19, 2014 15:23
-
-
Save anonymous/90827eb9f781e430ee7c to your computer and use it in GitHub Desktop.
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
# Try the command with --prompt to confirm syntax | |
me@host:~$ find dir -name '*.less' | sed 's/^\(\(.*\).less\)$/\1 > \2.css/' | xargs -p -n 3 lessc | |
lessc dir/styles.less > dir/styles.css ?... | |
lessc dir/test.less > dir/test.css ?... | |
lessc ?... | |
# Does not create file | |
me@host:~$ ls dir/styles.css | |
ls: cannot access cg/app/evaluator/styles.css: No such file or directory | |
# Copy paste the exact syntax from xargs above | |
me@host:~$ lessc dir/styles.less > dir/styles.css | |
# And it works? | |
me@host:~$ ls dir/styles.css | |
dir/styles.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment