Hack Forums
[Shell] Add a specified amount of chars based off of integer - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Add a specified amount of chars based off of integer (/showthread.php?tid=4979810)



Add a specified amount of chars based off of integer - Burakku Kenshi - Sep 7, 2015

I don't know if this is the correct place to post but it looks right so.
I want to include something in my script that would use the user's input (a number) and based off of that number it would add X many of the user's specified chars.
So far I have
Code
clear
read -p "Amount? " A
read -p "Character? " C
A=${A//}
B=

I want B to be Char over and over A times.
Any ideas?