Matt McCutchen's Web Site
/
mgear
/
mgear.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0a276076a59830933b2e4b0927dc0b28feccfc62
[mgear/mgear.git]
/
experiments
/
mk-find-shell-use
1
#!/bin/bash
2
sed -n -r -f /dev/fd/3 3<<'EOS' "$@"
3
s/^ (([^$'(){}<>|;&*?`]|'[^']*'|\$[^(]|\$\([^)]*\))*)([(){}<>|;&*?`]|\$\$)(.*)$/\1SHELL!\3!\4/p
4
EOS