Home Man
Search
Today's Posts
Register

Students must use and complete the template provided. If you do not use the template your post may be deleted! Special homework rules apply here.

Help with shell scrip syntax errors

Login to Reply

 
Thread Tools Search this Thread
# 8  
Old 10-15-2016
Quote:
Originally Posted by RudiC
How did you add them?
Code:
echo "$channel_remove" << "channels.txt"

won't work, no way!
Code:
 sed -E "s/$channel_remove//g"

# 9  
Old 01-19-2017
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.
# 10  
Old 01-24-2017
Take note of the last line, done .
Something is missing, for example...
Code:
while true
do
        lots of code here
done        #Your line 48 as 49 does not technically exist.

Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Seek help on shell script syntax errors duke0001 Emergency UNIX and Linux Support 8 08-03-2011 03:06 AM
Get file name in shell scrip loop: bad substitution soueric Solaris 4 05-02-2011 11:20 PM
how to combine two files into one file using shell scrip netbanker Shell Programming and Scripting 2 12-06-2010 05:34 PM
PERL Syntax Errors nurani Shell Programming and Scripting 2 06-16-2010 12:49 AM
perl version for syntax errors bigben1220 Shell Programming and Scripting 13 05-12-2010 06:11 AM
How to convert shell scrip to binaric command raghunsi UNIX for Advanced & Expert Users 1 02-03-2010 01:27 AM
Using cp command inside shell scrip yoavbe Shell Programming and Scripting 2 06-22-2006 09:57 AM
If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip hchivukula UNIX for Dummies Questions & Answers 1 06-12-2005 08:34 AM
AWK Syntax errors :/ yongho Shell Programming and Scripting 6 06-08-2005 02:08 PM
Execute an Oracle stored procedure from a shell scrip mh53j_fe Shell Programming and Scripting 1 06-03-2005 03:17 PM


All times are GMT -4. The time now is 05:51 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password