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.

Empfohlene Antworten

Veröffentlicht

Hallo,

folgendes Problem.

Ich habe zwei Dateien miteinander verglichen (diff).

Die ausgegebene Datei sieht so aus:


249c249

---

787,788c787,788

< [login1:08005] 1 more process has sent help message help-mpi-btl-openib.txt / reg mem limit low

< [login1:08005] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

---

> [login1:08059] 1 more process has sent help message help-mpi-btl-openib.txt / reg mem limit low

> [login1:08059] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

1061,1065c1061,1065

---

1067,1068c1067,1068

< [login1:08044] 1 more process has sent help message help-mpi-btl-openib.txt / reg mem limit low

< [login1:08044] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

---

> [login1:08098] 1 more process has sent help message help-mpi-btl-openib.txt / reg mem limit low

> [login1:08098] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

Ich möchte nun aber jeden Block eine Überschrift erteilen. Wie mache ich das? Ich habe es mit sed schonmal selbst versucht aber es gelingt mir nicht. Mein sed Befehl:

sed -i "/^</i\ ****$oldList" $currDir/$nameCompareList.list

sed -i "/^>/i\ ****$newList" $currDir/$nameCompareList.list

Es muss nicht umbedingt sed sein. Mir fiel nichts besseres ein.

Vielen Dank schonmal im vorraus.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.