Who can help me?


 
Thread Tools Search this Thread
Top Forums Programming Who can help me?
# 1  
Old 03-21-2011
Who can help me?

Delete all lines that contain the word "tree" of a given file SED
Find in a given file, all lines that contain the word "tree" followed by the word "apple " GREP
# 2  
Old 03-21-2011
Code:
1. sed '/tree/d' urfile
2. echo "tree apple
sss apple
tree xx" |grep -P "tree(?= apple)"
tree apple

This User Gave Thanks to yinyuemi For This Post:
# 3  
Old 03-22-2011
Thx Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question