Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sort-Befehl

Empfohlene Antworten

Hallo,

ich muss sagen, dass ich in Unix noch ziemlicher Newbie bin, also vielleicht kann mir jemand helfen.

Ich hab eine Textdatei mit 3 "Spalten", die jeweils durch Tabulatoren getrennt sind. In der ersten steht ein Wort, in der zweiten eine Punktzahl und in der dritten die Rubrik. Ich will jetzt mit sort nach der ersten spalte ganz normal alphabetisch sortieren und in der zweiten nach den Punkten absteigend.

Z.B.

Wissenschaft 50 blablabla

Wissenschaft 40 blalalblba

usw.

Habs mit folgendem sort probiert:

sort -k1,2 table.txt > tableneu.txt

Aber so sortiert er mir klarerweise die 2. Spalte aufsteigend. Wie kann ich das ändern?

Vielen Dank im voraus

Johannes

Ok, rein theoretisch versteh ich zwar, wie es funktionieren sollte, aber ich bekomm die richtige Syntax nicht hin.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.