Computing.Net > Forums > Unix > search part of the word, print word

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

search part of the word, print word

Reply to Message Icon

Name: johan
Date: December 26, 2004 at 03:43:06 Pacific
OS: sun 5.9
CPU/Ram: 1
Comment:

This is my file and I want to search all word, where is string “is”.
-------------------------
Print of the command should be :

This
is
is
is




Sponsored Link
Ads by Google

Response Number 1
Name: Dlonra
Date: December 26, 2004 at 12:09:54 Pacific
Reply:

homework?



0

Response Number 2
Name: johan
Date: December 26, 2004 at 20:28:10 Pacific
Reply:

No, this is not homework.
b.r.
johan


0

Response Number 3
Name: thepubba
Date: December 27, 2004 at 10:43:52 Pacific
Reply:

Perhaps you should use the man pages for the grep command. If you don't have the man pages, a google search on "grep" will produce an abundance of hits.


0

Response Number 4
Name: johan
Date: December 27, 2004 at 21:21:38 Pacific
Reply:

grep will show all line?? where is the string "is", I have to need only word's from the line ( where is the string "is" in this case ).

Can You help / johan



0

Response Number 5
Name: David Perry
Date: December 28, 2004 at 03:55:03 Pacific
Reply:

echo "This is my file and I want to search all word, where is string .is.." | tr ' ' '\012' | grep -i is


This
is
is
.is..


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: search part of the word, print word

delete only last part of string www.computing.net/answers/unix/delete-only-last-part-of-string/4692.html

wildcards searching loopq www.computing.net/answers/unix/wildcards-searching-loopq/6917.html

Get rid of the leading space www.computing.net/answers/unix/get-rid-of-the-leading-space/4513.html