Making shapes with linux shell script -
for assignment, i'm trying make shell script print triangle looks following:
+ | \ | \ | \ | \ +-----
here code in vim:
echo'+ | \ | \ | \ | \ +----- '
however, instead of getting output when run script, outputs following:
can tell me i'm doing wrong?
try this
#!/bin/bash echo ' + | \ | \ | \ | \ +----- '
just start on next line since need spaces before "+"
Comments
Post a Comment