hi..
i'm a newbie to sed..
i'm gonna run this script on really really big file
(almost 1gig)
i think it should be really efficient
could u guys help me out?
thankyou !!
--------------------------------------------
#! /bin/bash
inputfile=$1
sed -e 's/<Topic r:id=\"//g' $inputfile |
sed -e 's/\">$//g' |
sed -e 's/\"\/>$//g' |
sed -e 's/<tag catid=\"//g' |
sed -e 's/^\".*//g' |
sed -e 's/<d:Title.*$//g'|
sed -e 's/<link r:.*$//g' |
sed -e 's/<\/Topic>//g' |
sed -e 's/<ExternalPage about\=\"//g' |
sed -e 's/<d

escription>//g' |
sed -e 's/<\/d

escription>//g' |
sed -e 's/<\/ExternalPage>//g' |
sed -e 's/^$//g' |
#sed -e 's/^Top.*\n$//g' |
awk '{
if ( $0 ~ /^Top/ )
printf("%s ", $0)
else
print $0
}' |
sed -e '/^$/d'
------------------------------------------
thank you!