10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I have 2 files, I need to use column of file1 and do a comparison on file2 column 1 and print the mismatch is file3 as mentioned below.
Kindly consider that file 1 is having uniq key(column) whereas in file2 we have multiple duplicates (like 44). These duplicates should not come in... (2 Replies)
Discussion started by: grv
2 Replies
2. Shell Programming and Scripting
Here is my list, which contains URLs for file downloads:
//servername.com/version/panasonic1,1_1.1.1
//servername.com/version/panasonic3,1_6.7.1
//servername.com/version/panasonic3,2_6.8
//servername.com/version/panasonic2,6_3.0.2
//servername.com/version/panasonic3,1_7.1.3... (5 Replies)
Discussion started by: ibanezpete
5 Replies
3. Shell Programming and Scripting
Can you please help me on belw awk comparsion which doest not work
cat employee_list
NAME Last-login
Jack 03/25/2013
Maneul 03/26/2013
Eric 03/26/2013
Samuel 03/28/2013
loak 03/29/2013
zac 03/29/2013
this is my awk .. it gives me error
cat employee_list | awk '(($2=='date... (3 Replies)
Discussion started by: Sara_84
3 Replies
4. Shell Programming and Scripting
Hi,
I'm new to AWK and I'm having problems comparing a field to a string variable.
/ARTIST/ {x = $2}
$1 ~ x {print $0}My code tries to find a record with the string "ARTIST". Once it finds it, it stores the second field of the record into a variable. I don't know what the problem is for the... (7 Replies)
Discussion started by: klusps
7 Replies
5. Shell Programming and Scripting
Hey guys..
New in linux scripting and need some help on some scripting with history command. I managed to export the command history into a file and now i'm trying to select from that file some specific commands that were made in a certain period. Here's what i got so far
echo -n... (2 Replies)
Discussion started by: mishu_cgm
2 Replies
6. Shell Programming and Scripting
Hi,
here's my - not so easy to describe - problem: I want to compare the values of one file (FileA) with a cutoff-value and, if this comparison is true, substitute those values with those in the second file (FileB). However, there are many FileA's (FileA), whereas there is only one FileB. Every... (10 Replies)
Discussion started by: waddle
10 Replies
7. Shell Programming and Scripting
Need a write script in bournce shell.
Compare all the file contents and need to generate a report.
Example :
Having 10 trace.log files like below
trace1.log,
trace2.log
....
trace10.log
Need to compare all the 10 files contents and provide the report as below,
Assume trace... (1 Reply)
Discussion started by: sureshmani
1 Replies
8. Shell Programming and Scripting
Hello all,
Probably a very simple question, I am stuck with a small part of a code:
I am trying to do a comparison to get the maximum value of column 6 if columns 1, 4 and 5 of two or more rows match. Here is what I am doing:
awk -F'\t' '{if ($6 > a)a=$6}END{for (i in a) print i"\t"a}'
... (4 Replies)
Discussion started by: jaysean
4 Replies
9. Shell Programming and Scripting
I have two files which I would like to compare and then manipulate in a way.
File1:
pictures.txt 1.1 1.3
dance.txt 1.2 1.4
treehouse.txt 1.3 1.5
File2:
pictures.txt 1.5 ref2313 1.4 ref2345 1.3 ref5432 1.2 ref4244
dance.txt 1.6 ref2342 1.5 ref2352 1.4 ref0695 1.3 ref5738 1.2... (1 Reply)
Discussion started by: linuxkid
1 Replies
10. Shell Programming and Scripting
Foo.txt
20 40 57 50 22
51 66 26 17 15
63 18 80 46 78
99 87 2 14 14
51 47 49 100 58
Bar.txt
20 22
51 15
63 78
99 55
51 58
How to get output using awk
20 22 57 50
51 15 26 17
63 78 80 46
99 55 - -
51 58 49 100 (5 Replies)
Discussion started by: genehunter
5 Replies