Tag Archives: linux

How to use sed to delete a line that contains text and not leave a carriage return behind

Use the following command to remove a line from a text file that matches your variable. sed "/text/d" file.txt Obviously replace text with your text match string and file with your filename.

Install cURL on Ubuntu Linux

If you use PHP, you may need to use cURL, which is one of the most popular extension. PHP CURL functions are available through the use of libcurl, a library created by Daniel Stenberg, and allow you to connect and ...