Search Results

Search: Posts Made By: kiddsupreme
9,824
Posted By balajesuri
Try the following to replace whatever you want in...
Try the following to replace whatever you want in between "The" and the first occurrence of "dog":
# echo "The quick brown fox fell over the dog and some other dogs and cats" | perl -e...
9,824
Posted By CarloM
Try sed 's/The.*dog/whatever/' inputfile ...
Try
sed 's/The.*dog/whatever/' inputfile

EDIT: Note that .* will match the longest available string though, e.g.
# echo "The quick brown fox fell over the dog" | sed 's/The.*dog/whatever/'...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy