the first thing to do when you don't know something is to look it up, books, online search, you name it. Then try to do it, and if still don't get it, you can post to forums to ask. I've thought of not posting, but because today is a friday (coming to the weekends) and i am happy, i can give you a head start. :-) [code] sed 's/<search string>/<replacement>/g' "file" [/code]
I should have mentioned that I did research this and I came across the sed command but it doesn't work for me. I think because of the ? and = characters in my string.
I tried the following and neither worked:
sed 's/"GET /thisfile?id=/"GET /thisfile?source=1&id=/g' file1
I also tried escaping the " and ? and =
sed 's/\"GET \/thisfile\?id\=/\"GET \/thisfile\?source\=1\&id\=/g' file1
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE