Advertisement
Guest User

Untitled

a guest
Jul 18th, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. $ for b in configb configb1 configb2 configb_test;
  2. do
  3.   echo $b $(DB_NAME=$b; echo '%%configcommon' | sed -e "s/%%configcommon/${DB_NAME/configb@(1|2|)/configcommon}/g" )
  4. done
  5. configb configcommon
  6. configb1 configcommon
  7. configb2 configcommon
  8. configb_test configcommon_test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement