How can I use lame to encode wav files within a shell script?

Bash
I'm trying to set artist information via variables with spaces in them. Lame craps out. Maybe I'm being retarded with bash? #!/bin/bash year=2008; ar...
5 years ago

waiting to enter any key does not work in while loop

Bash
i am using read -p "Press any key to continue" in my script. This works fine except when it is in a while loop like while read TEST_NAME ; do r...
5 years ago

run django local server than open chrome page in shell alias

Bash
I have an alias that's broken: alias runautohelper='runproject autohelper 8009 & ; google-chrome 127.0.0.1:8009/bitbucket/create-repo' Running ...
5 years ago

Create directory in local machine(Linux) by using sftp

Bash
I have tried the command below to create a directory after I downloaded a file from sftp. But unfortunately the command couldn't run. What's the error...
5 years ago

remove user from group Mac Os X (El Capitan)

Bash
I'm trying to remove myself from the groups _developer and procmod where I accidentally added it with the following commands: sudo dseditgroup -o ed...
5 years ago

Check the output of "make" and exit bash script if it fails

Bash
I'm a nube to more than just bash, however; I've written a bash script that will execute my cmake, make, and c++ executable. #! /bin/bash cmake . mak...
5 years ago

Bash Parse JSON Objects jsawk

Bash
I´m trying to parse some JSON, which is the output of the Philips Hue API. I found the tool jsawk, but somehow I´m not able to access the data insid...
5 years ago

Windows shortcut to run git bash script

Bash
Assuming I have a test.sh script that runs a server and Git Bash installed, how do I create a Windows shortcut that I can double click to run tesh.sh ...
5 years ago

Postgres dump specific table with a capital letter

Bash
I am trying to perform a postgres dump of a specific table using -t. However, the table has a capital letter in it and I get a "No matching tables wer...
5 years ago

Pass script arguments as a pattern

Bash
I have a bash script that requires a glob expression as a parameter. However I am having trouble using inputs as globs i.e say my input is Shell_scri...
5 years ago

Use sed to replace all backslashes with forward slashes

Bash
I want to be able to use sed to take an input such as: C:\Windows\Folder\File.txt To C:/Windows/Folder/File.txt ...
5 years ago

"cat /dev/random" versus "tail -f /dev/random"

Bash
Statement cat /dev/random keeps producing output, as expected, but tail -f /dev/random hangs (at least on OSX and SUSE). Why the latter statem...
5 years ago

How do I get bash completion to work with aliases?

Bash
Case in point: I'm a on mac with bash v3.2.17, I'm using git installed via macports with the bash_completion variant. When I type git checkout m&lt...
5 years ago

List file using ls command in Linux with full path

Bash
Many will found that this is repeating questions but i have gone through all the questions before asked about this topic but none worked for me. I wa...
5 years ago

Crontab won't run sed shell

Bash
I have a cron job to run a sed shell called sedcmd.sh to pre-process some json data. When i am in the proper directory I manually run it with . ./se...
5 years ago

Numeric expression in if condition of awk

Bash
Pretty new to AWK programming. I have a file1 with entries as: 15>000000513609200>000000513609200>B>I>0011>>238/PLMN/000100>F...
5 years ago

How to remove line `v u` from a file when line `u v` already exists using unix command

Bash
I have the following test data : a b a c b a b c b d c a c b c d d b d c and I want to remove lines v u when line u v already exists using unix c...
5 years ago

Handle special characters in bash for...in loop

Bash
Suppose I've got a list of files file1 "file 1" file2 a for...in loop breaks it up between whitespace, not newlines: for x in $( ls ); do echo ...
5 years ago

Windows curl Batch file

Bash
I want to make a mailgun curl call using windows batch file. Since windows shell doesn't support multiple lines, how can I execute the below curl func...
5 years ago

BSD `sed`: running multi-command `sed` script from within a shell: replace Nth occurrence

Bash
I have plain BSD SED (non GNU). This is what I am running. It's failing on the last sed command. Errors are: string is longer then 8 chars; and Label ...
5 years ago