I don’t quite understand the example given from the man find, can anyone give me some examples and explanations? Can I combine regular expression in it? The more detailed...
I have a server with Rackspace. I want to access the database from my local machine command line. I tried like: mysql -u username -h my.application.com -ppassword But it...
I have a shell script that has user execution permission on OS X, but when I double click on it, it opens in a text editor. How can I...
I’d like to add the Unicode skull and crossbones to my shell prompt (specifically the ‘SKULL AND CROSSBONES’ (U+2620)), but I can’t figure out the magic incantation to make...
Is there a “goto” statement in bash ? I know It is considered bad practice, but I need specifically “goto”. 13 Answers 13
I have a Bash shell script in which I would like to pause execution until the user presses a key. In DOS, this is easily accomplished with the pause...
I have a Bash shell script in which I would like to pause execution until the user presses a key. In DOS, this is easily accomplished with the pause...
What does echo $? mean in shell programming? 8 Answers 8
I use curl to get http headers to find http status code and also return response. I get the http headers with the command curl -I http://localhost To get...
What’s an easy way to read random line from a file in a shell script? 13 Answers 13