[bcn-pm] Expresiones regulares.

Alex Muntada alexm at cpan.org
Tue Apr 12 01:57:48 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* TooManySecrets <toomany at toomany.net>:
  [2005-04-12 09:02:11 +0200]

> > cat loquesea.txt | awk '{print $5, $3, $2, $1}'
>
> ...
>
> si alguien me dice igualmente cómo podría trasladar ésto a Perl,
> pues mejor que mejor.

perl -pe '$_=(join " ",(split /\s+/)[reverse 0..4])."\n"'

- --
Alex Muntada <alexm at alexm.org>
http://alexm.org/

-----BEGIN PGP SIGNATURE-----

iD8DBQFCW41+LdxCGS3zaBERAktKAJ4o1u5q7e0DI8OsaW2NxpaNDqifBACePaiV
WoTJeUP3kJF+uHgcamscSXo=
=Rd1D
-----END PGP SIGNATURE-----


More information about the Barcelona-pm mailing list