Search Results

Search: Posts Made By: rajivrsk
Forum: Linux 12-09-2014
1,879
Posted By rajivrsk
Search multiple pattern from list
I am working on AIX operating system.


I want to search list of Article Id for given Set Date (which are present in a seperate file input.txt)

art_list.csv
------------
"Article ID" ...
2,235
Posted By rajivrsk
:b: - This worked. Thanks a lot
:b: - This worked. Thanks a lot
2,235
Posted By rajivrsk
I tried the above commands and get below output ...
I tried the above commands and get below output

$ sort -u file1 file2 file3 > mergedfile
$ fgrep -v mergedfile searchRecords
abcd
azyx
4567
aaaa


but the expected output is

azyx
aaaa...
2,235
Posted By rajivrsk
yes you have understood my problem well.... But...
yes you have understood my problem well.... But below error is coming up when trying the command


bash-3.00$ grep -vf MergedFile searchRecords


grep: illegal option -- f
Usage: grep...
2,235
Posted By rajivrsk
script to return records which are not matching
file1

abcd
efgh
ijkl
mnop


file2

mnop
qrst
uvwx
xyza


file3

1234
4567
7,499
Posted By rajivrsk
I guess the OS, I am using is AIX.... (result...
I guess the OS, I am using is AIX.... (result from 'uname -a' command)
perl -nle'push @_, $_;
print "(", (join ",", map "\47$_\47", @_,), ")"
if eof
' infile

The above code worked...
7,499
Posted By rajivrsk
still no success..same message $ printf...
still no success..same message

$ printf '(%s)\n' $(printf "'%s'\n" $(<infile) | paste -s -d,)

Usage: paste [-s] [-d List] File...
()
7,499
Posted By rajivrsk
gets the below message :( ...
gets the below message :(
-------------------------
Usage: paste [-s] [-d List] File...
7,499
Posted By rajivrsk
shell script - to append single quotes and comma
file1
----

34556745
32678343
31576776
31455566
21356666

I want to assign the record values to a variable in the below format, so that I can use output in .sql file for querying in...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 04:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy