Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I started with something like this but soon got stuck trying to chain sed command togethercat page.txt | sed 's/;/\n/g'| sed 's/:/\n/g'|awk {'print "<a href=mys +ite.net/"$1" >"$1"</a>"'}
Any ideas?out=~s/;/\n/; out=~s/:/\n/; print "<a href=mysite.net/"$out" >"$out"</a>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sed awk to perl help
by Corion (Patriarch) on Apr 17, 2007 at 08:42 UTC | |
by johngg (Canon) on Apr 17, 2007 at 08:54 UTC | |
|
Re: sed awk to perl help
by Limbic~Region (Chancellor) on Apr 17, 2007 at 10:34 UTC | |
|
Re: sed awk to perl help
by Moron (Curate) on Apr 17, 2007 at 15:48 UTC | |
by dcd (Scribe) on Apr 17, 2007 at 21:06 UTC | |
by Moron (Curate) on Apr 17, 2007 at 21:29 UTC | |
by dcd (Scribe) on Apr 18, 2007 at 01:50 UTC | |
by Moron (Curate) on Apr 18, 2007 at 11:37 UTC | |
|
Re: sed awk to perl help
by xicheng (Sexton) on Apr 18, 2007 at 05:10 UTC |