Wednesday, May 22, 2013

[LINUX_Newbies] Grep questions

Do Mai 23 07:53:33 2013
Good morning.

Grep questions


How can I use grep?
I opnened
man grep, but this could not help me.

Example.

I want to search
all files
*.txt
which contains the word hellomydearword
and the result I can see in the file result.txt

like
grep *.txt "hellomydearworld" > result.txt.


One question more:



I want to search
all files
*.txt
which contains the word hellomydearword
written in May 2010
and the result I can see in the file result.txt

like
grep *.txt "hellomydearworld" may 2010 > result.txt.


Regards
Sophie



------------------------------------

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/LINUX_Newbies/join
(Yahoo! ID required)

<*> To change settings via email:
LINUX_Newbies-digest@yahoogroups.com
LINUX_Newbies-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
LINUX_Newbies-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

No comments:

Post a Comment