How shall I read the lines of a file whether they are ended with new line characters or not? – 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 "How shall I read the lines of a file whether they are ended with new line characters or not? – unix.stackexchange.com"