Last active
August 29, 2015 14:04
-
-
Save high5/d90992917c1f67523d4b to your computer and use it in GitHub Desktop.
$*_sed_pattern あるシェルスクリプトに渡された引数を加工して、さらに別のシェルスクリプトに引数として渡すパターン
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/sh | |
args=`echo "$*" | sed -e 's/ grpg/ htdocs\/grpg/g' -e 's/^grpg/htdocs\/grpg/g'` | |
./test2.sh $args |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment