Read a line-oriented file which may not end with a newline – unix.stackexchange.com

I have a file named /tmp/urlFile where each line represents a url. I am trying to read from the file as follows: cat "/tmp/urlFile" | while read url do echo $url done If the last line doesn't ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Read a line-oriented file which may not end with a newline – unix.stackexchange.com"