10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
2. UNIX for Beginners Questions & Answers
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
3. Shell Programming and Scripting
I've got at least 30,000 XML files that I'm using the grep command to get their filename. Can I use the head command to grab just the beginning 8 lines and compare that instead of parsing the whole document? It would speed things up! or maybe grep -m? (49 Replies)
Discussion started by: emc^24sho
49 Replies
4. Shell Programming and Scripting
hi,
i got files delimited by |^ character. eg.
apple|^ball|^cat|^dog|^egg
i need to find if the above file contains | (pipe ) character inside the data.eg.
apple|^ball|^cat|^d|og|^egg.
above file contains | character in the dog data. how can i search that. (4 Replies)
Discussion started by: krk
4 Replies
5. Shell Programming and Scripting
Hi,
I have to grep string from 20 - 30 files each carries 200 - 300 MB size and append to the
file. How to speed the
grepping time.
cat catalina.out_2012_01_01 | grep "xxxxx" >> backup.txt
PLZ, Suggest me,
Regards,
Nanthagopal A (5 Replies)
Discussion started by: nanthagopal
5 Replies
6. Shell Programming and Scripting
hi
i'm greping the files with sepefic keyword, where the file is of too big. Assume there are 10 days log file each of more than 200mb. i've to grep all those files with a specific keywords.
for example,
1. i'll grep for error message
2. after the i'll do one more grep for keyword... (4 Replies)
Discussion started by: vij_krr
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
At my company, we have custom web sites that we create for different clients. The folder structure is something like:
<project name>/html/web/custom/
The custom folder contains a file called "category.html"
Every project has the same folder structure, and same file names but, the data... (2 Replies)
Discussion started by: miklo
2 Replies
8. Shell Programming and Scripting
Hi all,
I have a folder with many files. I need to get all the filenames with the value "<f id=audio-time>*:*:*</f>" word.
* may be any integer.
I used find . -type f -exec grep -H '<f id=audio-time>.:.</f>' {} \;
command to get.
but i am not able to find the correct values.
Any... (2 Replies)
Discussion started by: ananthi_ku
2 Replies
9. Filesystems, Disks and Memory
I analysed disk performance with blktrace and get some data:
read:
8,3 4 2141 2.882115217 3342 Q R 195732187 + 32
8,3 4 2142 2.882116411 3342 G R 195732187 + 32
8,3 4 2144 2.882117647 3342 I R 195732187 + 32
8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies
10. Filesystems, Disks and Memory
Hello,
I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info:
RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!!
Regards :)... (0 Replies)
Discussion started by: Santi
0 Replies