LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Has someone already written a tutorial script? (https://www.linuxquestions.org/questions/linux-general-1/has-someone-already-written-a-tutorial-script-491267/)

kedens 10-10-2006 08:23 PM

Has someone already written a tutorial script?
 
I was thinking about writing a shell script that is a tutorial on how to use the command line, but I don't want to if it's already been done. I was thinking about something like this:
#!/bin/bash
clear
echo -e "The command used to list the contents of a directory is ls\n"
sleep 2
clear
echo "type ls"
read com1
while [ "$com1" = "" ]
do
echo -e "You didn't type anything\n"
echo -e "Type ls"
read com1
done
while [ $com1 != "ls" ]
do
echo -e "No, You typed $com1.\n"
echo "Type ls"
read com1
done
echo -e "very good!!! Here are the contents of the current directory:\n"
sleep 2
clear
ls
echo -e "\n\n"
What do you guys think, about that idea, and has it already been done?

Micro420 10-10-2006 08:44 PM

Who cares if it's already been done or not! Just do it! As long as it can help others, it wouldn't hurt to have hundreds of tutorials scripts floating around on the internet (series of tubes).


All times are GMT -5. The time now is 09:44 AM.