39 posts tagged with bash. (View popular tags)
Displaying 1 through 39 of 39. Subscribe:

Related tags:
+ (15)
+ (13)
+ (11)
+ (10)
+ (8)
+ (7)
+ (5)
+ (5)


Users that often use this tag:
jackofsaxons (2)
Jimbob (2)

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

How to solve a complex statistics problem with a script?

In this game, you roll a number of six-sided dice to get a total. The total is either the highest single die result, or the sum of any multiples rolled, whichever is higher. For example: If I roll three dice and get a 3, 4, and 6, my total is 6. But if I roll a 4, 4, and 6, my total is 8, the sum of the two 4s. What I want to find out is the mean, median, mode, and standard deviation of the possible totals given N dice. How might I create a simple script to compute this? [more inside]
posted by j0hnpaul on Nov 30, 2012 - 24 answers

It's a birthday #!/bin/bash

In search of nerdy birthday bash one (or two) liner. [more inside]
posted by mrzarquon on Mar 19, 2012 - 9 answers

cp master date

I need help copying a master file to a file with a new name. Complication new name should be the date of the first of the month [more inside]
posted by kathrynm on Mar 15, 2012 - 4 answers

Why can't I use the terminal any more with Lion?

At work, there is a MacPro that I routinely use remotely via SSH, but have only sporadic physical access to. Someone else upgraded it to Lion (from Snow Leopard), and since then, I am unable to use the terminal locally or to log into it via SSH - in either case, the process immediately terminates / disconnects. Other user accounts on the same machine are not affected. What could be going on?
posted by kickingtheground on Feb 6, 2012 - 6 answers

Help make my time travel party unbelievable!

I'm hosting a NYE party. The theme is time travel. I have a few ideas for food and drinks (and friends are bringing things, too), but can you give me some awesome ideas for making this party really fun and memorable? Any and all ideas are welcome! [more inside]
posted by two lights above the sea on Dec 23, 2011 - 35 answers

Shell script filename pattern matching help

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

xterm / bash weirdness?

Weird Unix terminal issue where yer trying to up arrow through bash history and it looks messed up, right? [more inside]
posted by xmutex on Sep 21, 2011 - 11 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

Need terminal syntax for scheduling a unix program

Need help scheduling a unix task under Mac OS. Probably an easy question for those who understand such things. [more inside]
posted by Alaska Jack on Mar 23, 2011 - 16 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

Shell script handling CSV columns

I'm using a shell script to handle some excel docs by converting to csv and reformatting it a little bit. I'm having some difficulty going on with the next part of the script. Some help would be great. :) [more inside]
posted by fightoplankton on Jun 10, 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

BASH: Handling odd characters in a variable?

BASH Scripting. I'm trying to do a simple "mv" operation with a not-so-simple filename that contains special characters (as in brackets and hyphens). The filename itself is stored within a variable. The operation fails, and I can understand why, but I don't know how to get around it. [more inside]
posted by Ziggy Zaga on Nov 18, 2008 - 11 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

What resources do you guys recommend on learning to BASH script, and also learn from other peoples code?

What resources do you guys recommend on learning to BASH script, and also learn from other peoples code? [more inside]
posted by Javed_Ahamed on Oct 11, 2008 - 11 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

How to delete long path names with bash shell script?

BASHFilter! I've got a simple bash script that I've written to clean out a frequently used NAS. I run it every 30 days, it sets proper permissions, removes extraneous files and directories, but it frequently hangs on paths longer than 255 characters. [more inside]
posted by jackofsaxons on Jun 2, 2008 - 13 answers

Help installing Debian Etch?

Okay I'm trying to set up rtorrent and wtorrent using Debian Etch and this guide. Installs and updates the kernel fine, then I get "bash command not found" when trying to run through the rest of the tutorial. [more inside]
posted by geoff. on May 23, 2008 - 5 answers

OS X file permissions issue

OS X Sites folder permissions and a question about flags on the files in bash. What gives? [more inside]
posted by caution live frogs on May 20, 2008 - 7 answers

Shell scripting or something better?

