2
ファイルを1行ずつ読み取る際のユーザー入力の要求
クラスのispell場合は、whileループ内でユーザー入力を要求してから出力を取得するBashスクリプトを作成する必要があります。これは、ファイルの次の行をユーザー入力として保存するだけです。 whileループでユーザー入力を要求するにはどうすればよいですか? #!/bin/bash #Returns the misspelled words #ispell -l < file #define vars ISPELL_OUTPUT_FILE="output.tmp"; INPUT_FILE=$1 ispell -l < $INPUT_FILE > $ISPELL_OUTPUT_FILE; #echo a new line for give space between command #and the output generated echo ""; while read line; do echo "'$line' is misspelled. Press "Enter" to keep"; read -p …