Search Results

Search: Posts Made By: later_troy
10,056
Posted By Scott
The first one turns ("casts") the "strings" into...
The first one turns ("casts") the "strings" into numbers.

If the output's the same on both, it's probably because the input is already numerical.


$ echo a b c | awk '{ print $1, $2, $3 }'
a...
11,078
Posted By Don Cragun
We JUST want you to set LC_ALL=C in the...
We JUST want you to set LC_ALL=C in the environment of the awk, sed, or cut command you're trying to run. We aren't trying to get you to change the environment in your shell for other commands that...
11,078
Posted By RudiC
Well, puzzles me as well. I tried to replicatre...
Well, puzzles me as well. I tried to replicatre your file and getod -bc file
0000000 347 003 062 060 061 066 060 061 060 063 061 066 063 070 061 065
347 003 2 0 1 6 0 1 0 3 ...
3,460
Posted By cfajohnson
That will fail if $AllFile contains whitespace. ...
That will fail if $AllFile contains whitespace.

}' "$AllFile.tmp" > "$AllFile"
3,460
Posted By Chubler_XL
BEGIN and END are part of an awk script: called...
BEGIN and END are part of an awk script: called within the fileformatting ksh function:

as they contain no statements they could be removed e.g:
awk -v CleanupMask=${CleanupMask} '
{

...
1,559
Posted By Corona688
Please use code tags, not icode tags, that is the...
Please use code tags, not icode tags, that is the https://www.unix.com/images/editor/code.png button.

First it declares Dis_array as an array, set -A is how it's done in KSH -- other shells use...
4,069
Posted By vgersh99
man ksh, yields: read [ -ACprsv ] [...
man ksh, yields:

read [ -ACprsv ] [ -d delim] [ -n n] [ [ -N n] [ [ -t timeout] [ -u unit] [ vname?prompt ] [ vname ... ]
The shell input mechanism. One line is read and is...
Showing results 1 to 7 of 7

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