LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-10-2006, 08:23 PM   #1
kedens
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
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?
 
Old 10-10-2006, 08:44 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some C code that I have written wampire Programming 1 04-29-2006 07:30 PM
Shell Script Tutorial: shahrokhnikou Programming 1 10-28-2005 07:59 AM
Why LInux is Written in C and in C++? Jatinm Programming 15 01-30-2005 10:03 PM
how to are logs written to? robadawb Linux - Newbie 1 11-11-2003 03:56 AM
How about a weekly tutorial? or just a tutorial Alinuxnoob LQ Suggestions & Feedback 2 04-09-2002 08:30 PM


All times are GMT -5. The time now is 05:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration