Top "Sh" questions

sh is the standard Unix shell since Version 7 Unix.

How to watch file changes on Mac OSX using FSWatch?

I'm trying to use fswatch to translate the following lines from a linux bash script to be able to run …

macos sh monitor inotifywait fswatch
Should I use a Shebang with Bash scripts?

I am using Bash $ echo $SHELL /bin/bash and starting about a year ago I stopped using Shebangs with my …

bash shell sh shebang
How to get script directory in POSIX sh?

I have the following code in my bash script. Now I wanna use it in POSIX sh. How can I …

bash posix sh
How to make expect command in expect program script to wait for exact string matching

I want to know how to make expect command in expect script to wait for exact string to be matched …

shell unix scripting sh expect
Busybox sh won't execute the bash script

I have a small script called test.sh which prints the value based on the index given. #!/bin/sh days_…

bash sh busybox dash-shell
^word^replacement^ on all matches in Bash?

To clarify, I am looking for a way to perform a global search and replace on the previous command used. ^…

bash shell sh
Bourne Shell Left Right Justify

I am trying to do some formatting on output data in a script and not positive how to do Left …

shell scripting width sh justify
How to check if a file is older than 30 minutes in unix

I've written a script to iterate though a directory in Solaris. The script looks for files which are older than 30 …

shell unix sh unix-timestamp solaris-10
Using dex2jar jar file in terminal

I have been using Ubuntu 14.04. I have dex2jar.jar file and i want to use dex2jar to decompile …

ubuntu terminal sh dex2jar
Setting path for whenever in cron so it can find ruby

My ruby is in /usr/local/bin. whenever can't find it, and setting PATH at the top of my cron …

ruby bash cron sh whenever