Is there a way to print same character repeatedly in bash, just like you can use this construct to do this in python:
print('%' * 3)
gives
%%%
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
sure, just use
printfand a bit of bash string manipulationThere should be a shorter way, but currently that’s how i would do it. You can make this into a function which you can store in a library for future use
Test run: