Created
May 26, 2011 23:21
-
-
Save dunkfordyce/994338 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
// list a directory | |
{ | |
command: 'ls', | |
arguments: [ | |
{'uri': '/home/dunk/*.json'} | |
] | |
} | |
// list a directory and grep the returned files for foo | |
{ | |
command: 'ls', | |
arguments: [ | |
{'uri': '/home/dunk/*.json'} | |
], | |
stdout: { | |
command: 'grep', | |
arguments: [ | |
{'regexp': 'foo'} | |
] | |
} | |
} | |
// list a directory and cp all files to the same name + '.bak' | |
{ | |
command: 'ls', | |
arguments: [ | |
{'uri': '/home/dunk/*.json'}, | |
], | |
stdout: { | |
command: 'cp', | |
arguments: [ | |
{'stdin': '.filename'}, | |
{'stdin': {expr: '.filename+".bak"'}} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment