Search Results

Search: Posts Made By: bboy2143
2,143
Posted By pamu
This can be written as.. ...
This can be written as..

Condition?True:FalseHere we are using var!=NF as condition.
If condition satisfies then execute true part. If condition fails then execute false part.

As var is not...
2,143
Posted By pamu
It's ok.. awk -v var="$1" # It uses var...
It's ok..

awk -v var="$1" # It uses var for saving $1(number which are passed to the script is $1).

'{ print var!="NF"?$var:$NF}' # Here we check if variable var is not equal to "NF". If...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy