Linux – File Names with special characters

Background Here I am trying to add a file to git It is a simple git add command.   Script Original   Error Warning - Could not open directory - No such file or directory Error - Image Error - Text   Revision Outline Please escape the special characters git add "$_folder/oracle/v$instance/v$" git add "$_folder/oracle/v\$instance/v\$" … Continue reading Linux – File Names with special characters

Git Clone – Error – “fatal: Too many arguments”

Background Ran into a little error using ""Git Bash" on MS Windows.   Error Error Message - fatal: Too many arguments. Image Text Code TroubleShooting Outline Show Hidden Characters Linux / GitBash vi show hidden characters MS Windows Notepad++ show hidden characters Task Git Bash vi Show Hidden Characters Outline Original Plain text view Enter … Continue reading Git Clone – Error – “fatal: Too many arguments”

Git – Client – Commands

Background Let us review some of the GIT commands one will use each day. List of Command   Command Description Syntax Link File Operation Add Add a new file git add <filename> Link Remove Remove an existing file git rm <filename> Link Rename or Move Rename or move an existing file git mv <filename> <folder> … Continue reading Git – Client – Commands

Git – Client/Windows – Git Bash

Background Upon installing a recent version of Git Client opted to evaluate one of its sub-components. Git Bash What Is? Definition Atlassian BitBucket [ Link ] Git Bash is an application for Microsoft Windows environments that provides an emulation layer for a Git command-line experience. Bash is an acronym for Bourne Again Shell. A shell … Continue reading Git – Client/Windows – Git Bash

Bash – Reading Command Line Arguments

Background Let us validate and display the command line arguments passed to our bash script.   Code Outline Functions validateArguments declare variables rc =0 Access global variable ( argsAsArray) get handle to array variable => ( ("${argsAsArray[@]}") get number of array entries => {#arrayArgs[@]} If number of entries in array does not match expected value … Continue reading Bash – Reading Command Line Arguments

Bash – Running Script

Background Let us review the choices we have for running our bash scripts.   Outline filename ( ) full file name ( <folder>\<filename>) Tasks Filename ( ) Syntax Sample Output Output - Image Output - Text Explanation Error reads:- "Command not found" Full Filename ( ) Syntax Sample Output Output - Image … Continue reading Bash – Running Script

Bash – Simulation Environment – Online

Background Ever so often I am not close enough to my working Linux Hosts and the Lab Network is iffy. At those times trying to work on my own Linux Hosts is annoying. Online Bash Simulation Go figure, but at those times I am a bit more successful trying out little modules via Online Simulation … Continue reading Bash – Simulation Environment – Online

Bash – Function – Return String from a function

Background Playing around with Bash and just really wrestling on how to tokenize a string and return its parts. Honestly, it is much simpler than that. It can only have two whole pieces; I cheated and made sure of that while curating the dataset.   Options Here are the options available for returning data from … Continue reading Bash – Function – Return String from a function