Background For those who enjoy sharing code online, WordPress offers a viable platform. WordPress SyntaxHighlighter Code Block Languages Supported Languages actionscript3 bash clojure coldfusion cpp csharp css delphi diff erlang fsharp groovy html java javafx javascript latex (you can also render LaTeX) matlab (keywords only) objc perl php powershell python r ruby scala sql text … Continue reading WordPress:- SyntaxHighlighter Code Block – Modern Languages
Scripting
Linux:- Login Scripts – Day 01
Background The good thing about personal computing is that it lends itself to quick and easy customizing. In this post, we will cover how we can use "login scripts" to customize our prompt while in Linux's terminal mode. OSes Microsoft - Win OS In the Microsoft Windows world, one can use autoexec.bat to run scripts … Continue reading Linux:- Login Scripts – Day 01
helloWorld In Bash
Background Had a Hard and Productive Heavy lifting with database work this weekend. To lighten up the mood a bit, let us play around with Linux. Hello World in Bash Outline Environment Variable USER Get Username by accessing the global variable $USER Place it in the envUsername variable System Variables Get Date $(date) Get … Continue reading helloWorld In Bash
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$instance.oracle.sql" git add "$_folder/oracle/v\$instance/v\$instance.oracle.sql" … 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
Linux – printf – Proper Usage
Background I ran into problems with a little bash code that I was writing. I was trying to use the printf code format command. Code Here is the original code. Original Code Output Textual Revised Code Code Code The solution is pretty simple and it is to quote the format string. Simply … Continue reading Linux – printf – Proper Usage
Microsoft – Windows / Cygwin – Error – $’\r’: command not found
Background In Microsoft Windows, Launched Cygwin terminal mode and running a little bash shell script. But, getting the error "$'\r': command not found" The \r is a dead giveaway, as it means there is something amiss with Line Character and Carriage Return. Fix To fix: Launched Notepad++ Load the Bash Script File Access the menu … Continue reading Microsoft – Windows / Cygwin – Error – $’\r’: command not found
You must be logged in to post a comment.