Linux World
Pages
(Move to ...)
Home
Programming
Computer Architecture
Tit Bits
Trouble Shoot
Kernel Related
Quizzes
Linux Tips
▼
2021 on Linux Terminal
Here is a bash script which can be used to create the text 2021 on the terminal using any characher of your choice.
#!/bin/bash #create 2021 on terminal using any user specified character str_dwn() { rows=$1 s_start=$2 char=$4 str_st_row=$3 rows_end=$((str_st_row+rows)) for((i=str_st_row;i
Copy the script and save it as 2021.sh. Open a terminal and type
bash 2021.sh
It will prompt for the characher which should be used.
What character do you want to use *
We have entered "*" as the characher, and you should see the output as shown below.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment