I have an array variable "arr" that reads string from a file "vari.txt". Thus, the array will be of variable length depending how many entries are present in "vari.txt"
I use a for loop to traverse through the array.
However, i need a grep command to grep for a file "output.txt" and displays all the lines of output.txt except those that are present in the arrar arr.
I know how to traverse an array, grep -v and how to grep for multiple strings simultaneously.
Can you help me how could i achieve the grep command that displays all the lines of "output.txt" except those that are present in the arrar arr.
vari.txt (in this sample we have 4 entries, but it can have more or less entries i.e it varies)
output.txt
The desired result should be:
Last edited by mohtashims; 05-27-2014 at 06:57 AM..
Hello,
Actually I am not sure how to ask this question, which is about the technique advance on website construction/design. Compared with HTML/CSS, which ones are the most popular for website construction? My colleague recommends Drupal for Linux platform. Any other? Thanks!
Yifang (4 Replies)
I am trying to construct a regular expression that will filter a log file containing the following table:
aP
mP
mC,mI
oP
oC
oF
oI
tP
tI
hP
... (8 Replies)
Hi
I have to construct a rectangular matrix with 6012 rows and 2221 columns.
Here the rows and columns were given by alphanumeric ids in a file named row.txt and column.txt respectively. with this row nd column ids I have to construct a matrix ie 6012*2221 and compare the column ids with... (0 Replies)
Could someone please help, I am new to unix and I am trying to do the following:
o Each password must have at least eight characters.
Only the first eight characters are significant.
PASSLENGTH is found in /etc/default/passwd and is set
to 6.
... (1 Reply)