Search Results

Search: Posts Made By: GermanicGalore
5,803
Posted By GermanicGalore
awk for variable with a space
Hi experts,

why does
$ echo "one two three" | awk '{$3="my tree"; print $0}'
one two my tree

work,
but
$ var="my tree"
$ echo "one two three" | awk '{$3="'$var'"; print $0}'
awk: {$3="my...
2,139
Posted By GermanicGalore
Fill fields with awk from an array?
Hi experts,

I have been trying for a while to accomplish the following task using awk, and I just don't seem find find a way. I am not particular about using awk, it just seemed like the logical...
Showing results 1 to 2 of 2

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