-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script for converting uppercase to lower
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
##this script converts uppercase letters to lowercase | ||
|
||
echo "Enter the file name: " | ||
read fileName | ||
|
||
if [ ! -f $fileName ]; then | ||
echo "FileName $fileName does not exist." | ||
exit 1 | ||
fi | ||
|
||
tr '[A-Z]' '[a-z]' < $fileName >> small.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
this is a script that works on mostly on ubuntu | ||
systems as some packages to be installed are snaps. | ||
it contains only basic software installations. | ||
|
||
first change the script to executable: | ||
|
||
chmod +x install.sh | ||
|
||
then run the script as root user for easier flow: | ||
|
||
sudo ./install.sh | ||
|
||
the script then flows and install the listed packages. | ||
the examples of the packages are : | ||
#vlc | ||
#htop | ||
#whatsapp-for-linux | ||
#sl | ||
#cowsay | ||
#net-tools | ||
looking to create more scripts which will eventually be repetitive background processes | ||
without much interaction from the user. | ||
|
||
|
||
note : the script is automatically deleted after finishing execution. | ||
here are screenshots of how it works! | ||
|
||
![screenshot from 2024-01-16 17-33-46](https://github.com/dee-mee/shell-script/assets/98864170/74601cd9-84db-4725-8c56-46222f12c7ed) | ||
|
||
|
||
![screenshot from 2024-01-16 17-34-56](https://github.com/dee-mee/shell-script/assets/98864170/342a39de-da4b-4499-8b3c-47f64099436c) | ||
|
||
|
||
![screenshot from 2024-01-16 17-36-43](https://github.com/dee-mee/shell-script/assets/98864170/157d28af-c5a1-4e57-b553-daba8e3a2451) | ||
|
||
|
||
|
||
![screenshot from 2024-01-16 17-36-54](https://github.com/dee-mee/shell-script/assets/98864170/a9d75789-4977-4e49-acdf-da3b0af845f8) |