Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1514a3b

Browse files
committed
conflict
2 parents dd7e5b4 + 667d554 commit 1514a3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+639
-577
lines changed

README.md

100644100755
Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,61 @@ A collection of simple Bash scripts.
22

33
## Getting Started
44

5-
1. [Hello.sh](scripts/Hello.sh): get a simple output
6-
1. [Process.sh](scripts/Process.sh): execute more than one command in a script
7-
1. [Interactive.sh](scripts/Interactive.sh): a simple but very much interactive script
8-
1. [Special_Pattern.sh](scripts/Special_Pattern.sh): draw a diamond pattern with dots(.)
5+
1. [Hello.sh](scripts/hello-world.sh): get a simple output
6+
1. [Process.sh](scripts/process.sh): execute more than one command in a script
7+
1. [Interactive.sh](scripts/interactive.sh): a simple but very much interactive script
8+
1. [Special-Pattern.sh](scripts/special-pattern.sh): draw a diamond pattern with dots(.)
99
1. [While-Read.sh](scripts/while-read.sh): read lines from a file using while loop
1010
1. [Read-Menu.sh](scripts/read-menu.sh): display a menu for system information
1111
1. [While-Menu.sh](scripts/while-menu.sh): a repeated menu for system information
12-
1. [Colorfull.sh](scripts/Colorfull.sh): provide you with the output of several colours
12+
1. [Affect.sh](scripts/affect.sh): print a spinner loader
13+
1. [Colorfull.sh](scripts/color.sh): provide you with the output of several colours
1314
1. [Convertlowercase.sh](scripts/convertlowercase.sh): convert data either from the file or standard input to lowercase
14-
1. [Encrypt.sh](scripts/Encrypt.sh): encrypt a file/folder with password
1515
1. [up.sh](scripts/up.sh): move up a directory in shell script
16-
1. [Randomfile.sh](scripts/Randomfile.sh): create unique file/folder automatically with date and time stamp
16+
1. [List-dir.sh](scripts/list-dir.sh): list files in a directory
17+
1. [Randomfile.sh](scripts/randomfile.sh): create unique file/folder automatically with date and time stamp
18+
1. [Random-emoji.sh](scripts/random-emoji.sh): print ramdom emojis
19+
1. [pomodoro.sh](scripts/pomodoro.sh): a simple pomodoro app written in bash
1720

1821
## Programming
1922

20-
1. [VersionCompare.sh](scripts/versionCompare.sh): compare two version number
23+
1. [VersionCompare.sh](scripts/versioncompare.sh): compare two version number
24+
25+
## Utility
26+
27+
1. [Encrypt.sh](scripts/encrypt.sh): encrypt a file/folder with password
28+
1. [Archive-and-encrypt.sh](scripts/archive-and-encrypt.sh): archive a path into a file and encrypt the file
29+
1. [weather.sh](scripts/weather.sh): check the weather in a specified location or using the geolocation of the ip address by default.
2130

2231
## System Administration
2332

24-
1. [DirectorySize.sh](scripts/directorySize.sh): output a specified directory's size
33+
1. [DirectorySize.sh](scripts/directorysize.sh): output a specified directory's size
2534
1. [Test-File.sh](scripts/test-file.sh): evaluate the status of a file/directory
26-
1. [Server-Health.sh](scripts/Server-Health.sh): report server related information
27-
1. [Disk-Space.sh](scripts/Disk-Space.sh): check if the disk space crosses the limit
35+
1. [Server-Health.sh](scripts/server-health.sh): report server related information
36+
1. [CPU.sh](scripts/cpu.sh): report if CPU usage exceeds the threshold
37+
1. [Disk-Space.sh](scripts/disk-space.sh): check if the disk space crosses the limit
2838
1. [CollectNetworkInfo.sh](scripts/collectnetworkinfo.sh): gather information related to server
2939
1. [RemoteBackup.sh](scripts/remotebackup.sh): backup a local file into a remote server
3040
1. [HardwareInfo.sh](scripts/hardware_machine.sh): show hardware information for systems Linux
3141

3242
## Math
3343

34-
1. [Addition.sh](scripts/Addition.sh): perform addition of two numbers
35-
1. [Substraction.sh](scripts/Substraction.sh): perform substraction of two numbers
36-
1. [Multiplication.sh](scripts/Multiplication.sh): perform multiplication of two numbers
37-
1. [Division.sh](scripts/Division.sh): perform division of two numbers
44+
1. [Addition.sh](scripts/addition.sh): perform addition of two numbers
45+
1. [Substraction.sh](scripts/substraction.sh): perform substraction of two numbers
46+
1. [Multiplication.sh](scripts/multiplication.sh): perform multiplication of two numbers
47+
1. [Division.sh](scripts/division.sh): perform division of two numbers
3848
1. [Simplecacl.sh](scripts/simplecalc.sh): a simple calculator
39-
1. [Table.sh](scripts/Table.sh): print table of any number
40-
1. [EvenOdd.sh](scripts/EvenOdd.sh): check if a number input from standard input is odd or even
41-
1. [Factorial.sh](scripts/Factorial.sh): generate the factorial of a number
42-
1. [Armstrong.sh](scripts/Armstrong.sh): check if a provided number is Armstrong or not
43-
1. [Prime.sh](scripts/Prime.sh): check if a number is prime or not
44-
1. [Fibonacci.sh](scripts/Fibonacci.sh): test if a number being entered is a Fibonacci or not
45-
1. [Decimal2Binary.sh](scripts/Decimal2Binary.sh): convert Decimal Number to Binary
46-
1. [Binary2Decimal.sh](scripts/Binary2Decimal.sh): convert Binary Number back to decimal
49+
1. [Table.sh](scripts/table.sh): print table of any number
50+
1. [EvenOdd.sh](scripts/evenodd.sh): check if a number input from standard input is odd or even
51+
1. [Factorial.sh](scripts/factorial.sh): generate the factorial of a number
52+
1. [Armstrong.sh](scripts/armstrong.sh): check if a provided number is Armstrong or not
53+
1. [Prime.sh](scripts/prime.sh): check if a number is prime or not
54+
1. [Fibonacci.sh](scripts/fibonacci.sh): test if a number being entered is a Fibonacci or not
55+
1. [Decimal2Binary.sh](scripts/decimal2binary.sh): convert Decimal Number to Binary
56+
1. [Binary2Decimal.sh](scripts/binary2decimal.sh): convert Binary Number back to decimal
57+
1. [Decimal2Hex.sh](scripts/dec2hex.sh): convert Decimal Number to Hex
58+
1. [Hex2Decimal](scripts/hextodec.sh): convert Hex number back to Decimal
59+
60+
## License
61+
62+
MIT

scripts/Armstrong.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

scripts/Binary2Decimal.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

scripts/Colorfull.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

scripts/Decimal2Binary.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

scripts/Disk-Space.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/Division.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/EvenOdd.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

scripts/Factorial.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

scripts/Fibonacci.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

scripts/Hello.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/Multiplication.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/Prime.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

scripts/Server-Health.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

scripts/Special_Pattern.sh

Lines changed: 0 additions & 43 deletions
This file was deleted.

scripts/Substraction.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

scripts/Table.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

scripts/addition.sh

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

0 commit comments

Comments
 (0)