Laddo wrote:
>
> Hi all
>
> Iam new to perl so please bear with me
>
> i have a log file that i open to extract some information from file is
> like this
>
> var/backup/usersA2F.0.1_1027468994_24
> var/backup/usersA2F.0.2_1027468994_24
> var/backup/usersA2F.0.3_1027468994_24
> var/backup/usersA2F.0.4_1027468994_24
> var/backup/usersA2F.0.5_1027468994_24
> var/backup/usersA2F.0.6_1027468994_24
>
> i want a regular expression that can find only the third part i.e only
> usersA2F.0.1_1027468994_24
>
> with awk i can do it easily like cat {thisfile} | awk -F'/'
> [{print $3 }'
>
> what is the equilent in perl ?
cat {thisfile} | perl -F'/' -ane'print $F[2]'
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]