Search Results

Search: Posts Made By: bgnersoon2be#1
1,556
Posted By bgnersoon2be#1
Trouble is, it doesn't accept the commas and I...
Trouble is, it doesn't accept the commas and I thought each expression had to be written on a new line?
1,556
Posted By bgnersoon2be#1
Thanks for the help! But when I use it like this...
Thanks for the help! But when I use it like this (from the command line):

sed -n '/<body>/,/<\/body>/p' test.txt | sed -e '1s/.*<body>//' -e '$s/<\/body>.*//'

it will take the input:
...
1,556
Posted By bgnersoon2be#1
Running sed from a script query
Hello!

I'm trying to run this code to print the body of an html document (all text in between <body> and </body>) from a script but am unsure how to call it from the command line interface.

...
5,020
Posted By bgnersoon2be#1
How does this sed expression to remove non-alpha characters work?
Hello!

I know that this expression gets rid of non-alphanumeric characters:
sed 's/[^a-zA-z0-9]//g'
and I understand that it is replacing them with nothing - hence the '//'-, but I don't...
Showing results 1 to 4 of 4

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