Newbie question concerning field separator386 (8/24/2009 8:04:18 PM) Hi *, I just have a hard time in understanding why using a different field separator results in a different output. When I run the following program: #!/usr/bin/gawk -f /^.+$/ { print "$1 = " $1 print ... vlc
Mawk hashing inefficiency2119 (9/9/2009 5:23:26 PM) Never posted to this group before, but have been an awk user for many years. Recently, for a project, I had the occasion to use mawk - I have a list of ~12,000,000 Unix timestamps to nanosecond precision that ... jmellander
field shift111347 (9/4/2009 1:39:15 PM) How to left shift? > echo a.b.c.d | awk 'BEGIN{FS=OFS="."}{for (x=1;x b.c.d The for loop works, but I wonder, is there a better way, like "shift" in the shell? -- Webmail fo... John
A file conversion?575 (8/28/2009 6:59:19 PM) I need to covert a file to be used by another program: My input file is simply: data1 data2 data3 data4 .... data1 on the first record, data2 on the second record... where data1, etc is a variable length char... Jonathan
Removing several characters in some column of the file2166 (9/1/2009 1:18:06 PM) Hi, I have some file. I need to create a new file that differs from the original file in second columns: first 4 characters of second column should be removed. For instance: file1: abcd 12345678 qqq rrr ttt ... Alex
match command1129 (8/31/2009 4:52:40 PM) I have the following code (see below). Here is a sameple output of my ps -ef scolban 589872 1585208 0 08:30:35 pts/35 16:42 /usr/local/basis/ pro5/pro5 -q -m5000 -c/usr/bbx/start/diamond.cnf /usr/local/bas... Stu
new at "awk.info": SQL Awk; embedding Awk in "C"; and more033 (8/29/2009 4:31:51 AM) Here are the recent updates to http://awk.info . (For all updates to awk.info, subscribe to http://tinyurl.com/rss4awk. To contribute to awk.info, see http://awk.info/?contribute .) --------------------------... menzies.tim(38)
Local array variables in functions2330 (8/26/2009 9:37:59 PM) Array parameters passed to functions are passed 'by reference' in awk, and changing an array inside the function will change its origin outside the function as well. How about arrays that are defined as local v... Janis
gawk v3.1.7 on OpenVMS0152 (8/25/2009 8:24:19 PM) I installed v3.1.7 on my home OpenVMS system last night and ran the vms-customized test suite, all trouble free. I hope to come up with some VMS-specific enhancements in the form of loadable extensions. I had ... Galen
daemon helper19121 (8/6/2009 2:22:02 PM) daemon helper: start any program or script as a daemon. It's a small C program with a simple interface and a liberal license. It already does what I want it to do; I am interested in correctness patches more ... John