[Gllug] Script for splitting dirs

Andy Farnsworth farnsaw at stonedoor.com
Tue Jun 3 16:56:00 UTC 2003


> "Daniel Andersson" writes:
>
> If more convenient, you can make it a ... uh ... halfliner?:
>
> [al at svetlana al]$ perl -e 'print((stat $ARGV[0])[7])' ./testfile
> 73

Yes, but then you have to put it in every script you need it for.  If you
make it it's own perl script, you can just call it as an executable and it
will return the value.

Andy Farnsworth



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list