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

Cameron Simpson cs at zip.com.au
Fri May 22 05:42:37 CEST 2015


On 21May2015 17:52, Laura Creighton <lac at openend.se> wrote:
>If you keep appending the results of ls to your .hidden file
>it will grow to enormous size. [...]
>
>sort -u .hidden >newhidden #or whatever you want to call it
>mv newhidden .hidden

Or:

  sort -u -o .hidden .hidden

Cheers,
Cameron Simpson <cs at zip.com.au>

[...] post-block actions should be allowed everywhere, not just on
subroutines. The ALWAYS keyword was agreed upon as a good way of doing
this, although POST was also suggested. This lead to the semi-inevitable
rehash of the try- catch exception handling debate. According to John
Porter, "There is no try, there is only do. :-)"
- from the perl6 development discussion


More information about the Tutor mailing list