0
I have a sample file like below. There are leading whitespaces. Is there a way to detect them and print the exact line number which contains the whitespace using a shell script?
test space at back
test space at front
TAB at end
TAB at front
What have you tried to so far? You could probably use
grep
in some way I think. – Seth – 2016-12-27T10:14:52.917