I noticed that sort sorts the files differently than the Atom Editor
I noticed that by ordering the file by Atom Editor the command below also works.
Code:
uniq List > List-uniq
Using this command below informed by @Turbocapitalist
I have verified that the final line qtd is the same as the work done by Atom Editor or the previous command that I reported
Code:
sort List | sed -r 's/[[:space:]]+$//' | uniq > List2
However when comparing this file in Kompare it says they are different files, it sees all the lines as a single line, making it difficult to understand the difference between the 2 generated files
I did not understand this sed command. If you can explain? I did not understand what he does.
Code:
sed -r 's/[[:space:]]+$//'
Sorting Sort, Example:
###A9AdsMiddleBoxTop
###A9AdsOutOfStockWidgetTop
###A9AdsServicesWidgetTop
###AD-300x250
###AD-300x250-1
###AD-300x250-2
###AD-300x250-3
###AD-HOME-LEFT
Sorting Atom Editor, Example:
_.gif?ref=
_.gif?t=
_03100x07696.$image,domain=pcwelt.de
_100_ad.
_100x480_
_115x220.
_120_60.
_120_600_
Images to facilitate