Skip to content

Commit 2ff14ec

Browse files
committed
rename and add more script
1 parent 430f35b commit 2ff14ec

34 files changed

+109
-32
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
2-
echo .Enter the First Number: .
2+
3+
echo 'Enter the First Number :'
34
read a
4-
echo .Enter the Second Number: .
5+
echo 'Enter the Second Number :'
56
read b
67
x=$(expr "$a" + "$b")
78
echo $a + $b = $x

scripts/affect.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
arr=('-' '|' '/' '-' '\' '|')
4+
while true; do
5+
for c in "${arr[@]}"; do
6+
printf "\r %c " $c
7+
sleep .5
8+
done
9+
done
File renamed without changes.

scripts/Binary2Decimal.sh renamed to scripts/binary2decimal.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ echo "Enter a number :"
33
read Binary
44
if [ $Binary -eq 0 ]; then
55
echo "Enter a valid number "
6+
return
67
else
78
while [ $Binary -ne 0 ]; do
89
Bnumber=$Binary

scripts/Colorfull.sh renamed to scripts/colorfull.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
#!/bin/bash
22

3+
DARKGRAY='\033[1;30m'
4+
RED='\033[0;31m'
5+
LIGHTRED='\033[1;31m'
6+
GREEN='\033[0;32m'
7+
YELLOW='\033[1;33m'
8+
BLUE='\033[0;34m'
9+
PURPLE='\033[0;35m'
10+
LIGHTPURPLE='\033[1;35m'
11+
CYAN='\033[0;36m'
12+
WHITE='\033[1;37m'
13+
SET='\033[0m'
14+
15+
echo "I ${DARKGRAY}love${SET} github."
16+
echo "I ${RED}love${SET} github."
17+
echo "I ${LIGHTRED}love${SET} github."
18+
echo "I ${GREEN}love${SET} github."
19+
echo "I ${YELLOW}love${SET} github."
20+
echo "I ${BLUE}love${SET} github."
21+
echo "I ${PURPLE}love${SET} github."
22+
echo "I ${LIGHTPURPLE}love${SET} github."
23+
echo "I ${CYAN}love${SET} github."
24+
echo "I ${WHITE}love${SET} github."
25+
326
clear
427
echo -e "\033[1m Hello World"
528
# bold effect

scripts/dec2hex.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
printf "0x%x\n" $1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)