Search Results

Search: Posts Made By: bhagya123
2,109
Posted By jim mcnamara
The space character is the concatenation operator...
The space character is the concatenation operator in awk


$ echo "333" | awk '{ $0="space in front " $0 "no space after"; print $0}'
space in front 333no space after
2,109
Posted By rdrtx1
give space. otherwise it will think it's another...
give space. otherwise it will think it's another variable.
6,327
Posted By Corona688
There's no point using cut inside awk. ...
There's no point using cut inside awk.

out_value=substr($1,9,3)

...but for the record you could use backticks, variable=`command`; ...at a very large performance cost.
Showing results 1 to 3 of 3

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