LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2011, 04:50 AM   #16
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195

Quote:
Originally Posted by kenny53067 View Post
Is this right: echo "Input information and then press Ctrl+d" on the line before cat >> $file
Looks good; if in doubt you can always try it and see what happens. You can make a backup of your script using the cp (copy) command so if you make a mess of things you can get back to where you were and start over. The cp commands -p option is useful when making backups. You might also want to learn the rm (remove) and mv (move commands).

Last edited by catkin; 07-23-2011 at 04:51 AM. Reason: Spelling: thinks to things
 
1 members found this post helpful.
Old 07-23-2011, 04:53 AM   #17
kenny53067
Member
 
Registered: Jul 2011
Location: Rio Grande City, Texas
Posts: 54

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by catkin View Post
Looks good; if in doubt you can always try it and see what happens. You can make a backup of your script using the cp (copy) command so if you make a mess of things you can get back to where you were and start over. The cp commands -p option is useful when making backups. You might also want to learn the rm (remove) and mv (move commands).
I thank you for the help, I've learned more in the last couple hours than I have all month trying to learn it on my own.

Thanks a lot!!
 
Old 07-23-2011, 08:10 AM   #18
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by kenny53067 View Post
I am unable to locate any of those. the name of my textbook is A practical guide to Fedora and Red Hat Enterprise Linux. If this helps.

The book says when you use cat, it copies a file to standard output. What is stdin??
stdin is standard input. It's just like standard output. cat reads the text you type from standard input and writes it to standard output, and then the ">>" operator tells the shell to append the standard output of the preceeding command to a file.

http://linuxcommand.org/

http://linuxcommand.org/writing_shell_scripts.php

http://mywiki.wooledge.org/BashPitfalls

http://mywiki.wooledge.org/BashFAQ

Last edited by MTK358; 07-23-2011 at 08:12 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to understand script vaibhavs17 Linux - Newbie 2 10-19-2010 06:46 PM
[SOLVED] Help me understand this Perl script please. It's not homework. vxc69 Programming 33 08-03-2010 11:11 AM
I cannot understand this perl script mq15 Linux - Server 3 10-12-2009 01:44 AM
Perl Script..Difficult to understand ?? ajeetraina Linux - General 2 02-21-2008 12:17 AM
Help me understand this shell script dwhitney67 Linux - Software 2 10-18-2007 10:02 AM


All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration