Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 129 Bytes
#!/bin/bash
function lc() {
if [ -d $1 ]; then
ls -anh $1
else
if [ -f $1 ]; then
cat $1
fi
fi
}
lc $1