Re: a perl question



On 01/04/2011 04:27 AM, S Mathias wrote:
cat asdf.txt
bla-bla
bla-bla
bla[XYZ]
importantthing
another important thing
[/XYZ]
bla-bla
bla-bla
[XYZ]
yet another thing
hello!
[/XYZ]
bla-bla
etc.
$ SOMEPERLMAGIC asdf.txt> output.txt
$ cat output.txt
importantthing
another important thing
yet another thing
hello!


how can i sovle this question? what is SOMEPERLMAGIC? are there any perl gurus, that have a little spare time?

Seriously, Mathias. These look like questions straight out of entry
level university classes. Are you asking mailing lists to do your
homework for you?

Not cool at all.

TC
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



Relevant Pages

  • Re: a perl question
    ... egrep and avoid the complexity of perl entirely: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: a perl question
    ... $ cat output.txt ... he wants a Perl script to filter ...
    (Fedora)
  • Re: a perl question
    ... containing blah or XYZ, which gives the desired output on your test input). ... operator in scalar context is true as soon as the left-hand expression is ...
    (freebsd-questions)
  • Re: a perl question
    ... $ cat output.txt ... For Perl questions, you might be better advised to try Stack Overflow ...
    (Fedora)
  • Re: a perl question
    ... Subject: a perl question ... $ cat output.txt ...
    (Fedora)