01-11-2012
No it is all good for the output, i just look like to see if is possible to create a second output that will copy record from <file1> that doesn't match in <File2> with your previous code
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file (status.file) of the form:
valueA 3450
valueB -20
valueC -340
valueD 48
I am tailing a data.file, and need to search and modify a value
in status.file...the tail is:
tail -f data.file | awk '{ print $3, ($NF - $(NF-1)) }'
which will produce lines that look like this:
... (3 Replies)
Discussion started by: nortonloaf
3 Replies
2. Shell Programming and Scripting
I have a file (DCN.txt) that has about 35000 lines. It looks like:
10004470028
10005470984
10006470301
10007474812
....
I have several other files (a11.txt, a12.txt, a12_1.txt, a13.txt, etc. about 70, each 100 mb large) that have history records like so:
LINE 10005470984 01/06/2010... (13 Replies)
Discussion started by: oriqin
13 Replies
3. Solaris
Hi,
I have a file which got only one column and got some keywords. I have another file where the keywords used in the first file are repeated in the second file.
Now I would like to know how many times each keyword from the first file is repeated in the second file.
Request your help on... (1 Reply)
Discussion started by: pointers
1 Replies
4. 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
5. Shell Programming and Scripting
In the below bash a file is downloaded when the program is opened and then that file is searched based on user input and the result is written to a new file.
For example, the bash is opened and the download.txt is downloaded, the user then enters the id (NA04520). The id is used to search... (5 Replies)
Discussion started by: cmccabe
5 Replies
6. Shell Programming and Scripting
Hi everyone,
I am new to Unix and need help writing a script that can ask user for an input, then search that input within a file
I know will have to use the read and grep commands, anyone can give me somewhere to start would help
Task: Write a script to display which volume pool a given... (1 Reply)
Discussion started by: 12ic11
1 Replies
7. Shell Programming and Scripting
Hi Don, this is not homework question. I work for a Credit card company and my development goal this year is to learn Unix. I would love if others can help me get started, thanks.
Hi everyone
I am new to Unix and need help writing a script that can ask user for an input, then search that input... (2 Replies)
Discussion started by: 12ic11
2 Replies
8. Linux
Hi I have a CommonTemplateStop.template file . Inside the file i need to replace the variables DepName and CompInsName with the values(Trade and TradeIns) specified in the script. I have written the below .sh script in linux server which will read the .template file and has to replace the 2... (8 Replies)
Discussion started by: samrat dutta
8 Replies
9. Shell Programming and Scripting
Hi,
Below is my requirement
File1:
svasjsdhvassdvasdhhgvasddhvasdhasdjhvasdjsahvasdjvdasjdvvsadjhv
vdjvsdjasvdasdjbasdjbasdjhasbdasjhdbjheasbdasjdsajhbjasbjasbhddjb
svfsdhgvfdshgvfsdhfvsdadhfvsajhvasjdhvsajhdvsadjvhasjhdvjhsadjahs
File2:
sdh
hgv
I need a command such that... (8 Replies)
Discussion started by: imrandec85
8 Replies
10. UNIX for Beginners Questions & Answers
I have a very large file with millions of entries identified by @M. I am using the following script to "extract" entries based on specific strings/patterns:
#!/bin/bash
if ]
then
file=$1
else
echo "Input_file passed as an argument $1 is NOT found."
exit;
fi
MID=(NULL "string-1"... (10 Replies)
Discussion started by: Xterra
10 Replies
LEARN ABOUT CENTOS
xtgetclassextension
XtGetClassExtension(3) XT FUNCTIONS XtGetClassExtension(3)
NAME
XtGetClassExtension - locate a class extension record
SYNTAX
XtPointer XtGetClassExtension(WidgetClass object_class, Cardinal byte_offset, XrmQuark type, long version, Cardinal record_size);
ARGUMENTS
object_class
Specifies the widget class containing the extension list to be searched.
byte_offset
Specifies the offset in bytes form the base of the widget class of the extension field to be searched.
type Specifies the name of the class extension to be located.
version Specifies the minimum acceptable version of the class extension required for a match.
record_size
Specifies the minimum acceptable length of the class extension record required for match, or 0.
DESCRIPTION
The list of extension records at the specified offset in the specified widget_class will be searched for a match on the specified type, a
version greater than or equal to the specified version, and a record size greater than or equal the specified record_size if it is nonzero.
XtGetClassExtension returns a pointer to a matching extension record or NULL if no match is found. The returned extension record is owned
by the widget class and must not be modified or freed by the caller, except possibly to be modified by the widget class owner.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.1.4 XtGetClassExtension(3)