Name: Anonymous 2009-04-12 14:42
I want to make a command that will cd then ls if the dir contents will fit in one terminal line and if not will display number of items in dir how do I do that.
if [ `ls | wc -w` -gt 3 ]; then ls | wc -l; else ls; fi