[Tutor] ls *.py[co] >> .hidden

Danny Yoo dyoo at hashcollision.org
Fri May 22 01:05:06 CEST 2015


>> I just created an alias for this:
>> alias hidepycs="ls *.py[co] > .hidden"
>
> Close -- try
>
> alias ls='ls --hide=*.py[co]'
>
> and when you want to see them use ls -a.


+1 to Emile's approach.  This seems to be the right approach, using
the "--hide" option built into ls:

       --hide=PATTERN
              do not list implied entries matching shell PATTERN
(overridden by -a or -A)


More information about the Tutor mailing list