Linux World
Pages
Home
Programming
Computer Architecture
Tit Bits
Trouble Shoot
Kernel Related
Quizzes
Linux Tips
Follow @Linux_world
Search
Create 2017 on the terminal using any character
Here is a bash script which can be used to create the text 2017 on the terminal using any characher of your choice.
#!/bin/bash #create 2017 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 2017.sh. Open a terminal and type
bash 2017.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, the colors will be chosen randomly.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment