Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-30-2014, 02:08 AM   #1
LQ Newbie
Registered: May 2014
Posts: 4

Rep: Reputation: Disabled
write a script 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
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
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 828

Rep: Reputation: 200Reputation: 200Reputation: 200
Hi pritam,

Homework is it?

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

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
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
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... &c ;-)
Posts: 3,478
Blog Entries: 2

Rep: Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018
Walk through first link, here's the way:
Old 05-30-2014, 07:44 AM   #6
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,982
Blog Entries: 10

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


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 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

All times are GMT -5. The time now is 07:46 AM.

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