capture('bash', '-o', 'pipefail', '-c', 'cat "$1" | wc -l', 'dummy', $file)