Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check()
- {
- if[$# != 4]then
- echo "Error, need 4 parameters"
- fi
- arg1=$1
- arg1="{print \$${arg1}}"
- arg2="/etc/$2"
- arg3="^$3"
- arg4=$4
- echo $arg1 $arg2 $arg3 $arg4
- commandLine="awk -F':' $arg1 $arg2 |grep $arg3 > $arg4"
- echo $commandLine
- #awk -F":" $commandLine1 $commandeLine2 | grep $commandLine3 > $commandLine4
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement