12 lines
198 B
Plaintext
12 lines
198 B
Plaintext
![]() |
# name: copy list of files
|
||
|
# key: listcopy
|
||
|
# --
|
||
|
SOURCE="$HOME"
|
||
|
DEST="$TEMP"
|
||
|
while read -r i; do
|
||
|
mkdir -p "$DEST/$(dirname "$i")"
|
||
|
cp -v "$SOURCE/$i" "$DEST/$(dirname "$i")"
|
||
|
done <<EOF
|
||
|
$0
|
||
|
EOF
|