LinuxQuestions.org
Visit Jeremy's Blog.
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 03-10-2004, 04:37 PM   #1
MeganageM
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
how to write this script?


I'm trying to write a script that will turn out like this:


% rowof 5 a
aaaaa


% rowof 10 X
XXXXXXXXXXX


basically I need it to output the second parameter the number of times as the number in the second parameter
 
Old 03-10-2004, 05:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
i don't think for half a second that this isn't homework. please read your notes you have been given and other predefined resources available to you... you know, a couple of days ago a student was actively found cheating with an assignment on this site (and we polielty decllined to help then anyway...)

but as a pointer... you need a loop, you need a sequence, you need a print statement... it's nothing any beginners guide to bash won't cover in the first few pages...

Other members to this site will be thanked for not provided verbatim answers.... however if you can write this script in less than 37 characters, you beat my record!
 
  


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
where to write a startup script bnj Linux - Newbie 6 05-27-2005 08:10 AM
I need to write a short script Baran Programming 9 04-22-2005 09:55 AM
Help a newbie write a script! Braveheart1980 Linux - Software 14 09-22-2004 06:40 AM
How to write a Script Blake Linux - Software 6 07-18-2004 11:41 AM
Help with a script I need to write... cmfarley19 Programming 9 12-06-2003 12:10 PM


All times are GMT -5. The time now is 08:51 PM.

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