mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-10-18 12:59:39 +00:00
24 lines
340 B
Bash
24 lines
340 B
Bash
#!/bin/bash
|
|
|
|
echo '### Test of #! with file as input'
|
|
cat >/tmp/shebang <<EOF
|
|
#!/usr/local/bin/parallel -Yr echo
|
|
A
|
|
B
|
|
C
|
|
EOF
|
|
chmod 755 /tmp/shebang
|
|
/tmp/shebang
|
|
|
|
echo '### Test of #! with 2 files as input'
|
|
cat >/tmp/shebang <<EOF
|
|
#!/usr/local/bin/parallel -Yr -a /tmp/123 echo
|
|
A
|
|
B
|
|
C
|
|
EOF
|
|
chmod 755 /tmp/shebang
|
|
seq 1 3 >/tmp/123
|
|
/tmp/shebang
|
|
|