Skip to main content

Thread: matching lines awk, giving me trouble


hi all.

have file below

5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
4 0.1.9-0.5.1
5 2.1.4-1.0.0
5 2.1.5-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0

want awk tell me on few lines, lines different others.
output unique , non-duplicated lines.

example.
above gets be
4 0.1.9-0.5.1
5 2.1.4-1.0.0
5 2.1.5-1.0.0

, other lines discarded.
hope makes sense.

kind regards.

quote posted drenriza view post
hi all.

have file below

5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0
4 0.1.9-0.5.1
5 2.1.4-1.0.0
5 2.1.5-1.0.0
5 2.1.4-1.0.0
5 2.1.4-1.0.0

want awk tell me on few lines, lines different others.
output unique , non-duplicated lines.

example.
above gets be
4 0.1.9-0.5.1
5 2.1.4-1.0.0
5 2.1.5-1.0.0

, other lines discarded.
hope makes sense.

kind regards.
sort -u


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk matching lines awk, giving me trouble


Ubuntu

Comments

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support