8 posts tagged with bash and unix. (View popular tags)
Displaying 1 through 8 of 8. Subscribe:
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
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
How can I get Quicksilver-style completion in the bash shell? [more inside]
posted by dmd
on Jul 11, 2008 -
11 answers
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
*nix shell "best practices" anyone? [more inside]
posted by furtive
on May 31, 2006 -
9 answers
Calling *NIX shell wizards. [more inside]
posted by ori
on Dec 11, 2005 -
33 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