LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to write this script? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-write-this-script-155996/)

MeganageM 03-10-2004 04:37 PM

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

acid_kewpie 03-10-2004 05:01 PM

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!


All times are GMT -5. The time now is 06:05 PM.