16,754 reputation
1538
bio website
location Ottawa, Canada
age
visits member for 3 years, 8 months
seen 24 mins ago

Developer at Pythian.
Big Tcl and Perl fan.
Enjoy Ruby and JavaScript too.


12h
answered Using grep/awk/sed to sort and combine 2 files
12h
revised How to wrap the comma delimited values to the next line without disturbing the other fields using awk or ksh
rolled back to a previous revision
12h
comment How to wrap the comma delimited values to the next line without disturbing the other fields using awk or ksh
a ksh script can invoke perl just like it can invoke grep or cp or ... anything. Just copy that command into your ksh script (change the filename of course)
17h
awarded  Enlightened
17h
awarded  Nice Answer
18h
answered How to wrap the comma delimited values to the next line without disturbing the other fields using awk or ksh
22h
answered Exclude one pattern from glob match
1d
answered Using jq to extract values and format in CSV
1d
comment why is my delete function not working
unix.stackexchange.com/help/how-to-ask
1d
revised why is my delete function not working
formatting
2d
revised How to convert fixed length fields in a file to space delimited
DRY
2d
comment How to convert fixed length fields in a file to space delimited
That will break if there are 2 or more whitespace-separated words within the fixed-width field.
2d
answered How to convert fixed length fields in a file to space delimited
2d
comment How do I extract information with what I have right now?
do this: for swf in *.swf; do echo "$swf"; done -- do you see the expected filenames?
2d
comment How do I extract information with what I have right now?
Do you have any swf files in your current directory?
2d
answered How do I extract information with what I have right now?
2d
comment Replace text/string with new line
(?<!^) is a negative look-behind assertion: the current location does not immediately follow the start of the line. (?=:61:) is a positive look-ahead assertion: the current location is immediately followed by the string ":61:". If both of those are true, replace this (zero-width) string with a newline.
2d
answered Replace text/string with new line
2d
comment Replace a string containing newline characters
To remove the leading newline: sed -n '1{h;n};H; ${x; s/"line"\n<second>/other characters /g; p}' -- however this is getting unmaintainable.
Oct
22
answered How to print loop index to a file using awk?