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 01-19-2017
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

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.