Tags » Shell Script

Basics of Shell Scripting

A quick overview: What is shell scripting?

Essentially, a shell script is a series of Unix commands. The main benefit of a shell script is that, if you find yourself frequently executing the same commands repeatedly, you can write a shell script and run the commands that way. 2,026 more words

shell script cheat sheet

for f in `ls *.so`; do echo $f; nm $f | grep cblas_dgemm; done

nm *.so | grep clbase_

find . -name “lib*omp*”

Shell Script

Unix 101

The shell provides you with an interface to the UNIX system. It gathers input from you and executes programs based on that input. When a program finishes executing, it displays that program’s output. 788 more words

Bourne Shell

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