Grep related thing


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Grep related thing
# 1  
Old 11-07-2008
Grep related thing

Is there any way i can use grep to do this

I have file which is continuously growing,I want grep to star search from say line number 1210 is that possible.
# 2  
Old 11-07-2008
Requirement not clear please explain what exactly you wants.
# 3  
Old 11-07-2008
Hammer & Screwdriver

You could do the following:

Code:
tail +1210 myfile | grep "mytext"

Which would start at line 1210, searching for any lines that have mytext
# 4  
Old 11-07-2008
I have httpd.conf file i want to search after 1210 line,Using any method grep/egrep/awk etc.
# 5  
Old 11-07-2008
Joey already showed you how.
# 6  
Old 11-07-2008
tail +1210 httpd.conf
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question related to grep

We have huge file with control A as delimiter. Somehow one record is corrupted. This time i figured it out using ETL graph. If future , how to print only bad record. Example Correct record:... (2 Replies)
Discussion started by: srikanth38
2 Replies

2. Shell Programming and Scripting

need downloading related help...but its not related to unix

Hi All, I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file See the below link- http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs- Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies

3. UNIX for Dummies Questions & Answers

query related to grep

Hi All, The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt But I am not sure, whether, all result stored in .txt file in case of multi-line result. Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies

4. Shell Programming and Scripting

Extracting specific lines of data from a file and related lines of data based on a grep value range?

Hi, I have one file, say file 1, that has data like below where 19900107 is the date, 19900107 12 144 129 0.7380047 19900108 12 168 129 0.3149017 19900109 12 192 129 3.2766666E-02 ... (3 Replies)
Discussion started by: Wynner
3 Replies

5. UNIX for Dummies Questions & Answers

Should be the simplest thing in the world grep

should be the simplest thing in the world use grep but i not get it i have several files, in this files i need to khow how many times the words are repeated but the files must star whit P_ this work egrep -c "word1|word2" *P_* result: P_11351814:1 P_11351823:3 P_11351826:1... (2 Replies)
Discussion started by: SirGrifo
2 Replies

6. Ubuntu

need some help on this jolicloud thing??PLease help !!!!

i am not used to linux ubuntu... i get the same error code while booting from jolicloud.... can you help, please??????? i can't directly installed it because everytime i tried it, installation panel freezes, so i waited and it booted from live cd.... i tried to install jolicloud... (0 Replies)
Discussion started by: cemdede@hotmail
0 Replies

7. OS X (Apple)

Ok another small thing if anyone knows...

Hi i wanna change the look of my terminal. For example i wanted a black background and like a cyan colored text so it stands out against the black. Is there anyway i can do this?. I am running Mac OSX if that helps any at all (2 Replies)
Discussion started by: Corrail
2 Replies
Login or Register to Ask a Question