Hi, do you got any idea if I deal with long list of data ?
For short list of data, I believe "grep" is able to handle it.
But for long list of data, it might be difficult
thanks for your advice ^^
-m NUM, --max-count=NUM Stop reading a file after NUM matching lines. If the input is standard input from a regular
file, and NUM matching lines are output, grep ensures that the standard input is positioned to
just after the last matching line before exiting, regardless of the presence of trailing
context lines. This enables a calling process to resume a search. When grep stops after NUM
matching lines, it outputs any trailing context lines. When the -c or --count option is also
used, grep does not output a count greater than NUM. When the -v or --invert-match option is
also used, grep stops after outputting NUM non-matching lines.
Hi, I just try the code that you suggested.
Sad to said that it is not worked
Do you have better suggestion?
Both of my input file 1 and file 2 got different line number.
I just want to print out those content that file 1 and file 2 match at first column.
Really thanks for your help
---------- Post updated at 04:01 AM ---------- Previous update was at 03:57 AM ----------
thanks a lot.
Even though take some time to do for huge data
It is worked
apologize, you have to specify the output file like
I've tried with your sample data and it outputs
1285_t chris germany
8288_c steve england
9626_a dave swiss
Hi,
i have 2 files , the data i need to match is in masterfile and i need to pull out column 3 from master if column 1 and 2 match and output entire row to new file
I have tried with join and awk and i keep getting blank outputs or same file
is there an easier way than what i am... (4 Replies)
Hi all,
I have one file with a sequence and the other file which says the position and the letter to be changed. I have to match two files and replace content. Example is shown which will describe what I want to do. For example, file 1 has many sequences and few are shown below
sequence file:... (6 Replies)
My input:
Data name: ABC001
Data length: 1000
Detail info
Data Direction Start_time End_time Length
1 forward 10 100 90
1 forward 15 200 185
2 reverse 50 500 450
Data name: XFG110
Data length: 100
Detail info
Data Direction Start_time End_time Length
1 forward 50 100 50 ... (11 Replies)
Hi All,
I have a below file:
==================
02:53 pravin-root
02:53 pravin-root
03:05 pravin-root
02:55 pravin1-root
02:59 pravin1-root
==================
How do I find the first and last value of column 1. For example, how do I find 02:53 is the first time stamp and 03:05 is... (3 Replies)
We have different unix servers, let say I have server 1 and server 2.
Well whenever I ssh from server 1 to server 2, I'm ok, but when I ssh from server 2 to server 1, I can connect just fine, but I get this message:
X11 auth data does not match fake data
X11 auth data does not match fake data... (1 Reply)