Custom Unix shell scripts for file manipulation, program execution and printing text.
You can jump to list of available scripts if you don't need introduction.
Clone this repository to have it on your machine (in locale).
# Clone repository
git clone https://github.com/90zlaya/shell-scripts.git
Enter into cloned directory and mirror source folder.
# Enter into root directory
cd shell-scripts/
# Mirror src directory
cp -R src/ deploy/versions/[current-version]
It's recommended to keep name deploy
for this copy as it was ignored by .gitignore.
This will allow you to git pull
newest version of this repository without overwriting your updates to scripts.
Navigate to the mirrored folder and edit script to meet your requirements.
# Enter mirrored directory
cd deploy/versions/[current-version]
# List all shell scripts
ls -al *.sh
# Open script to have it updated
nano [script-name].sh
When you're done editing script, save it and you are able to run it.
# Run script
bash [script-name].sh
For more information on how to use specific script check list of available scripts.
You can create alias for certain script:
# Create alias
alias [alias-name]="[command]"
# Get help how to use script you aliased
[alias-name] -h
Replace [alias-name]
with your alias and [command]
with full path to your script (presumably [installation-path]/shell-scripts/deploy/versions/[current-version]/[script-name].sh
).
Make sure to check if there's new version of this repository. It's being updated and maintained on a regular basis. Any help in terms of development and suggestions will be warmly welcomed.