search for: awk

Displaying 20 results from an estimated 2136 matches for "awk".

Did you mean: ack
2014 Nov 30
4
awk vs. mawk
On Nov 26 22:39:27, hans at stare.cz wrote: > ./test_replaygain.sh fails for me in tonegenerator(), saying: > > ./test_replaygain.sh[91]: mawk: not found > Testing FLAC replaygain 8000 (8000 x 1) ... -: ERROR: got partial sample > > Apparently, the tone-generating awk script does not work with > my system's awk, which is "awk version 20110810" as distributed > with current OpenBSD 5.6 GENERIC.MP#610 amd64. &g...
2014 Dec 03
0
awk vs. mawk
On Nov 30 14:33:47, hans at stare.cz wrote: > On Nov 26 22:39:27, hans at stare.cz wrote: > > ./test_replaygain.sh fails for me in tonegenerator(), saying: > > > > ./test_replaygain.sh[91]: mawk: not found > > Testing FLAC replaygain 8000 (8000 x 1) ... -: ERROR: got partial sample > > > > Apparently, the tone-generating awk script does not work with > > my system's awk, which is "awk version 20110810" as distributed > > with current OpenBSD 5.6...
2014 Dec 10
1
awk vs. mawk
...s any interest). On Dec 03 13:21:16, hans at stare.cz wrote: > On Nov 30 14:33:47, hans at stare.cz wrote: > > On Nov 26 22:39:27, hans at stare.cz wrote: > > > ./test_replaygain.sh fails for me in tonegenerator(), saying: > > > > > > ./test_replaygain.sh[91]: mawk: not found > > > Testing FLAC replaygain 8000 (8000 x 1) ... -: ERROR: got partial sample > > > > > > Apparently, the tone-generating awk script does not work with > > > my system's awk, which is "awk version 20110810" as distributed > > >...
2014 Dec 11
2
awk vs. mawk
...ow. Please test. On Dec 03 13:21:16, hans at stare.cz wrote: > On Nov 30 14:33:47, hans at stare.cz wrote: > > On Nov 26 22:39:27, hans at stare.cz wrote: > > > ./test_replaygain.sh fails for me in tonegenerator(), saying: > > > > > > ./test_replaygain.sh[91]: mawk: not found > > > Testing FLAC replaygain 8000 (8000 x 1) ... -: ERROR: got partial sample > > > > > > Apparently, the tone-generating awk script does not work with > > > my system's awk, which is "awk version 20110810" as distributed > > >...
2019 Oct 31
5
[PATCH] Replace mkproto.pl with mkproto.awk
This replaces the build dependency on perl with one on awk which is already used in the build system and is much more ubiquitous than perl --- Makefile.in | 2 +- mkproto.awk | 39 +++++++++++++++++++++++++++++++++++++++ mkproto.pl | 48 ------------------------------------------------ 3 files changed, 40 insertions(+), 49 deletions(-) create mode 1006...
2012 Dec 06
2
awk awk
a little out of my comfort zone and have practically gotten what I want but awk seems determined to send a message via std error which is problematic and annoying. Basically trying to get a list of virtual host names from nginx config files like this: $ awk -F" " '/./ { if ( match ( "^server_name$", $2 ) ) print $1 }' /opt/nginx/sites/*.conf \ | g...
2007 Jun 13
3
Awk and Vilno
...paragraph to do an SQL SELECT statement, then export the results to a SAS datastep afterwards.] The point is : there are lots of data preparation scenarios where large numbers of merges need to be done. This is an example where Vilno and SAS are easier to use than the competition. I'm sure an Awk programmer can come up with something, but the result would be awkward. You can also find other data preparation problems where the best tool is Awk. Looking through "Sed & Awk" (O'Reilly) gives a good idea. I'm not expert Awk-er sure, but I think I can see that Awk and Vilno...
2013 Apr 24
3
Tests not aborting when appropriate
On 24-04-13 14:34, Erik de Castro Lopo wrote: > That's an error in the awk script, which is embedded in the shell > script. I know GNU awk supports lshift, maybe BSD awk doesn't. I'll > investigate that futher. On my system awk links to mawk 1.3.3 >> I don't know why, but the test continues and says all tests passed while >> that clearly...
2017 Oct 25
6
[OT] Bash help
...address. > > This screams out for associative arrays. (Also called hashes, > dictionaries, maps, etc.) > > That does limit you to CentOS 7+, or maybe 6+, as I recall. CentOS 5 is > definitely out, as that ships Bash 3, which lacks this feature. <snip> Associative arrays? Awk! Awk! (No, I am not a seagull...) sort file | awk '{ array[$1] += $2;} END { for (i in array) { print i "\t" array[i];}' mark "associative arrays, how do I love thee? Let me tot the arrays..."
2019 Oct 31
1
[PATCH] Replace mkproto.pl with mkproto.awk
> I can't speak for rsync, but nowadays Perl isn't that rare, that a > dependeny on it for build purpose would matter. IMHO. It might not be rare, but it's certainly less universally available than awk, which is preinstalled on pretty much every unix-like OS out there. > There are many flavours of AWK. Are you sure, that your AWK replacement > runs everwhere? I tested every common implementation I know of, and found that it didn't work with busybox, awk, I'll be sending the updated...
2016 Apr 29
2
Semi-OT: awk
This is odd, and annoying. CentOS 6, current. Here's my awk script: { room = substr($0, 48, 10); arr[$2,room,$1] = $0; } END { for ( i in arr ) { for ( j in arr[i] ) { for ( k in arr[i][j] ) { print arr[i][j][k]; } } } } And when I run it, it complains awk -f awksort proplist7 awk: awksort:7: for ( j...
2003 Sep 12
1
Getting 2 kinds of quotes inside a pasted string
Hi, all. I would like to use "pipe" to run a file through an awk program before scanning (to reduce the amount of data I'll be taking in). I would like to construct the awk program in R, and also to be able to set the awk variable FS, to accommodate different field separators in different files. My problem is that I keep getting the quotes escaped in the s...
2008 Sep 23
2
RELENG_7: buildworld failed with MODULES_WITH_WORLD=
...STABLE sources with MODULES_WITH_WORLD knob enabled and it failed. Note that NanoBSD uses make -j3 by default and I have dualcore system. ===> sys/modules/nfslockd (depend) @ -> /usr/local/src/sys machine -> /usr/local/src/sys/i386/include echo "#define INET6 1" > opt_inet6.h awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I. -I@ -I@/contrib/altq /usr/local/src/sys/modules/nfslockd/../../nlm/nlm_advloc...
2018 Mar 29
1
dhcp lease time hardware in script at dhcpd/Bind/Samba wiki page
Hi Rowland, > You could try adding something like this near to the top of > dhcp-dyndns.sh: > > TTL=$(cat /etc/dhcp/dhcpd.conf | grep 'max-lease-time' | awk -F ';' > '{print $1}' | awk '{print $NF}') > > Then replace the '3600' with '$TTL' Users like comments in their config files. Your script: cat /etc/dhcp/dhcpd.conf | grep 'max-lease-time' | awk -F ';' '{print $1}' | awk ...
2009 Dec 15
2
Define an alias with an embeded awk command
Hi ,all : I'm trying to define an alias with an embeded awk command: alias checketh0 `ifconfig eth0 |grep 'inet addr:' |awk '{prinrt $2}' |cut -c 6- ` After I edit it in the .cshrc file and run "source .cshrc" , I run the "checketh0" command in the terminal , the screen displays the "192.168.7.24: Command not fo...
2017 Feb 09
5
Users list and the date the password will expire
...ht > on the first found "user": > > ./mailtest_rowland.sh: line 27: (""/10000000)-11644473600: syntax > error: operand expected (error token is """/10000000)-11644473600") > I initially got that, so I added: user=$(echo "${user}" | awk -F '\\' '{print $2}') because, 'wbinfo -u' gives you 'DOMAIN\username' It looks like for some reason this is failing, are you using 'dash' instead of 'bash' ? You could try adding 'echo "User: ${user}" ' above and below line 25 i...
2009 Jun 24
4
More awk help
Hey guys, Looking through my book and the web and I am not having any success returning data from a search. I need to have awk search for a string and print the first field which is no problem but now its returning two options as the input data has changed. The change is reliable, I only want the first field if it ends in a regex that I have, and I only want what that regex matches to be printed. Is it possible to do this...
2008 Jun 23
2
Awk help
...xxx,OU=Domain Users,OU=xxx xxx,DC=xxx-xxx,DC=local",X400:c=US\;a= \;p=xxx xxx xxx\;o=Exchange\;s=xxx\;g=xxx\;;SMTP:Cxxx at xxx-xxx.com and should return a relay_recipient map in the form of: Cxxx at xxx-xxx.com OK The command I am using is: cat $1 | tr -d \" | tr , \\n| tr \; \\n | awk -F\: '/(SMTP|smtp):/ {printf("%s\tOK\n",$2)}' Everything up to the awk is working, it drops the smtp: but its putting OK's all over the darn place. Anyone familiar enough with awk and printf that can suggest why this happens? Thanks! jlc
2008 Jul 09
1
Need help with awk one-liner
This awk command pulls URLs from an apache config file, where $x is the config filename. awk '/:8008\/root/ {printf $3 "\t"}' $x The URL that is output by the script looks something like this: ajpv12://hostname.network.company.com:8008/root Is there a way to alter the output so it only...
2010 Mar 06
1
Define an alias with an embeded awk command error ?
Hi, guys: I'm trying to define an alias in .cshrc with the embeded awk command, like this : alias checketh0 "ip add ls eth0 |awk '/inet/{print $2}' |sed -n '1p' " Then i run "source ~/.cshrc" and run "checketh0" command in the terminal , but the result is the following : " inet 192.168.18.18/24 brd 192.168.18.2...