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

Hi @all,

kann mir jemand sagen, wie ich diesen String so auseinander Nehmen kann, dass ich nur die erste Zeile bekomme?

cb652b435fca233b291951f330b24a16 /cust/MySQL_BACKUP/mysqldump_070223.gz
Ich möchte am Schluss nur die Checksumme haben, also das hier:
cb652b435fca233b291951f330b24a16

Also in awk wäre das überhaupt kein problem, aber wie löse ich sowas in Perl?

Ich hatte mir überlegt, ob ich nicht einfach die String länge des Pfades mit length() heraus findet und es dann mit Subtring auseinander nehme. Aber muss es doch in Perl eine einfache Möglichkeit geben oder?


$checksum = (split / /, $line)[0];

Genau das habe ich gesucht, das Split :upps

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.