#!/bin/bash # # Syntax: ll [-h] [file [...]] # # Purpose: Lists files in long format and pauses after each screen. # The -h flag shows the help info for this command. # # Note: You may have to include a line like # alias ll >/dev/null 2>&1 && unalias ll # in your login files (e.g., .bashrc) in order to be able to use # this command. # Created: Sep 3, 1993 by Bart De Schutter # Last revised: Sep 12, 2008 by Bart De Schutter # # See http://www.deschutter.info/util/scripts.html for the latest version of # this script. # Status: public # Category: files if [ $# -ge 1 -a "$1" = "-h" ]; then sed '/^$/q;/^#!/d;s/^# //;s/^#//' $0 >&2 exit 1 fi if [ -x "/usr/bin/less" ]; then LESS_COMMAND="/usr/bin/less -E -X -M -i -Q -r" else LESS_COMMAND="/bin/more" fi /bin/ls -F -l -a -N --color=always -T 0 "$@" | \ grep -v '^\[m$' | $LESS_COMMAND