![]() |
sed command line help
I'm trying to get this sed command to work correctly. I need to retrieve a specific "string" from: terms_id=string&location
below is what i'm working with so far. Code:
sed -ne 's/^.*terms_id=\([^&]*\)&.*$/\1/' |
whats wrong with it?
test.txt Quote:
Quote:
|
Quote:
Code:
sed 's/^.*terms_id=\([^&]*\)&.*$/\1/' test.txt > getIDs.txt |
test.txt >> getIDS.txt
|
Quote:
|
thanks Fris and CYF :thumbsup
|
back with another question. it keeps grabbing all the html coding around the string. I can see that its finding the string in the output but its also grabbing the html coding content as well.
Code:
#! /bin/sh |
| All times are GMT -7. The time now is 09:47 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123