12 posts tagged with bash and resolved.
Displaying 1 through 12 of 12. Subscribe:

scp return codes different?

I'm working on testing a modification to a bash script for work. I'm trying to scp a file to the same source directory. For testing purposes, I've altered the permissions on the target directory so that the scp'ing user doesn't have permissions to write to it. The first try I get a return code of 1. The second try I get a return code of 0, even though the permissions haven't changed and the file actually fails to transfer. [more inside]
posted by tckma on Jun 11, 2015 - 8 answers

>man grep

I’m trying to write a short shell script for Mac OS X that will disable CoreStorage. To do this I need to capture the first Logical Volume UUID (lvUUID) from the output of "diskutil cs list" and use it in an ensuing command. I am having trouble though and it seems to be a simple issue with grep. Obviously still pretty new to the command line. [more inside]
posted by churl on Feb 18, 2015 - 14 answers

You don't know how to use the three bash shells?

There is this bash script that should take the contents of a log file, grep for a keyword, and then send the entire line to another script. It isn't doing that, and I'm not sure why. Can you spot the error? [more inside]
posted by TimeDoctor on Jul 9, 2013 - 10 answers

Multiple gpg keyid search (script?)

I have a file listing all my long keyID's for GPG and want to lookup the emails associated with these. [more inside]
posted by jago25_98 on Jan 13, 2013 - 3 answers

Shell script filename pattern matching help

Another shell script help needed post [more inside]
posted by dukes909 on Sep 26, 2011 - 8 answers

Is this possible with sed only?

Shell scripting gurus! I've got a bash script which works...but I suspect there's a better way to do what I'm trying to do. Am I wrong? [more inside]
posted by Mister_Sleight_of_Hand on Sep 14, 2011 - 14 answers

Renaming a whole bunch of files at once, in bash

Please help me rename ~1300 image files in bash, en masse. [more inside]
posted by Asparagirl on Dec 12, 2010 - 8 answers

Bash scripting problem

Please hope me with a bash scripting problem. Involves: command substitution and word splitting. [more inside]
posted by sbutler on Aug 11, 2009 - 11 answers

Joining MP3 Files Together Based on Date in Filename?

I have a podcast that downloads as multiple segments over multiple days. Its format arrives as YYYYMMDD_showcode_segment.mp3; so, for example, one download might result in files as 20090323_goofa_01.mp3 through 20090323_goofa_21.mp3, and also within the same download 20090324_goofa_01.mp3 through 20090324_goofa_21.mp3. What I'm looking for is a Unix script (shell, perl, what have you) that would look at a directory and look at what dates are represented there, and let me join all of the segments together by day. I can use mpgtx -j to do the actual joining; I'm looking for the code that would let the script determine what dates are in the directory and then get each day's segments united into a single MP3 for that day's show.
posted by WCityMike on Mar 25, 2009 - 5 answers

How do I tell my Mac that I'm me?

Question about changing my terminal prompt (and other matters) in an OS X Bash shell. [more inside]
posted by grumblebee on Oct 15, 2008 - 3 answers

Quicksilver-style completion in bash shell?

How can I get Quicksilver-style completion in the bash shell? [more inside]
posted by dmd on Jul 11, 2008 - 11 answers

Bash, I command thee to always...

How do I get bash to automagically execute a line or two of code at login? [more inside]
posted by nakedcodemonkey on Oct 22, 2007 - 25 answers

Page: 1