[SOLVED] cat using readline(read -e)
by gerard4143 from LinuxQuestions.org on (#6MK81)
Is it possible to get cat, in this example, to use readline(read -e) to process/edit its input?
Code:cat > datafileWhat I'd like to see cat > datafile do is:
Code:#! /usr/bin/env bash
# -e engages readline
while read -r -e line
do
echo "${line}"
done
Code:cat > datafileWhat I'd like to see cat > datafile do is:
Code:#! /usr/bin/env bash
# -e engages readline
while read -r -e line
do
echo "${line}"
done