Files
mastering-unix-ss/chapter11/function_load_default_keyboard
Fabio Scotto di Santolo 4cc88d2f6e initial commit
2020-07-28 19:28:25 +02:00

16 lines
433 B
Plaintext
Executable File

load_default_keyboard ()
{
# Loop through each character in the following list and
# append each character to the $CHAR_FILE file. This
# produces a file with one character on each line.
for CHAR in 1 2 3 4 5 6 7 8 9 0 q w e r t y u i o \
p a s d f g h j k l z x c v b n m \
Q W E R T Y U I O P A S D F G H J K L \
Z X C V B N M 0 1 2 3 4 5 6 7 8 9
do
echo "$CHAR" >> $CHAR_FILE
done
}