I was using the
file command to gather information about some text files (well, XML files, but the XML info did not interest me), but there was one bit of information that I missed in the output: whether the file was indented with tabs or spaces.
Is there any command that will give me that? Or any sort of configuration I can use to get
file to display that information?
I know I can use
grep -l -P "^\x09", for example, but I'm looking for something that already does what I need, and, presumably, already went through all the corner cases I haven't yet thought of.