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
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 :
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
Summary: hi, i have a variable which cointains a string such as /opt/java1.4/jre/bin/java. I want to delete /java from the last part of the string..however when i try to delete it using sed command ..it delete...
Summary: Hi, I dont quite get the idea of searching a userid in /etc/shadow as a normal user you wont have access on this file. Also if you just want to check the username why not use /etc/passwd?? Anyway have...
Summary: There are some things here that can stand some clarification and warnings ... The vi and sed solutions above will remove ALL leading spaces on each line. If desired, they could be changed to delete j...