bash sh - command not found?

#!/bin/bash cd ~/workspace/trunk; svn up; When I run ./build.sh form command line, it says: : command not found ...

How to use mod operator in bash??

I'm trying a line like this: for i in {1..600}; do wget http://example.com/search/link $i % 5; done; What I'm try...

Split string into an array in Bash?

In a Bash script I would like to split a line into pieces and store them in an array. The line: Paris, France, Eur...

Command not found/Install missing gem binaries with 'bundle install' using autotest?

I am totally new to RoR. I am following Michael Hartl's book. I am not able to make autotest run. Please suggest wha...

Threads in bash??

Is it possible to use threads in bash scripts. I have a driver class in java that i'm trying to run multiple instanc...

Test whether a directory exists inside a makefile?

In his answer @Grundlefleck explains how to check whether a directory exists or not. I tried some to use this inside...

Open an .html file with default browser using Bash on Mac?

So, this is what I need : Let's say I have an index.html file. How do I tell the terminal to open it using the def...

How do I reload .bashrc without logging out and back in??

If I make changes to .bashrc, how do I reload it without logging out and back in? ...

Suppress warning messages using mysql from within Terminal, but password written in bash script?

When I tried running the following command on MySQL from within Terminal: mysql -u $user -p$password -e "statement"...

“-bash: python2: command not found” on OS X?

I'm trying to use this script to import my iTunes library to another program. At the step where I enter python2 ex...

Cat with wildcard?

The question is maybe trivial but I can't get it to work. I just want to merge 2 particular files present in multipl...

How can I do division with variables in a Linux shell??

When I run commands in my shell as below, it returns an expr: non-integer argument error. Can someone please explain...

List of Java processes?

How can I list all Java processes in bash? I need an command line. I know there is command ps but I don't know what ...

Parsing a curl json response and using response to build another request?

I am trying to build an shell script that will fetch the image url for a random XKCD comic, so that I can display it...

What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another?

Hi I wanted to know why I am getting this error. I have this directory called mock, which inside has another 3 direc...