similar to: Define an alias with an embeded awk command

Displaying 20 results from an estimated 400 matches similar to: "Define an alias with an embeded awk command"

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
2009 Nov 11
4
About the tar extract signal directory~~
Hi,all: I've couple of large tarballs such as www.tar and images.tar. Is it possible to extract a single file or a list of files from a large tarball such as images.tar instead of extracting the entire tarball? How do I extract specific files under Linux / UNIX operating systems? Thanks in advance ~~ -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Jan 23
7
Gmail problem
Hi,all : There is gmail drive for windows platform<http://www.linuxforums.org/forum/#>where the person can access his gmail storage space as a drive. Do we have something similar on Linux? Means is there any software that will allow the person to 'mount' the gmail storage and say 'copy/paste' from his system to the gmail account? Thanks ~ -------------- next part
2009 Nov 13
2
Yum Skipping filter question
Hi, all : When I run "yum update" command in my laptop , it displayed this : root at foo Desktop]# yum update Loaded plugins: aliases, changelog, fastestmirror, filter-data, keys, kmod, list-data, priorities, protect- : packages, protectbase, security, tmprepo, verify Loading mirror speeds from cached hostfile * addons: mirrors.163.com * base: mirrors.163.com *
2010 Feb 05
1
About the openfire question ~
Hi, guys: Would anyone know what causes this error message ? It's not the first time I've seen it but is the first time I've seen it so often. openfire verison is 3.6.4 . at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at
2010 Jan 30
1
yum update error
Hi ,all : Today I run the "yum update" command on my laptop, which is CentOS 5.4 i386. Then the screen displays the following message : root at kuku ~ > yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.centos.net.cn * base: mirror.centos.net.cn * epel: mirrors.sohu.com * extras: mirror.centos.net.cn * rpmforge:
2009 Oct 15
3
CentOS 5.4? anyone? - "debate"
Dear All, If someone asks a question such as "When is Centos 5.4 coming out" bare in mind that it may be because they genuinely want to know when it's coming out, and feel that somehow, they have not been privy to that information. To me, I see CentOS as a polished professional product given what it is, a repackaging of RHEL, and to that end I have the expectation of a fully
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 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 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