Search Results

Search: Posts Made By: LDHB2012
2,463
Posted By Don Cragun
Hi David, The awk command l=length($1) sets l...
Hi David,
The awk command l=length($1) sets l to the number of characters in the first field. In your example, this sets l to 35 because there are 35 characters in...
2,463
Posted By Don Cragun
The printf utility is not unique to bash; it is a...
The printf utility is not unique to bash; it is a standard utility present on any system that supports the common set of utilities defined by the POSIX standards and the Single UNIX Specification. ...
6,341
Posted By Scrutinizer
I think for some awks it is ambiguous what is the...
I think for some awks it is ambiguous what is the target of the redirection. To remove this ambiguity, you could either assign the composition of the filename to a variable first, like I suggested,...
6,341
Posted By Scrutinizer
The trouble is with: { print $0 >> i".txt" } ...
The trouble is with:
{ print $0 >> i".txt" }
Try:
{ f=i ".txt"; print>f }
6,341
Posted By Yoda
I'm not sure about OSX. I tested this code...
I'm not sure about OSX.

I tested this code in following systems and it works fine


gawk in GNU/Linux

awk in HP-UX

/usr/xpg4/bin/awk in SunOS
Showing results 1 to 5 of 5

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