10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to search for a certain set of patterns within a file, and then perform other commands based on output.
password requisite pam_cracklib.so lcredit=-1 ucredit=-1 ocredit=-1
echo $D exists
echo $D doesnt... (8 Replies)
Discussion started by: bludhemn
2. Shell Programming and Scripting
Could someone give me a hand with a search for files with two possible extensions, please. The requirement is simple - I need to issue a single ls command searching for files with the suffix of, say, *.txt and *.log.
I've tried to use ls *.txt *.log which works if there are both... (4 Replies)
Discussion started by: neilmw
3. Shell Programming and Scripting
I need to extract specific records from one file which has multiline records.
Input file pattern is:
dddddddd (7 Replies)
Discussion started by: dhiraj4mann
4. Shell Programming and Scripting
I have some data in the form of
in the above data i need to write a script so thet it will append "|||" to the third occurnace in the string ..... the outout should look like
Firestar. (6 Replies)
Discussion started by: firestar
5. UNIX for Dummies Questions & Answers
I would like to know how to search through a directory and pull out files that has a specific pattern in the filename. For example if the filename has "bsc" in it, then that file must be moved to another directory where I will perform some operations on it. I know grep can be used, but I'm... (17 Replies)
Discussion started by: ladyAnne
6. Shell Programming and Scripting
Can any one please suggest the procedure to search a part of line in a very large file in which log entries are entered with very high speed.
i have trued with grep and egrep
grep 'text text text' <file-name>
egrep 'text text text' <file-name>
here 'text text text' is... (4 Replies)
Discussion started by: NIMISH AGARWAL
7. Shell Programming and Scripting
Need to extract a string from one file and search the same in other files.
I have file1 of hundred lines with no delimiters not even space.
I have 3 more files.
I should get 1 to 10 characters say substring from each line of file1 and search that string in rest of the files and get... (1 Reply)
Discussion started by: mohancrr
8. Shell Programming and Scripting
this is my "file" with fields
orderno orderdate orderdesc telno street city
1 01/04/2006 abc 123 100 tampa
2 01/04/2006 abc 123 100 tampa
3 01/04/2006 abc 123 100 tampa
4 01/04/2006 abc ... (2 Replies)
Discussion started by: manthasirisha
9. Shell Programming and Scripting
I have a file on windows and have some unix utilitties available on windows. This file is very large and have over 5 million record. I am not able to open this file in Window Editor. I am trying to see bad data on a specific lines. I just have line numbers that has bad data. I need to see the... (8 Replies)
Discussion started by: rkumar28
10. UNIX for Dummies Questions & Answers
Is it possible to search all the file systems on a Unix server for a specific phrase? (1 Reply)
Discussion started by: mmcaleer