01-28-2014
yes CarloM i got it.
but what i mean to say was , the result of pattern matching search should be (irrespective of "per socket" word):
16 logical processors
2 logical processors
i am looking for awk output in the above format but search option should not contain "per socket" word
Coulld you pleas eguide me in searching abd displaying only the above pattern using awk or even sed..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have tried this command
cat /etc/passwd | awk -F: '{print$5}'
note that the $5 is the column that displays full name- i.e. Kevin Kambell
To the point, my output is fine except one thing I do not understand that some of output lines have space in front of them which I checked in... (7 Replies)
Discussion started by: lalelle
7 Replies
2. Shell Programming and Scripting
Hi -
I have a file with contents as below.
12.1 a.txt
12.1 b.txt
12.1 c.txt
13.2 a.txt
13.2 d.txt
14.3 f.txt
15.4 a.txt
15.4 b.txt
15.4 z.txt
I need to print the contents like this.
12.1 a.txt
< >< >< >b.txt
< >< >< >c.txt (7 Replies)
Discussion started by: guruparan18
7 Replies
3. IP Networking
Hi
I have a wireshark file saved (from my network) and I have to analyze the flows inside it.
The problem is that i have to analyze not the complete file (60.000 pkts!) but just a subset of it.
In other words i have to sample the wireshark.file.dump and for example from 60.000 pkts take... (2 Replies)
Discussion started by: Dedalus
2 Replies
4. Emergency UNIX and Linux Support
i have a file which gets appended with 9 records daily and the file keeps growing from then...i use to store the previous day files count in a variable called oldfilecount and current files count as newfilecount.my requirement is that i need to start processing only the new records from the... (3 Replies)
Discussion started by: ganesh_248
3 Replies
5. Shell Programming and Scripting
hi Friends ,
I have a file as below
s.txt
1~2~~4
2~6~~7
3~8~~9
t.txt
1~2~~4
2~5~8~7
3~8~~7
header for both files is common (2 Replies)
Discussion started by: i150371485
2 Replies
6. Shell Programming and Scripting
Hey,
I'm using some sensors that can be read by http.
If I run following command:
curl -v 'http://192.168.111.23:8080/sensor/52f5c63cc4221fbbedcb499908a0a823?version=1.0&interval=minute&unit=watt&callback=realtime'
I'm getting:
I would like to put this now in a sheet with only the... (9 Replies)
Discussion started by: brononius
9 Replies
7. Shell Programming and Scripting
Hi ,
I am trying to filter out the below output of fdisk -l command :
fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 ... (9 Replies)
Discussion started by: omkar.jadhav
9 Replies
8. Shell Programming and Scripting
Hello guys,
I'm writing a little script which sends me sms with my shell script via api of a sms provider.
problem is I can't filter my curl output for this site:
site url:... (1 Reply)
Discussion started by: genius90
1 Replies
9. Shell Programming and Scripting
Hi Team(Solaris 5.8/Ksh),
How can we save grep output to awk variable when grep returns more than one line or word.
abc.log
# more abc.log
Hi Makarand
How r u
bye Makarand
Hello
when grep returns only 1 word below command works
nawk -v var=`cat abc.log |grep "Hello"` 'BEGIN { if... (6 Replies)
Discussion started by: Makarand Dodmis
6 Replies
10. Solaris
Hi all,
In my SunOS 5.10, the command awk using BEGIN option doesn't print output variables like expected
here is my test:
with the following code everything is alright
ps -eo pcpu,args | grep "httpd" | awk ' { print $1 } '
the result is
0.1
However, with this command
ps -eo... (3 Replies)
Discussion started by: Elmassimo
3 Replies