LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 02: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, 02: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, 02:15 AM   #3
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi pritam,

Homework is it?

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

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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, 06:15 AM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Walk through first link, here's the way: http://www.linuxquestions.org/questi...35750#comments
 
Old 05-30-2014, 07:44 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:28 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
Open Source Consulting | Domain Registration