similar to: how can I use awk to match? pls help

Displaying 20 results from an estimated 200 matches similar to: "how can I use awk to match? pls help"

2004 Jan 15
2
A language technical question.
If I have 100 objekts in a folder and I prefer not to load them manually I wonder how I do this in R if using a for-loop. I was thinking initially to do something like this: infiles <- dir(pattern=".RData") for(i in length(infiles)) { load(infiles[i]) paste("kalle", i, sep="") <- saveLoadReference } But the line
2007 May 29
2
search path question
Hi R users, Is there a simple function that can add a folder into current R search path? For example, suppose my current work directory is "D:\work", but my input files are stored in folder "C:\inFiles\", I know I can change work directory or add "C:\inFiles\" before files name when I scan them, but I don't want to do that. I want to find a function that can
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 \ | grep -v server_name |
2004 Jan 17
2
a trojan is on your computer!
hi, I am from Norway and you'll don't believe me, but a trojan horse in on your pc. I've scanned the network-ports on the internet. (I know, that's illegal) And I have found your pc. Your pc is open on the internet for everybody! Because the smss.exe trojan is running on your system. Check this, open the task manager and try to stop that! You'll see, you can't stop this
2004 Jun 23
3
[Bug 883] mdoc2man.awk causes flaw in ssh(1) man page
http://bugzilla.mindrot.org/show_bug.cgi?id=883 Summary: mdoc2man.awk causes flaw in ssh(1) man page Product: Portable OpenSSH Version: 3.8.1p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P3 Component: Build system AssignedTo: openssh-bugs at mindrot.org ReportedBy:
2017 Mar 16
2
[PATCH] p2v: Add awk as a dependency.
The code to parse /proc/cpuinfo runs awk, but it was not included as a specific dependency so the parsing code might silently fail. --- p2v/dependencies.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p2v/dependencies.m4 b/p2v/dependencies.m4 index bd62d34..21541b4 100644 --- a/p2v/dependencies.m4 +++ b/p2v/dependencies.m4 @@ -29,6 +29,7 @@ ifelse(REDHAT,1, dnl Run as external
2017 Mar 17
0
Re: [PATCH] p2v: Add awk as a dependency.
On Thursday, 16 March 2017 19:53:25 CET Richard W.M. Jones wrote: > The code to parse /proc/cpuinfo runs awk, but it was not included as a > specific dependency so the parsing code might silently fail. > --- LGTM, although I'd simply add it once at the end of the file, so there is no need to duplicate it for all the distros. I can do the work of un-duplicating the other duplicated
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 shows "hostname" by itself? Do I need to pipe this through awk again to clean it
2009 Jul 07
1
Formatting print with awk and ORS
I have a command I execute: awk 'BEGIN { ORS=" " } { print "\"" $1 "\"" }' input_file which gives me exactly what I need, all field one's in quotes on one line each separated by one space. I now need to print a single quote around all of this, but the ORS flag is screwing me up, it's causing every attempt I try to repeat for every record.
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.255 scope global
2010 Mar 26
3
awk global replacement only after keyword
Trying to avoid a perl script which wouldn't be hard, but I am looking for an awk one liner that does a replacement, but only after it sees a key word on some line. Anyone know of that's easy to do? Thanks! jlc
2010 Dec 01
1
awk help
Hi all Anyone can help to let me know how to ls -1 | lsattr ls -al /folder | awk '{ print $2}' | lsattr Thank you
2011 Mar 17
1
ssh remote execute awk problem
Hi , all : There is a problem on executing awk command to remote servers; The shell test script is like this : 1. #!/bin/sh 2. 3. _CMD="ssh root at localhost" 4. 5. cpu_num="$($_CMD awk '/processor/{count["proc"]++}; END{print count["proc"]}' /proc/cpuinfo)? 6. 7. echo $cpu_num My root account can entry the server without
2016 Apr 29
0
Semi-OT: awk
On Fri, Apr 29, 2016 at 10:31:51AM -0400, m.roth at 5-cent.us wrote: > 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]; > } >
2019 Oct 31
0
[PATCH] Replace mkproto.pl with mkproto.awk
Ethan Sommer via rsync <rsync at lists.samba.org> (Do 31 Okt 2019 17:38:17 CET): > 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 I can't speak for rsync, but nowadays Perl isn't that rare, that a dependeny on it for build purpose would matter. IMHO. There are many flavours of AWK.
2019 Nov 17
1
[PATCH] Replace mkproto.pl with mkproto.awk
> Me? I think, the rsync maintainers, or? > I just added my 2 cents and would stick with .pl, it has proven to be > stable :) (Yes, I'm a Perl user.) Meant to direct that towards the rsync maintainers sorry. Are you suggesting that something that works with all popular awk implementations and entirely conforms to the POSIX standard now would somehow not be stable, or would eventually
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
2014 Dec 11
1
awk vs. mawk
On Dec 11 00:40:09, mle+la at mega-nerd.com wrote: > Jan Stary wrote: > > > gawk 4.0.1 and 4.1.1 works for me too. > > > > Erik, do you please remember what exactly happened here: > > https://git.xiph.org/?p=flac.git;a=commit;h=5797009fa2beb0426d74485e7624775e2e58e1d1 > > > > Unfortunately I don't remember. > > > Does gawk >= 4.0.1 still
2003 May 16
1
awk/gawk
A quickie question: Could someone tell me why, on RELENG_4, we have a gawk(1) manpage but no gawk executable? Given the manpage links, and the fact that our system awk is really built from gawk sources, I'd expect to have a link from /usr/bin/gawk to /usr/bin/awk (or vice versa). Thanks, Bruce. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available
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 in arr[i] ) { awk: awksort:7: