12-03-2013
Not clear what you want to achieve. Please be way more specific!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I want to input some variables from a file.
I tried it with following script,
for i in 1 2 3 4
do
read varible1 varible2 < ddd.txt
echo $varible1 $varible2
done ... (1 Reply)
Discussion started by: maheshsri
1 Replies
2. Shell Programming and Scripting
Hi guys,
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Discussion started by: sksahu
5 Replies
3. Shell Programming and Scripting
Hi ,
I am trying to get an reference of a XML formatted data using XML::Simple::XMLin
and again trying to retrive the XML data as it was before using XML::Simple::XMLout.
But finding a deviation in the format can any pls help me out.
Input file sr.xml
<?xml version="1.0"... (0 Replies)
Discussion started by: srkelect
0 Replies
4. Shell Programming and Scripting
I need to know how the the string constant from Input File should be read and provide as input data for the script .
INPUT FILE
CONST VARIABLE
myname=/root/dir/syslog/myname1
myname=/root/dir/syslog/myname2
myname=/root/dir/syslog/myname3
urname=/root/dir/syslog/urname1... (6 Replies)
Discussion started by: baraghun
6 Replies
5. UNIX for Dummies Questions & Answers
Here is the requirement, When I run the "run file KSH (sql)", it should substitute
'${pCW_Bgn_DT}' with 201120
and
'${pCW_End_DT}' with 201124
Input File
----------
$ cat prevwk.dat
201124 20110711
run file KSH (sql)
------------------
In this file, I want to use the variables... (1 Reply)
Discussion started by: shanrice
1 Replies
6. Shell Programming and Scripting
Hello,
I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get. :wall:
I regularly need to delete files from many directories.
A file with the same name may exist any number of times in different subdirectories.... (3 Replies)
Discussion started by: *ShadowCat*
3 Replies
7. Shell Programming and Scripting
Dear Friends,
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies
8. Homework & Coursework Questions
Just started learning Unix and received my first assignment recently. We haven't learned many commands and honestly, I'm stumped. I'd like to receive assistance/guidance/hints.
1. The problem statement, all variables and given/known data:
How do I write a shell script that takes in a file or... (4 Replies)
Discussion started by: fozilla
4 Replies
9. Shell Programming and Scripting
Hi All,
I have one query, I managed to run script with user inputs through command line or with 1 file.
But I need to read a txt file/xml file in which user can mention multiple sets of answers and script should run for each set till it reach the EOF.
Thanks in advance
for example, the file... (3 Replies)
Discussion started by: rv_champ
3 Replies
10. Shell Programming and Scripting
I have a file that I'm trying to place into a variable.
I've tried the following:
DATE=`date +%Y%m%d`
filez=$(cat /tmp/Test_$DATE.txt)DATE=`date +%Y%m%d`
filez=$(</tmp/Test_$DATE.txt)DATE=`date +%Y%m%d`
filez=$(`cat /tmp/Test_$DATE.txt`)None of these lines allows the file to go into the... (3 Replies)
Discussion started by: newbie2010
3 Replies
LEARN ABOUT CENTOS
hwloc-annotate
HWLOC-ANNOTATE(1) hwloc HWLOC-ANNOTATE(1)
NAME
hwloc-annotate - Add info attributes to a XML topology
SYNOPSIS
hwloc-annotate [options] <input.xml> <output.xml> <location> <mode> <annotation>
OPTIONS
--ci Clear the existing info attributes in the target objects before annotating. If no new annotation has to be added after clearing,
mode should be set to none.
DESCRIPTION
hwloc-annotate loads a topology from a XML file, adds some annotations, and export the resulting topology to another XML file. The input
and output files may be the same. The annotation may be string info attributes. This is specified by the mode:
info <name> <value>
Specifies a new string info attribute whose name is name and value is value.
none No new annotation is added. This is useful when clearing existing attributes.
Annotations may be added to one specific object in the topology, all of them, or all of a given type. This is specified by the location:
all annotates all objects in the topology.
root annotates the root object of the topology.
<type>:all
annotates all objects of the given type.
<type>:<index>
annotates the object of the given type and index. The index is logical.
NOTE: The existing annotations may be listed with hwloc-info.
NOTE: It is highly recommended that you read the hwloc(7) overview page before reading this man page. Most of the concepts described in
hwloc(7) directly apply to the hwloc-annotate utility.
EXAMPLES
hwloc-annotate's operation is best described through several examples.
Add an info attribute to all Core objects:
$ hwloc-annotate input.xml output.xml Core:all infoname infovalue
Add an info attribute to the root object of the topology and modify the input XML directly:
$ hwloc-annotate file.xml file.xml root infoname infovalue
RETURN VALUE
Upon successful execution, hwloc-annotate generates the output topology. The return value is 0.
hwloc-annotate will return nonzero if any kind of error occurs, such as (but not limited to) failure to parse the command line.
SEE ALSO
hwloc(7), lstopo(1), hwloc-info(1)
1.7 Apr 07, 2013 HWLOC-ANNOTATE(1)