Top "Sh" questions

sh is the standard Unix shell since Version 7 Unix.

Shell: redirect stdout to /dev/null and stderr to stdout

I saw this interesting question at a comment on cyberciti.biz. That I found I even can't find a flexible …

linux bash shell sh
What does it mean in shell when we put a command inside dollar sign and parentheses: $(command)

I just want to understand following line of code in shell. It is used to get the current working directory. …

bash shell terminal sh ksh
Piping command output to tee but also save exit code of command

I have a shell script in which I wrap a command (mvn clean install), to redirect the output to a …

bash shell pipe sh tee
csh/sh for loop - how to?

i'm trying to write a for loop that executes 2 scripts on FreeBSD. I don't care if it's written in sh …

bash shell sh csh
Recursively change file extensions in Bash

I want to recursively iterate through a directory and change the extension of all files of a certain extension, say .…

regex linux bash shell sh
get the first 5 characters from each line in shell script

Here is my sample.txt file it contains following 31113 70:54:D2 - a-31003 31114 70:54:D2 - b-31304 31111 4C:72:B9 - c-31303 31112 4C:72:…

linux bash shell sh cut
envsubst: command not found on Mac OS X 10.8

When I try to run a script that contains the envsubst command, I get this error. Looking online, this seems …

bash shell terminal sh command-line-interface
How to display all the lines from the nth line of a file in unix

I want to display all the lines starting from the nth line. Say, print the third line of a file …

linux bash unix sh
How to get shell to self-detect using zsh or bash

I've a question on how to tell which shell the user is using. Suppose a script that if the user …

bash zsh sh
getting error /usr/bin/env: sh: No such file or directory when running command play

I am a beginner on Play framework . I just extract Play framework files and extracted them and gave the path …

shell sh