Hi folks,
Our application installation uses "sed" command to append string after specific line or after line number.
Both cases work perfect on Linux but fail on Solaris.
The OS versions are Solaris 9 and Linux Red Hat AS 3.
i.g:
Linux:
-----
file foo.txt
aaa
bbb
ccc
ddd
root#... (4 Replies)
Have another question that has been eluding me all day.
I have data file I'm trying to reformat so that each line is appended with an ID code, but the ID code needs to update as it searches through the file.
I.e.
----Begin Original Datafile-----
Condition = XXX
Header Line 1
Header... (1 Reply)
Hi,
I searched the forum for this but couldn't find the answer. Basically I have a line of code I want to insert into a file using sed. The line of code is basically something like "address=1.1.1.1" where 1.1.1.1 is an IP Address that will vary depending on what the user enters. I'll just refer... (4 Replies)
Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me.
I have a file say:
abc
def
ccc
ddd
ffff
The output should be:
Instance1=abc
Instance2=def
Instance3=ccc
Instance4=ddd
Instance5=ffff
... (2 Replies)
Hi all,
I have to append every alternate line after its previous line. For example if my file has following contents
line 1: unix is an OS
line 2: it is open source
line 3: it supports shell programming
line 4: we can write shell scripts
Required output should be
line1: unix is an OS it is... (4 Replies)
I know this has been asked before but I just can't parse the syntax as explained. I have a set of files that has user information spread out over two lines that I wish to merge into one:
User1NameLast User1NameFirst User1Address
E-Mail:User1email
User2NameLast User2NameFirst User2Address... (11 Replies)
Source File:
abcdefghijklmnop01qrstuvwxyz
abcdefghijklmnop02qrstuvwxyz
abcdefghijklmnop03qrstuvwxyz
abcdefghijklmnop04qrstuvwxyz
abcdefghijklmnop05qrstuvwxyz
Whatever characters are in 17-18 on each line of the file, it should be concatenated to the same line at the character number... (6 Replies)
:confused:Hi All,
I need help on removing lines in a text file.
Sample file :
When there is a match ip for IPAddress in my `cat ip.out`, proceed delete line above until string "Comp" is found.
Thank you very much.
---------- Post updated at 12:56 AM ---------- Previous update was... (4 Replies)
Literally cannot get this one, guys. Single line replacement is simple, but I am not understanding the correct syntax for including a new line feed into the substitution part.
Here's what I got. (Cannot use perl)
#!/bin/sh
set -f
#Start Perms
export HOME=/home/test_user
# End Perms... (6 Replies)
Hi All,
I'm appending a line before a pattern and after another pattern(;) but omitting the first pattern - same as if comes duplicates before the second pattern.
Also, I'm adding a word before the first pattern -
Here is my file
select blah blah
hello
select blah blah
;
select... (6 Replies)
Discussion started by: Mannu2525
6 Replies
LEARN ABOUT DEBIAN
hwloc_topology_cpubind_support
hwloc_topology_cpubind_support(3) Hardware Locality (hwloc) hwloc_topology_cpubind_support(3)NAME
hwloc_topology_cpubind_support -
SYNOPSIS
#include <hwloc.h>
Data Fields
unsigned char set_thisproc_cpubind
unsigned char get_thisproc_cpubind
unsigned char set_proc_cpubind
unsigned char get_proc_cpubind
unsigned char set_thisthread_cpubind
unsigned char get_thisthread_cpubind
unsigned char set_thread_cpubind
unsigned char get_thread_cpubind
unsigned char get_thisproc_last_cpu_location
unsigned char get_proc_last_cpu_location
unsigned char get_thisthread_last_cpu_location
Detailed Description
Flags describing actual PU binding support for this topology.
Field Documentation
unsigned char hwloc_topology_cpubind_support::get_proc_cpubind Getting the binding of a whole given process is supported.
unsigned char hwloc_topology_cpubind_support::get_proc_last_cpu_location Getting the last processors where a whole process ran is supported
unsigned char hwloc_topology_cpubind_support::get_thisproc_cpubind Getting the binding of the whole current process is supported.
unsigned char hwloc_topology_cpubind_support::get_thisproc_last_cpu_location Getting the last processors where the whole current process ran is
supported
unsigned char hwloc_topology_cpubind_support::get_thisthread_cpubind Getting the binding of the current thread only is supported.
unsigned char hwloc_topology_cpubind_support::get_thisthread_last_cpu_location Getting the last processors where the current thread ran is
supported
unsigned char hwloc_topology_cpubind_support::get_thread_cpubind Getting the binding of a given thread only is supported.
unsigned char hwloc_topology_cpubind_support::set_proc_cpubind Binding a whole given process is supported.
unsigned char hwloc_topology_cpubind_support::set_thisproc_cpubind Binding the whole current process is supported.
unsigned char hwloc_topology_cpubind_support::set_thisthread_cpubind Binding the current thread only is supported.
unsigned char hwloc_topology_cpubind_support::set_thread_cpubind Binding a given thread only is supported.
Author
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Version 1.4.1 Mon Feb 27 2012 hwloc_topology_cpubind_support(3)