03-05-2008
how can i update the result in the same file? (inline edit)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a very large; delimited file. In vi I would like to replace:
CSACT_DY;AVG_UEACT1;uesPerActiveLinkSetSize_1;#;A
CSACT_DY;AVG_UEACT2;uesPerActiveLinkSetSize_2;#;A
CSACT_DY;AVG_UEACT3;uesPerActiveLinkSetSize_3;#;A
with:
CSACT_DY;AVG_UEACT1;Average... (7 Replies)
Discussion started by: gilmord
7 Replies
2. Shell Programming and Scripting
Hi, I am totally new to shell scripting.
I have a String "c:\working\html\index.txt.12-12-2009.bkp" I want to check if the string has more than one "." character. If it does I would like to retrieve only "c:\working\html\index.txt" i.e, discard the second occurrence of "." and the rest of the... (7 Replies)
Discussion started by: imr
7 Replies
3. Shell Programming and Scripting
Lets say I have file.txt:
(Product:Price:QuantityAvailable) (: as delimiter)
Chocolate:5:5
Banana:33:3
I am doing a edit/update function.
I want to change the Quantity Available, so I tried using the SED command to replace 5, but my Price which is also 5 is changed instead.
(for the Banana... (13 Replies)
Discussion started by: andylbh
13 Replies
4. Shell Programming and Scripting
Ok,
So I have a huge file that has over 12000 lines in it.
in this file, there are 589 occurrences of the string "use five-minute-interval" spread in various areas in the file.
How can i replace the the last 250 of the occurrences of "use five-minute-interval" with "use... (10 Replies)
Discussion started by: SkySmart
10 Replies
5. Shell Programming and Scripting
I couldn't find the answer anywhere, so I hope you could help me.
I need to change something like the following:
something/bla/aaaa
anything/bbb
to:
something
--bla
----aaaa
anything
--bbb
How do I do this?
Is it possible with sed?
I tried various patterns, but don't know how to... (5 Replies)
Discussion started by: Patwan
5 Replies
6. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
7. Shell Programming and Scripting
Hi
I need help on this ..!!
Input :
xx_abc_regA
xx_def_regB
xx_qwe_regC
Now i required the output as the below
abc
def
qwe
Need to remove last occurrence of character (_) and rest of the string in Unix (sed).
Thanks in Advance ..!!!
-Nallachand (3 Replies)
Discussion started by: Nallachand
3 Replies
8. Shell Programming and Scripting
Hi,
I would like to know how, using sed, be able to insert contents of file2 in file1 after say the second occurrence of a given string? e.g.
> cat file1
banana
apple
orange
apple
banana
pear
tangerine
apple
> cat file2
I don't like apples
What would be the sed command to insert... (5 Replies)
Discussion started by: dimocn
5 Replies
9. AIX
Hi All,
I have a requirement to replace consecutive occurence of same string nedd to be replaced. Below is the input and desired output.
Input:
---------
123.5|ABC|.|.|.
234.4|DEF|.|.|.|.|.|
Output:
---------
123.5|ABC|||.
234.4|DEF|||||
so basically "|.|" need to be replaced with... (9 Replies)
Discussion started by: ureddy
9 Replies
10. Shell Programming and Scripting
####Solved####
Hello,
My aim is to replace searched string with incremented value under ubuntu 16.04.
Example:
aasasasas 9030 31wwo weopwoep
weerasas 9030 ew31wo ieopwoep
bbqqqsas 9030 ew3swo ieeopwoep
ccsaqpas 9030 ewiro o2opwoep
Expected:
aasasasas 9030 31wwo weopwoep
weerasas 9031... (2 Replies)
Discussion started by: baris35
2 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 Description
Function 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)