hi ^^
i'm trying to make a filter, because i want this:
from this: (various text=*)
various text <em>ciao1</em>various text
various text <em>ciao2</various text
various text <em>wow</em>various text<em>plop</em>various text
to this:
ciao1
wow
plop
i tried
#!/bin/bash
input_file="$*"
output_file=${input_file}.txt
grep -i '\<%3cem%3e*%3c/em%3e\>' ${input_file} > ${output_file}
or
sed -e '<em>*</em>' ${input_file} > ${output_file}
but nothing work, i just want what's inside <em>*</em> and nothing else, it's so impossible?
thank you