Faster techniques for grabbing lines of a file and doing text manipulation and arithmetic via shell (or other) scripting? [more inside]
posted by Blazecock Pileon on May 9, 2008 - 20 answers

Simple Filename Parsing Question

Should-be-simple Linux timestamped file parsing question. [more inside]
posted by yellowbkpk on Mar 9, 2008 - 7 answers

how split a string in bash?

using bash, i need to split a variable in two, on whitespace, but with just the first word in one variable, and the rest in the second variable. this is a one liner with perl. how in bash? [more inside]
posted by jimjam on Jan 12, 2008 - 19 answers

How can I insert text into an existing PDF using Ghostscript?

How can I insert text into an existing PDF using Ghostscript? [more inside]
posted by jackofsaxons on Dec 21, 2007 - 3 answers

Remotely starting local X application?

How do I restart an X Windows application running on a remote machine, and have it display on that computer's locally-attached display? (I do not want to forward/tunnel it to the machine I'm sitting at.) [more inside]
posted by Kadin2048 on Nov 16, 2007 - 16 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

Help improve my scripting skills

I wrote a shell script for an acquaintance that renames Macs (OS 10.4) based on their existing names. It works well, but I'm convinced my code could be more efficient. Where can I make improvements? [more inside]
posted by pmbuko on Aug 29, 2007 - 11 answers

Strip me some mp3 urls.

In Linux, what's the simplest way to take a podcast RSS file as input, and output a file containing just the URLs of all the MP3s enclosed in the RSS file? Difficulty: the method must only Bash + GNU tools, Python or Perl, with no non-standard add-on libraries or dependencies required.
posted by Jimbob on May 10, 2007 - 22 answers

Help me consolidate thousands of pictures

I have a bunch of directories of pictures across multiple disks. Many images are duplicated. Additionally, I had to use some disk recovery software to rescue other images and the filenames changed. At the moment, I can't guarantee that all of the filenames are unique. I'd like to weed out the duplicates and then ultimately consolidate everything into iPhoto. I'm talking close to 20,000 pictures. [more inside]
posted by neilkod on Jan 25, 2007 - 13 answers

iPod abuse

Stop me hitting my iPod! My 4th gen iPod requires frequent slapping to encourage it to unfreeze (try Googling 'slap+ipod' to see what I mean). What does this particular 'fix' actually do? How do I fix my iPod in a more permanent way? [more inside]
posted by Kiwi on Dec 28, 2006 - 8 answers

How to get a screen session to work the way I want to?

How do I get my Linux shell to behave the same when I am using screen, as when I am not using it? [more inside]
posted by davar on Nov 5, 2006 - 11 answers

Changing gnome wallpaper

Linux / Ubuntu / Gnome question - how do I tell Gnome "Hey, the jpg you're using as desktop wallpaper has been updated with a new image. Go reload it and display the new version?" in a Python or Bash script? [more inside]
posted by Jimbob on Sep 26, 2006 - 6 answers

bash bash bash

Calling all bash/nix gurus.. please help me! [more inside]
posted by provolot on Aug 8, 2006 - 9 answers

No more shell games!

*nix shell "best practices" anyone? [more inside]
posted by furtive on May 31, 2006 - 9 answers

Python - Shell Environment

Is there a way to set an environment variable in the unix shell from a python script? Can I set a variable in the shell that executes that same script? For that matter, is there a way for any script to do this? [more inside]
posted by kuatto on Apr 7, 2006 - 8 answers

Calling *NIX shell wizards.

Calling *NIX shell wizards. [more inside]
posted by ori on Dec 11, 2005 - 33 answers

Datascrubing

datascrubbing: I'm using rm -R */*.gif (for example) to get rid of unnecessary files in a directory. There is stuff that's nested about five directories deep that I can't get to using the above command. I'm using the Bash terminal in OS X. specifically, there is a redundant file called "popup" nested in there that I want to get rid of, among others.

Second related problem: is there a way to recursively delete (full) directories, say ones that end in .blob using wildcards? And would I use rmdir or rm -R to do this?

I'm working on a copy of the original, so its ok to experiment a little
posted by mecran01 on Jul 16, 2004 - 18 answers

Page: 1