Quote:
Originally Posted by beeblequix
This works:
ls -g name.log.001.gz name.log.999.gz
|
I am not sure if I understand what you want, because you already knows how to do using head/tail:
Code:
$ ls -g | head -1; ls -g | tail -1
or better (only one listing of the directory)
Code:
$ ls -g > /tmp/listing.$$
$ head -1 /tmp/listing.$$
$ tail -1 /tmp/listing.$$