On Tue, 24 Dec 2024, Kunal Zodape wrote:

If the text editor is configured to treat "tabs as spaces" then the '\t'
character simply won't appear so it's all spaces. I think you can simply
sed -n '/^\tp' filename which will print the relevant lines which start
with at least one tab character. Most text editors should also have an
option to display whitespace characters in the settings (I know Kate
does). But if you have spaces for tabs you'll have to search for 4/8
spaces instead. Something like sed -n '/^<four/ eight spaces>p' filename.

Thanks,

Rich

Reply via email to