Search

You can find the results of your search below.

Matching pagenames:

Some useful awk scripts: 13 Hits
leplus stumbleupon twitter~~ ===== Some useful awk scripts ===== An example of a loop in awk <code> i = 1 while ( i <= 2 ) { print $i ++i } </... ecord when the number of fields is unknown <code> awk 'BEGIN { FS = "/" } { print $NF }' </code> In thi... is unknown <code> VAR1=`cat $RECORD | \ awk 'BEGIN { FS=":" } { for (i=2;i<NF;i++) print $i}'
Working out maximum length of a string: 6 Hits
LENGTH=`echo $LINE | tr -cs "[a][A]" " [#*]" | awk ' BEGIN { FS = "#" } max=0 { fo... A are converted into a single # (tr command). The awk script then separates the fields using # as the d... t LENGTH = `echo $LINE | tr -cs "[a][A]" "[#*]" | awk -f test.awk` if ( $LENGTH > $MAX ) then set MAX = $LENGTH endif end echo $MAX </code> I
Using the shell eval command: 2 Hits
e values you need to use some other program (e.g. awk or sed) to split the combined result into separat... %d %m %Y'` </code> and then break up $result with awk or cut for example. Instead you can write: <code>
Netbackup Overview: 2 Hits
ia -dp $DATADOMAIN -stype DataDomain -l -legacy | awk '{ if ( $1 == "IMAGE" ) print "bpimagelist -backupid "$4" -l" }'|sh | awk '{ if ( $1 == "IMAGE" ) print $6,$11,$16,$19 }' |
Veritas Voulme Manager Tips (VXVM): 2 Hits
ind out the total free space in Kb, the following awk statement could be used: vxdg free | awk ' $6 ~ /^[0-9]/ { result += $6 } \ END { { answer = (
Unix Scripting Index: 2 Hits
===== Unix Scripting Index ===== * [[awk_sed_scripts|Awk and sed]] * [[concat_vars|concatenating variables]] * [[csh_stdin|Using STDIN
Formatting Syntax: 1 Hits
asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasi
Concatenating variables together in a script: 1 Hits
hift done </code> or <code> var=$* echo $var | awk '{print $1$2$3 }' </code> <alert type="warnin
Welcome!: 1 Hits
..scripting:scripting_index|Scripting Index]] - //Awk, sed, perl, shell// * [[..security:Security_in