1
vote
Detect and remove consecutive lines with the same information but with different amount of spaces in them
Regarding "I'd like to do it with a regex" - please bear in mind the quote:
Some people, when confronted with a problem, think "I know, I'll use
regular expressions." Now they ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sed × 7335awk × 2876
text-processing × 2348
grep × 964
bash × 963
regular-expression × 889
shell-script × 847
linux × 826
shell × 427
perl × 419
replace × 230
scripting × 185
command-line × 180
csv × 162
find × 133
xml × 133
string × 122
text-formatting × 122
files × 114
cut × 113
macos × 100
quoting × 84
json × 77
tr × 75
variable × 67