Search Results

Search: Posts Made By: biscayne
5,316
Posted By Don Cragun
When trying rdrtx1's script in message #6 in this...
When trying rdrtx1's script in message #6 in this thread on OS X, I get errors about printf not recognizing %V as a format specifier.

The following script seems to work with your input files. ...
5,316
Posted By rdrtx1
try: awk '{for (i=2; i<=NF; i++) print...
try:
awk '{for (i=2; i<=NF; i++) print "VAR_"$1"_"i-1"="$i}' FS=" *, *" infile
pipe to sh, use back quotes, or wrap in $(...) to set variables.
Showing results 1 to 2 of 2

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