[wplug] Scripting - Text file manipulation help - probably perl
Charles 'Mack' Rhinelander
mack.rhinelander99 at gmail.com
Tue Mar 20 14:47:16 EST 2007
Sweeeeet!
On 3/20/07, Juan Zuluaga <jz31416 at yahoo.com> wrote:
>
> Oh no, Perl is overkill. use gawk instead.
>
> $ cat ticketing.awk
> BEGIN { FS="\t"}
> {print "===Create-Ticket: ticket" $NR "\n";
> print "Queue:\t" $1 "\n";
> print "Subject:\t" $2 "\n";
> print "\n" }
>
> $ gawk -f ticketing.awk yourfile.tsv
>
>
> There are fancy ways to use printf for teh formatting.
>
>
>
>
>
> http://socioenlinea.blog.lemonde.fr/socioenlinea/
> Comentarios sobre politica, sociedad y ciencia social.
>
>
>
>
> ____________________________________________________________________________________
> Don't pick lemons.
> See all the new 2007 cars at Yahoo! Autos.
> http://autos.yahoo.com/new_cars.html
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20070320/bd22d8ce/attachment.html
More information about the wplug
mailing list