Über mich

Lewis Hine

Lewis W. Hine studierte Soziologie, bevor er 1901 nach New York zog, um an der Ethical Culture School zu arbeiten, wo er mit der Fotografie begann, um seine Lehrtätigkeit zu erweitern

Foto einer Arbeiterin.

Mein Name ist Peter Miller und ich teste gerade WordPress.

Ein zweiter Absatz geht auch noch.

Was passiert wenn ich inline Code auswähle?

#!/bin/zsh

clear

# 1) Define the target UUID
TARGET_UUID="EF36A59C-2942-4B67-8A7D-55D6743A0902"

# 2) Find the device node via diskutil info -all and AWK
DISK_NODE=$(
  diskutil info -all | awk -v uuid="$TARGET_UUID" '
    /^   Device Identifier: / { dev_id = $3 }
    /^   Device Node: /      { dev_node = $3 }
    /^   Volume UUID: / {
      if ($3 == uuid) {
        print dev_node
        exit
      }
    }
  '
)

# 3) Check whether the disk node was found
if [[ -z "$DISK_NODE" ]]; then
  echo "Could not find a matching volume for UUID ($TARGET_UUID)."
  exit 1
fi

# 4) Mount the disk if it's not already mounted
echo "Found Device Node: $DISK_NODE"
diskutil mount "$DISK_NODE"