Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/rc-bin-ape/ls.rc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

opts=()

for (i in $*) {
	if (! ~ %i '-*') {
		o = `{ echo $i |sed  -e 's/L//' }
		if (! ~ $o '-') {
			opts = ( $opts $o )
		}
	} 
	if not {
		opts = ( $opts $i )
	}
	shift
}

/$cputype/bin/ls $opts | tr '
' ' ' | /$cputype/bin/sed 's/ $//'


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].