fsanchez13
Technical User
I have the following line in a script. Is it possbile to change the red text to an inputted variable? such as $1 an then type script variable??
nawk '/TIME/ {currtime=$2} /SECTION 12:/ {sec=$1" " $2" " $3" " $4} /SECTION 12:/ {print currtime " "sec} /TGNAME/,/S570-297271423/' 063003.txt > section12
nawk '/TIME/ {currtime=$2} /SECTION 12:/ {sec=$1" " $2" " $3" " $4} /SECTION 12:/ {print currtime " "sec} /TGNAME/,/S570-297271423/' 063003.txt > section12