Article 6MK81 [SOLVED] cat using readline(read -e)

[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
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments