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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT CENTOS
hwloc_topology_get_allowed_cpuset
Cpuset Helpers(3) Hardware Locality (hwloc) Cpuset Helpers(3)NAME
Cpuset Helpers -
Functions
static inline
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset (hwloc_topology_t topology) "
static inline
hwloc_const_cpuset_t hwloc_topology_get_topology_cpuset (hwloc_topology_t topology) "
static inline
hwloc_const_cpuset_t hwloc_topology_get_online_cpuset (hwloc_topology_t topology) "
static inline
hwloc_const_cpuset_t hwloc_topology_get_allowed_cpuset (hwloc_topology_t topology) "
Detailed DescriptionFunction Documentation
static inline hwloc_const_cpuset_t hwloc_topology_get_allowed_cpuset (hwloc_topology_ttopology) [static]
Get allowed CPU set. Returns:
the CPU set of allowed logical processors of the system. If the topology is the result of a combination of several systems, NULL is
returned.
Note:
The returned cpuset is not newly allocated and should thus not be changed or freed, hwloc_cpuset_dup must be used to obtain a local
copy.
static inline hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset (hwloc_topology_ttopology) [static]
Get complete CPU set. Returns:
the complete CPU set of logical processors of the system. If the topology is the result of a combination of several systems, NULL is
returned.
Note:
The returned cpuset is not newly allocated and should thus not be changed or freed; hwloc_cpuset_dup must be used to obtain a local
copy.
static inline hwloc_const_cpuset_t hwloc_topology_get_online_cpuset (hwloc_topology_ttopology) [static]
Get online CPU set. Returns:
the CPU set of online logical processors of the system. If the topology is the result of a combination of several systems, NULL is
returned.
Note:
The returned cpuset is not newly allocated and should thus not be changed or freed; hwloc_cpuset_dup must be used to obtain a local
copy.
static inline hwloc_const_cpuset_t hwloc_topology_get_topology_cpuset (hwloc_topology_ttopology) [static]
Get topology CPU set. Returns:
the CPU set of logical processors of the system for which hwloc provides topology information. This is equivalent to the cpuset of the
system object. If the topology is the result of a combination of several systems, NULL is returned.
Note:
The returned cpuset is not newly allocated and should thus not be changed or freed; hwloc_cpuset_dup must be used to obtain a local
copy.
Author
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Version 1.7 Sun Apr 7 2013 Cpuset Helpers(3)