[sclug] script or alias to page directory listings
John Stumbles
john at stumbles.org.uk
Mon Sep 5 13:56:47 UTC 2005
David Given wrote:
> Use "$@":
>
> myls() {
> ls "$@" | more
> }
>
> It's a special, magic, l33t monkey ninja special case shell expansion that's
> equivalent to "$1" "$2" ..., and if there aren't any arguments it expands
> into nothing.
l33t, n33t, sw33t! :-)
> There's no reason at all why you should know this unless you've spent far too
> much type groping through the sh man page. sh annoys me.
J.Mann wrote:
>>From the bash man page:
---8<---
I know: I should have RTFM! ;-)
Anyway thanks: that works a treat.
--
John Stumbles
More information about the Sclug
mailing list