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

Veröffentlicht

Hallo.

Ich habe eine Datei die wiefolgt aufgebaut ist:

#d 12442 lokal 4532

#d 12442 lokal 4536

#c 12442 lokal 22532

#d 12442 lokal 432

Ich möchte nun eine Outputdatei erhalten die nach dem ersten Wert "#c oder #d" primär sortiert ist und alls 2. sortierkriterium nach dem 4. wert d.h. z.B. "4532"

Zum Schluss soll die Datei so aussehen:

#c 12442 lokal 22532

#d 12442 lokal 432

#d 12442 lokal 4532

#d 12442 lokal 4536

Wie geht das? Kann mir jemand helfen :-)

Wenn ich mir folgenden Link ansehe, kann ich eigentlich nur bezweifeln, daß das sort-Kommando das überhaupt leisten kann:

http://www.computerhope.com/unix/usort.htm

Wenn ich mir folgenden Link ansehe, kann ich eigentlich nur bezweifeln, daß das sort-Kommando das überhaupt leisten kann:

http://www.computerhope.com/unix/usort.htm

Gibts dann ne andere möglichkeit? oder kann ich nur nach dem 4. wert sortieren?

Hi,

so gehts auch

sort -t" " +0 -1 -t" " +3 -4

Muss man halt wissen :-) thx

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.