Where is the 'line' utility gone that was in /usr/bin/line ? I understand that the bash 'read' builtin is an alternative but I have many uses of line in shell scripts and don't like to touch all those. Maybe it is in a package not installed by default, but cannot find it. Thanks for hints.
util-linux, but doesn’t seem to be provided any more with 17.10+. :/read line; echo $line) and put that in/usr/bin/line. Then your scripts will work again.IFS= read -r line; echo "$line". And it would be better to use/usr/local/bin/line, no?util-linuxa dependency for your scripts, that is in the beginning of the script check ifutil-linuxpackage is installed, and if not - runapt-get install util-linux. Alternatively, make your own "library" of functions, one of which would be what Jos and wjandrea suggested, and let your scripts source that library. Besides,readis more portable - what if you need to use the scripts on HP-UX or Aix or Solaris in future ? That is, make everything POSIX-compliant.