12-23-2009
If the awk command can handle the 5M records I think it will be plenty fast.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Guys,
Can anyone explain why I'm getting error below? when I execute in other server there is no error, what could be the reason.
$ fgrep -f timecell.txt ldap_prev.dat
wordlist too large
$ wc -l timecell.txt ldap_prev.dat
372461 timecell.txt
3722878 ldap_prev.dat
Thanks in... (2 Replies)
Discussion started by: krishna
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Can I know the usage of fgrep -f command in kshell.
Reqirement: Need to search for list of patterns in list of files and display all the files which are having atleast one in the patterns list.
I hope fgrep -f will serve this purpose within a loop. But I am not successfull in doing this.... (0 Replies)
Discussion started by: divv
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need fgrep to search all files in the subdirectories in /var/spool/postfix/defer/...
How can I issue such a command? (3 Replies)
Discussion started by: mojoman
3 Replies
4. Shell Programming and Scripting
Hi,
I know that I can grep desired data to a file but is there a way to add an additional field of data to the output in addition to what is found. I want to add a login id to the data that is found in the grep. Is this even possible? Thanks for your help.
Toni (14 Replies)
Discussion started by: ski
14 Replies
5. Shell Programming and Scripting
Hi All,
I have 2 files new.txt and old.txt
cat new.txt
sku1|v1|v2|v3
sku2|v11|v22|v33
sku3|v11|v22|v33
cat old.txt
sku1|vx1|vx2|vx3
sku2|vx11|vx22|vx33
sku3|v11|v22|v33
The key column in both files are first column itself.
I want to get records in... (6 Replies)
Discussion started by: morbid_angel
6 Replies
6. Shell Programming and Scripting
Hi,
i am using fgrep command with following syntax
fgrep -v -f pattern_file_name file
file contains few line and have the pattern which i am giving in pattern file.
My Problem is :
its is not giving any output.
while i am using fgrep -f pattern_file_name file
it is showing all... (4 Replies)
Discussion started by: emresearch
4 Replies
7. Shell Programming and Scripting
Hi ,
Please help me resolve the below issue.
I need to combine the below two command into one.
grep 'ImanItemP' import.report| tr -s ' ' | cut -f2 -d ' ' > tmp.txt
fgrep -v -f tmp.txt input.txt > reuired file.txt
Thanks
Ramesh (4 Replies)
Discussion started by: ramesh12621
4 Replies
8. Shell Programming and Scripting
Hi,
I am novice in PERL enviornment. I have a text files withso many entries in rows and columns. I have to pick up entries
named as "Uniprot ID" in the file and create a new text file with list of particular Uniprot ID entries. Can anybody guide regarding this.. I came to know abut fgrep... (1 Reply)
Discussion started by: manigrover
1 Replies
9. UNIX for Dummies Questions & Answers
Using the fgrep command with the -v option.
I have two files:
file1:
dog 1
cat 3
bird 5
fish 7file2:
dog
catUsing fgrep -v file2 file1 According to the fgrep man page, the output should be bird5
fish 7 but I can't seem to get it to work. Any help would be appreciated. (2 Replies)
Discussion started by: jimmyf
2 Replies
10. UNIX for Advanced & Expert Users
I have a source file which is something like :
C/*M/ / ***HMACCT ** MONTH FOR CURRENT MINUS 14 CAL DAY
C/*D/ / ***HMACCT ** DAY FOR CURRENT MINUS 14 CAL DAY
C/*X/ / ***HMACCT ** CENTURY FOR CURRENT MINUS 14 CAL DAY
C/*Y/ / ***HMACCT **... (5 Replies)
Discussion started by: gotamp
5 Replies
IGAWK(1) Utility Commands IGAWK(1)
NAME
igawk - gawk with include files
SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ...
igawk [ all gawk options ] [ -- ] program-text file ...
DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1).
AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like
@include getopt.awk
in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path.
OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports.
EXAMPLES
cat << EOF > test.awk
@include getopt.awk
BEGIN {
while (getopt(ARGC, ARGV, "am:q") != -1)
...
}
EOF
igawk -f test.awk
SEE ALSO
gawk(1)
Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995.
AUTHOR
Arnold Robbins (arnold@skeeve.com).
Free Software Foundation Nov 3 1999 IGAWK(1)