Unix/Linux Go Back    

Showing results 1 to 7 of 7
Search took 0.01 seconds.
Search: Posts Made By: Demas
Forum: UNIX for Beginners Questions & Answers Linux 10-15-2016
Replies: 7
Views: 545
Posted By Demas
Sorry, I'm not explaining myself properly I...

Sorry, I'm not explaining myself properly

I have a sh file with this:

echo "Name user:"
read user
echo "Name channel:"
read channel
...
Forum: UNIX for Beginners Questions & Answers Linux 10-15-2016
Replies: 7
Views: 545
Posted By Demas
Thank you What I'm asking is: when I...

Thank you


What I'm asking is: when I execute the sh file which associates a person with a tv channel it writes in the log file something like this:2016-09-26 14:00:01 Mary CBS
Forum: UNIX for Beginners Questions & Answers Linux 10-15-2016
Replies: 7
Views: 545
Posted By Demas
Time and Date

Hi! I have a sh file and a log file and I need to add the time and date of my computer to the log file every time I execute the sh file.

I found this code: echo %time% %date% >> file.log but it...
Forum: Homework & Coursework Questions Linux 10-15-2016
Replies: 9
Views: 3,419
Posted By Demas
sed -E "s/$channel_remove//g"

sed -E "s/$channel_remove//g"
Forum: Homework & Coursework Questions Linux 10-15-2016
Replies: 9
Views: 3,419
Posted By Demas
Thank you! I already added here the channels.txt...

Thank you! I already added here the channels.txt and registrations.txt
Forum: Homework & Coursework Questions Linux 10-15-2016
Replies: 9
Views: 3,419
Posted By Demas
Thank you! I added all you said and I keep...

Thank you! I added all you said and I keep getting this error: end of file unexpected (expecting "fi")
Forum: Homework & Coursework Questions Linux 10-15-2016
Replies: 9
Views: 3,419
Posted By Demas
Help with shell scrip syntax errors

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

This script...
Showing results 1 to 7 of 7

 


All times are GMT -4. The time now is 04:07 AM.