LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-30-2014, 03:08 AM   #1
pritammt
LQ Newbie
 
Registered: May 2014
Posts: 4

Rep: Reputation: Disabled
write a script hello.sh to display hello world. The script should be executed from a


I can not find answer of this question. Please post helpful answer.
 
Old 05-30-2014, 03:12 AM   #2
potato_farmer
Member
 
Registered: May 2014
Posts: 55

Rep: Reputation: Disabled
What command can you use to display output to the screen?

Try using it in your script.
 
Old 05-30-2014, 03:15 AM   #3
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 806

Rep: Reputation: 186Reputation: 186
Hi pritam,

Homework is it?

OK
 
Old 05-30-2014, 06:43 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.
 
Old 05-30-2014, 07:15 AM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,109
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
Walk through first link, here's the way: http://www.linuxquestions.org/questi...35750#comments
 
Old 05-30-2014, 08:44 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,105
Blog Entries: 10

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
Quote:
Originally Posted by pritammt View Post
I can not find answer of this question. Please post helpful answer.
Little bit of added perspective here. You were not given this assignment without having been given an overview of how to write a shell script. A script to print out one phrase is the about the most simple variation of a script possible. You've managed to find this forum, signed up for it, and asked a question. Pretty much what you've done here is just about as difficult as it is to write that script. Therefore put that same amount of effort into reading your book, reviewing notes given to you by your teacher/instructor, searching the web for script tutorials, and I'll bet you'll have this assignment done in just about no time; however you'll have learned a very basic, but also important aspect of scripting and the command prompt. If you're going to be doing anything further with Linux; it'd be pretty stupid to just take a shortcut here all for the sake of getting a smiley face or checkmark on some homework assignment.
 
1 members found this post helpful.
  


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
When was the script last executed? AnAsianCalledRusty Linux - Newbie 1 01-18-2011 11:21 AM
Which script gets executed? junglepunk Linux - Newbie 20 06-18-2010 09:44 AM
Getting location of the script which is currently being executed jiju.jacob Linux - Newbie 4 07-21-2008 06:48 AM
script executed inside another script dont make changes potraike Linux - Newbie 4 03-05-2008 06:27 AM
Can you write a script to display file name, Inode, and size of any file? JaxsunApex Linux - Newbie 3 01-30-2007 09:39 AM


All times are GMT -5. The time now is 04:24 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