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.

Do you like this page?
You can actively support me!

Leave a comment

There are multiple options to leave a comment: