Tags » Shell Script

Useful Bash Functions!

Always useful to have some shell scripts and functions to enhance your workflow. Here are a few that I use:

aliases
Some aliases…

alias refreshbash='source ~/.bashrc'
alias emacs="runnit /Applications/Emacs.app/Contents/MacOS/Emacs"
alias emacsnw="/Applications/Emacs.app/Contents/MacOS/Emacs -nw" 595 more words
Bash

How to add "Open in Sublime Text" service to any folder or a file on Mac - Shell Script

Hello everyone,

I have been using the sublime text lately. I am amazed with several jaw dropping features this gorgeous editor provides. I will writing more on sublime text and today  I am going to discuss about “How to add a service ‘ 237 more words

MAC LIFE!

Shell Script to Get line by line input from file

It is the shell script:

#!/bin/sh
while read line
do
echo $line
done <filename

Here filename is the name of file to be given as input to the script and “line” is a variable. 43 more words

Ubuntu

$# and S* in shell script

From here:

$#    Stores the number of command-line arguments that 
      were passed to the shell program.
$?    Stores the exit value of the last command that was 
      executed. 112 more words
Unix

Fortigate SNMP Notes - Part 2

Scripting data collection

In part 1 I identified a number of SNMP values to obtain from the Fortigate Firewall, mine being an FG100D with version 5.0 firmware. 452 more words

Linux Admin

Shell - String replace

Previously we talked about how to submit a Google Form by the curl command.

In the url, we have to encode the special characters such as whitespace. 73 more words

Shell Script

Hello everyone!

Would you like to print out a fancy terminal log for your Node.js applications? Check it out…

In this post I am going to tell you how to do it. 508 more words

NodeJS