Unix/Linux Go Back    



Help with shell scrip syntax errors

Homework & Coursework Questions




Kindly Note - This is a Single User Post by Forum Member Chrismcq Regarding:
Help with shell scrip syntax errors.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 01-19-2017   -   Original Discussion by Demas
Chrismcq's Unix or Linux Image
Chrismcq Chrismcq is offline
Registered User
 
Join Date: Jan 2017
Last Activity: 24 January 2017, 10:46 AM EST
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Surely to remove a channel, you need to


Code:
grep -v "$channel_remove" channels.txt > channels.NEW
mv channels.NEW channels.txt


ps - just noticed the sed command that Demas had posted which will answer this query too.