Topic profile page for AWK.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: AWK.
Topic "Awk" was discussed 11,722 times on 1,126 sites in last 3 months
Started 2 days, 1 hour ago (2009-11-26 05:40:00)
by abhinav192
Hi All, I have about 10000 files having names of the same pattern I am using awk to match the pattern. Inside the awk block how can i delete all the 10000 files.. Or is there any other way to delete files in bulk... "rm" command fails with the message that argument list is too large
Started 3 days, 3 hours ago (2009-11-25 03:04:00)
by user637544
Hi, I have a file and i want to encrypt the third and fourth fields. cut -f3 -d'|' file | tr 'A-Z' 'a-z' cut -f4 -d'|' file | tr '0-9' ' ' But i want the encrypted field with the complete file, not just the field. awk -F'|' '{ OFS='|'; tr 'A-Z' 'a-z'
Started 3 days, 7 hours ago (2009-11-24 23:36:00)
by abhinav192
Hi All, How do we call a method existing in another file inside awk. After matching a pattern i want to call a method secureCopy that exists in another file, but method not getting called: Code: ls -l | awk -v var2=$servername -v var1=$srcserverpath -v var3=$tgtpath ' /File19112009Name[0-9]+\.xml$/ { printf ("abhinav"); printf ($NF); >> method call-->> secureCopy...
Started 3 days, 7 hours ago (2009-11-24 23:35:00)
by macnetdaemon
greetings all, I am have a heck of a time trying to accomplish a very simple thing. I have an array of "shortnameid" created from a dscl output. I want to assign shortname=word1 and id=word2. I have tried shortname=$(${textArray[$i]} | awk '{print $1}') - and get 'awk : cannot open file - and the prints word 1. e.g. awk : cannot open file johnsmith Using the syntax >>echo ${...
Started 3 days, 7 hours ago (2009-11-24 23:35:00)
by madfox
hi, Code: awk -F ";" '{if($10>500) then i++; } END{print i}' event_file_FR12_202_24-11-2009_* | less How to modify and add to this above to print the complete line in less ex : Code: 4712714002021527;15298888;241129 095614 558;131;0;0;63u;0;NA;44;139257004;1;155130;159728; 531920;Y;PRE;0;0;NA;NA;0;NA;0;NA; 4713564002021779;152989;242009 095614 559;131;0;0;63u;0...
Started 1 week, 1 day ago (2009-11-20 02:47:00)
by abhinav192
Hi all, In a script like : job_date=.... ls -l 2>/dev/null | awk -v var =$job_date ' /Name\.Version\.[0-9]+\.xml$/ { How can i include a script variable job_date store in "var" in the pattern " /Name\.Version\.[0-9]+\.xml$/ " Thanks in advance
Started 1 week, 1 day ago (2009-11-19 12:01:00)
by achak01
Friends, I have to find out the greatest amoings three values using awk. Actually i have to run the iostat -d command on my linux box for 5 or 6 iterations and print the largest value for tps at each iteration for e.g Code: iostat -d 3 3 Linux 2.6.18-8.el5 (abhijit) 11/19/2009 _i686_ (2 CPU) Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda...
Started 6 days, 2 hours ago (2009-11-22 04:50:00)
by Art Johnson
For some time now, I have been thinking about how easy it would be to "automate" the reports for our PlanetAMD64 Folding@Home Team, using the text data that is easily 'copy-and-pasted' from kakaostats.com . The data from kakaostats.com is easily copied into Notepad, for example, and makes this text file: PlanetAMD64_2009_Nov_21_11pm_PST.txt ( 2.58K ) Number of downloads: 0...
Started 1 week, 1 day ago (2009-11-19 15:29:00)
by beeblequix
1. file contains 4 columns -- a. business date b. transaction date c. acct# d. transaction# Needed to use each field from each line as input to query the database to pull a 5th field. Found code on this forum to set up an array -- in this case each line is set to a variable. Then I used a while-do-done statement to step through the total number of lines to know when to quit....
Started 3 days, 3 hours ago (2009-11-25 03:20:00)
by jeesun
I have a file generated in every event occurred. In this file i have a entries like bellow Summary: Adapter at hardware path 0/6/1/0 : Received an interrupt indicating that a primitive was transmitted and sometimes like bellow Summary: Adapter at hardware path 0/6/1/0 : Received an interrupt indicating that a primitive was transmitted What I need is to ...
Started 22 hours, 9 minutes ago (2009-11-27 08:46:00)
by mukherjee_debajyoti
Hi I have two files file_1 and file_2. The contents of the two files are as shown below : file_1 ------- Name : Gender : Age : Designation : file_2 -------- Name :
Started 4 days, 15 hours ago (2009-11-23 15:25:00)
by FatsoFat6969
Ok so I'm posting this hand for a friend... 14 ppl left hero is 2nd in chips 3bettor is cl.. Hero is CanofCorn22 who has been opening every pot.. Villain has flatted hero twice and 3b him 2.5x once previously (which hero flatted... which could contribute to the 3b sizing)... Hero has not 4b at this tbl... Hand Converter not working for some reason... Full Tilt Poker Game #...