User Tools

Site Tools


reading_a_line

If you want to send us your comments, please do so. Thanks
More on comments


reading a line

Reading a line with bash error

while IFS='' read -r line || [[ -n "$line" ]]; do echo $line; done < /mnt/ramdisk/file.txt  | less
while IFS='' read -r line || [[ -n "$line" ]]; do echo -e "$line\n"; done < /mnt/ramdisk/file.txt | less

The first output contains also the output as if it was the output of a ls command. The second also has an extra empty line after each line


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
reading_a_line.txt · Last modified: 19-06-2018 11:13 by wim