[olug] need some quick help with sed

Obi-Wan obiwan at jedi.com
Mon Dec 21 02:59:21 UTC 2009


>          bloatedpostID="$(echo -e`cat ../xml/slauce.xml | grep postID`)"
>          postID="$(echo `echo $bloatedpostID | *sed -e 's/<[^>]*>//g'`)"*
> 
> obi-wan...much thanks.
>  let me know if you have some time for sed lessons.

Sed, ex, and vi all use the same regex patterns.  They're different
from perl, but still share much in common.  There are countless
resources online, plus a few O'Reilly books that were mentioned
earlier.

-- 
Ben "Obi-Wan" Hollingsworth                             obiwan at jedi.com
   The stuff of earth competes for the allegiance I owe only to the
     Giver of all good things, so if I stand, let me stand on the
       promise that You will pull me through.  -- Rich Mullins



More information about the OLUG mailing list