A simple one here - I have a small script which spell checks and corrects other files where necessary (amongst other things). I therefore need the functional equivalent of `file` and am only interested in "text" or "ASCII" files.
From your experience, is the built in -T test good enough - if not, what would be a good alternative (I'm trying to avoid spawning external progs)? The target platform is unices of varying flavours.
Thanks
In reply to How reliable is -T as a test for ASCII files? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |