( mauzi | 2021. 12. 31., p – 10:28 )

Mármint, valami ilyenre gondolsz?

#!/bin/sh

while
  read LINE
do
  DIRNAME=$(dirname "$LINE")
  BASENAME=$(basename "$LINE")

  mkdir -p "$DIRNAME"
  touch "$DIRNAME/$BASENAME"
done

Ebből persze a $BASENAME gyakorlatilag fölösleges, mert egyből létrehozhatod helyette a $LINE-t is akár.