Pass args for script when going thru pipe April 7, 2023 by Tarik You can pass arguments to the shell using the -s option: cat script | bash -s 5