A simple
echo "Y Y N N Y N Y Y N" | ./your_script
This allow you to pass any sequence of “Y” or “N” to your script.
More Related Contents:
- Automating telnet session using bash scripts
- Bash prompt with the last exit code
- create a file with prefix =file1 followed by the random number
- How to read a file line by line and making a new file for each line having same filename as last word of each line? [closed]
- Why to code a script which will check if some package is installed in linux and if not then install it?
- Use sudo with password as parameter [closed]
- What does `set -x` do?
- Does “argument list too long” restriction apply to shell builtins?
- bash alias command with both single and double quotes
- Recursively look for files with a specific extension
- Take nth column in a text file
- Add a bash script to path
- Run multiple commands at once in the same terminal
- How to remove non UTF-8 characters from text file
- how to get MouseMove and MouseClick in bash?
- Find the files that have been changed in last 24 hours
- Tar a directory, but don’t store full absolute paths in the archive
- Bash script execution with and without shebang in Linux and BSD
- Variable in Bash Script that keeps it value from the last time running
- bash command not found when setting a variable
- How to obtain the number of CPUs/cores in Linux from the command line?
- How do I get cURL to not show the progress bar?
- Move all files except one
- Linux: remove file extensions for multiple files
- Joining multiple fields in text files on Unix
- Counter increment in Bash loop not working
- Start script after another one (already running) finishes
- Problem with Bash output redirection [duplicate]
- bash: set array env variable and de-referencing it from any shell script fails
- Why exit code 141 with grep -q?