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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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 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
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
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
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
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 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
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
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
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