Because I was thinking of something like that for a long time.

In bash/zsh (add it to your .rc ):

textfiles ()
{
    file $(find $*) | /bin/grep -E 'text|empty' | cut -d ':' -f1
}

Using this function it’s possible to open all text files of a project at once:

kate $(textfiles project/*)

Martin Scharm

stuff. just for the records.


Post a comment

read more about submitting comments