10 More Discussions You Might Find Interesting
1. 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
I want to use fgrep for a word serch ignoring case and it should dispaly word count along with the file name.
I m using below code
fgrep -wci string filenames
But it is giving error
Usage: fgrep pattern_list
fgrep ... ...
I have checked the man page... (11 Replies)
Discussion started by: millan
3. Shell Programming and Scripting
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
4. Homework & Coursework Questions
I am creating a program with the C language that simulates the WC command in Unix. My program needs to count lines, bytes and words. I have not added the code to count bytes and words yet. I am having trouble understanding what the file option/flag '-' does. I can not visualize how it moves... (1 Reply)
Discussion started by: heywoodfloyd
5. UNIX for Advanced & Expert Users
I have a patternfile with following pattern
Let's say I have thousand files
Each pattern can occur multiple times in multiple files. How can I search for pattern so the output of pattern and the filename is printed... (1 Reply)
Discussion started by: yoda9691
6. Shell Programming and Scripting
I am using mailx command in shell script. When i put -c option for CC , i get error message as "Unknown flag: -c" . I checked manual of mailx command and found that ~c to be used but after using ~c also it is not working. My shell is Korn. Kindly let me know what i have to do .
Thanks (9 Replies)
Discussion started by: krishna_gnv
7. Shell Programming and Scripting
I have a dout in -u option in ls command. If we give ls -lt command it will dispaly the last modfied time. If we give ls -lu command it will display the last usage time of the file.
My doubt here is Please refer the below commands.
/appldata/rsc/dm/RejectData$ls -lt... (6 Replies)
Discussion started by: puni
8. Shell Programming and Scripting
How can we use fgrep command to search pattern on perticular field on a file.
eg : I have a parren file having format
I want to seach these pattern on FIRST field of File2(since other field has
same data) and that too maching entirely.
... (10 Replies)
Discussion started by: morbid_angel
9. UNIX for Advanced & Expert Users
I have problems with the cc option in mailx command. Just went through some of the similar threads but none provides a satisfactory explanation.
I have a script using the mailx command in the following way:
(echo `cat mailsub.txt` ; uuencode attachment.csv attachment.csv) | mailx -s... (2 Replies)
Discussion started by: SmithaN
10. UNIX for Dummies Questions & Answers
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