On Mon, Jul 28, 2008 at 07:07:55PM -0400, Ted Unangst wrote: > On 7/28/08, Jesus Sanchez <[EMAIL PROTECTED]> wrote: > > Can I make "ls" to NOT show > > the hidden files (.xinitrc , .vimrc, etc) when > > using as Root?? > > ls * > ls | grep -v ^.
You need to escape the dot... e.g. grep -v ^\\\. > sudo -u nobody ls > find . -name "[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]*" > -maxdepth 1 -print0 | xargs -0 ls -Cd | sed 's/\.\///g'