#!/bin/bash # SPDX-FileCopyrightText: 2021-2023 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc. # # SPDX-License-Identifier: GPL-3.0-or-later rm -f ~/.parallel/will-cite resize=`resize` # Disabled 2015-06-01 # # echo '### Test stdin goes to first command only ("-" as argument)' # cat >/tmp/parallel-script-for-script < /tmp/files echo 1 > /tmp/1 echo 'xargs Expect: 3 1' echo 3 | xargs -P 1 -n 1 -a /tmp/files cat - echo 'parallel Expect: 3 1 via psedotty 2' cat >/tmp/parallel-script-for-script </tmp/parallel-script-for-script2 </tmp/parallel-script-for-script2 </tmp/parallel-script-for-script3 < ~/.parallel/runs-without-willing-to-cite # Clear screen eval `resize` seq $LINES | parallel -N0 echo > /dev/tty reset