Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I just edited it to $url for users to understand easier. But in fact in the code I have a problem its $p Still doesnt work Blank response even with your code Commented Jan 7, 2019 at 12:50
  • I edited to echo the read URL. You don't see that either? Commented Jan 7, 2019 at 12:56
  • 1
    There is no issue with read -r url || [ -n "$url" ], this is a common way to read lines from files whose last line is not properly terminated by a newline. Commented Jan 7, 2019 at 12:59
  • @Kusalananda Thanks! Learned something. Thought it is to filter out empty lines. Commented Jan 7, 2019 at 13:10