Peter.O

Australia

Age: 64

No, I don't know what orthogonal means.

19h
revised Why awk says "syntax error" for the comma I placed between the two patterns?
deleted 119 characters in body
19h
revised Why awk says "syntax error" for the comma I placed between the two patterns?
deleted 1 character in body
19h
revised Why awk says "syntax error" for the comma I placed between the two patterns?
added 184 characters in body
20h
answered Why awk says "syntax error" for the comma I placed between the two patterns?
1d
revised How to grep man pages for a word?
present the man page excerpt with line wrap
1d
comment sum over floating points of the form 3.016e-06 using awk
@JulianeKiqhwdf: $((x))x$((x)) may "work", but it is pointless (at best) to do an unnecessary numeric evaluation on a variable which you already know to be the number you want.
2d
comment How to grep -v and also exclude the next line after the match?
Interesting. I didn't realize that // matched /SomeTestAA/. I thought, in this case, it would have matched the negated expression: /SomeTestAA/!. (+1)
2d
comment Sed regex and substring negation
Address delimiters can be arbitrary, but the first delimiter must be escaped, eg: printf '%s\n' a b c | sed '\|a|,\|b|d' - tested with GNU sed with the --posix option.
Aug
30
comment How to grep -v and also exclude the next line after the match?
awk -vpat="^SomeTestAA" -vRS="\nEndTest\n" 'BEGIN{ ORS=RS } $0 !~ pat' file
Aug
28
comment Need output in a good format using shell script
re: column. Whether or not the OP's input was single or double spaced, the output from column would be the same, as column ignores empty lines.
Aug
28
awarded Nice Question
Aug
28
revised Need output in a good format using shell script
Make it simple to read and understand
Aug
27
comment lines to columns with awk
The output is not correct – column -t, by default, uses one-to-many spaces as its column separator – this results in the OS values being split into 2 columns.
Aug
27
revised lines to columns with awk
deleted 10 characters in body
Aug
27
revised lines to columns with awk
fixed previous limitation of the problematic `>`
Aug
26
revised lines to columns with awk
missing `/` in OS end tag in test data
Aug
26
revised lines to columns with awk
missing `/` in OS end tag in test data
Aug
26
revised lines to columns with awk
fixed missing `/` in end tag - damn thing thew me off track (testing)
Aug
26
answered lines to columns with awk
Aug
26
comment lines to columns with awk
"arbitrarily set each colmn (width)" means that you will arbitrarily get whacky output.
1 2 3 4 5