Skip to content

Instantly share code, notes, and snippets.

@high5
Last active August 29, 2015 14:04
Show Gist options
  • Save high5/d90992917c1f67523d4b to your computer and use it in GitHub Desktop.
Save high5/d90992917c1f67523d4b to your computer and use it in GitHub Desktop.
$*_sed_pattern あるシェルスクリプトに渡された引数を加工して、さらに別のシェルスクリプトに引数として渡すパターン
#!/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