I have a few hundred text files, all in the same directory , each of which contain a single line of text that looks like so:
string OR string OR string ... OR string OR
I need to add "EID(" to the beginning of each file, and replace the last "OR " with a ")"
I am on a Mac and am fine with Terminal- it is how I got this far. At this point though, I am totally failing at getting the right awk or sed to make this happen. Hope me? [more inside]
posted by rockindata
on Aug 15, 2013 -
Wireless no longer working after upgrade to Ubuntu's Precise Pangolin. I've got just enough knowledge to be confused. Please explain what to do like I'm 5 years old. [more inside]
posted by fiercecupcake
on Aug 26, 2012 -
What is the leading nonprofit organization(s) devoted to promoting legalization of assisted suicide in US states? [more inside]
posted by amro
on Jun 21, 2012 -
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 -
New Year's Resolution: Clean up my hard drive(s) by removing duplicate files, implementing a new folder hierarchy, and any other odds and ends I need you to tell me to do. Mac Pro 2009 running the latest pre-Lion OS. [more inside]
posted by Admiral Haddock
on Jan 4, 2012 -
Help me find a truly beautiful fixed-width typeface that scream TERMINAL and that doesn't cost me a comical sum of money! [more inside]
posted by ooklala
on Nov 12, 2011 -
I don't want my sister, hospitalised in the U.K. to die in pain. She will die soon of anal cancer and surgical complications including an extremely painful fistula. I would like to know if she has legal rights to be kept pain free, even if that leads to death. I know doctors can make that choice. I would like to know if she can also make the choice. I do not live in England, and cannot stay with her until she dies, others of the family will be with her. [more inside]
posted by nickji
on Oct 17, 2011 -
Help me write a shell script for use in Automator that will actually do what I need it to. [more inside]
posted by divisjm
on Sep 25, 2011 -
I'm trying to resurrect an old Casio CPS-85 88 key keyboard. When it was given to me, the power jack was cracked, so I desoldered it and soldered on a new one. No luck; I can't get power (even with a different power supply). So I'm stuck running off of a lot of D batteries. As using D cells is both wasteful and expensive.is there any way for me to rig an external power supply to the battery terminals in a safe manner?
posted by Cat Pie Hurts
on Jul 22, 2011 -
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 -
Is this sculpture still in the Hong Kong international airport arrivals area? Would it be a good place to meet? [more inside]
posted by upc_head
on May 16, 2010 -
Is there a way to record mp3 audio streams (and ideally schedule such recordings) using Mac OSX Terminal? [more inside]
posted by subpixel
on May 11, 2010 -
How can I use ruby/shell scripts to edit a .mobi file for my Kindle? [more inside]
posted by jacob
on Mar 3, 2010 -
OS X: I want to batch print all the files in a source-code library. They are actionscript files, which means they are text files that all end in a .as extension. The files are in a complex directory structure (one root folder but files in multiple subfolders), and there are non .as files that I don't want printed. When the files print, I need some kind of separator ( spaces, asterisks, new page...) between each file. [more inside]
posted by grumblebee
on Nov 18, 2009 -
I will be flying to Poland on Friday from San Francisco (SFO) on United with a transfer to LOT at JFK. Do I check in at the domestic or international terminal? [more inside]
posted by The Light Fantastic
on Oct 21, 2009 -
So I was fiddling with commands in the python interpreter via the Terminal. I ran this basically, and was messing with the help system.
fileHandle = open ( 'test.txt', 'w' ) ;
fileHandle.write (' asdasd^3 ');
And all of a sudden this application opened. Python shell is it's name, it has no icon. WTF is going on?
posted by emptyinside
on Sep 18, 2009 -
I would like to help my friends, if I can; two of them are individually dealing with incredibly stressful and sad health-related situations related to their parents. [more inside]
posted by taz
on Aug 8, 2009 -
I've tried illegally downloading an application, and I'm pretty sure it is intent on messing up my computer and/or stealing my infos. Here's the catch- I'm runny the latest version of Leopard OS_X. [more inside]
posted by anonymous
on Jul 1, 2009 -
There are a couple fixed-width Unicode Arabic fonts out there. The ones I've seen are pretty hard on the eyes, though, especially at small sizes. Any suggestions for a really readable
one? [more inside]
posted by nebulawindphone
on Mar 21, 2009 -
As a purely hypothetical question, if a five-pound cat were to fall from an arbitrarily tall point, how long would it take him to reach terminal velocity? How fast would he be traveling at that point?
Part II: If, say, someone was standing at the initial point, how long would it take the cat to drop completely out of sight? What is the longest distance an unaided human eye can perceive an armload-sized object, in other words? Assume the area is lit at about a 60-Watt bulb in a uniform manner. [more inside]
posted by Scattercat
on Jan 27, 2009 -
I'm using Terminal (Ubuntu 8.04x64) right now to overwrite a 500g external hd with random information. There's been no action aside from a blinking cursor (by itself on a line, not in front of any prompt) since I entered the command yesterday afternoon:
sudo dd if=/dev/random of=/dev/sdc bs=8m
I understand it's going to take a while to finish. In the meantime, is there any way to monitor the progress of the operation?
posted by carsonb
on Nov 8, 2008 -
I'm looking for an alternative to windows' CMD window/terminal. It isn't the shell itself that has me annoyed (although it stinks and monad is an improvement), but the terminal window. I'd love to have something like xterm or rxvt running- just the ability to resize the width of the window would be huge. [more inside]
posted by jenkinsEar
on Jul 10, 2008 -
How do I control a media center pc from a laptop? The catch: I want to make my terminal session run as if I was logged in at the console. This is to control a media center from afar. [more inside]
posted by geoff.
on May 31, 2008 -
Recommend me a low cost terminal/pc/laptop/whatever with an ethernet adapter and a way to access the web. [more inside]
posted by edmz
on May 28, 2008 -
My career involves me using OSX Terminal ssh'd into other servers. Often, I have multiple ssh connections open, sometimes two or three to the same server. I can't bring myself to use tabs. Is there anything that can automatically be done to automatically color/title my terminal windows once I ssh into them? [more inside]
posted by neilkod
on May 15, 2008 -
I was recently trying to add a "Recents" stack to my dock in Mac OS 10.5.2 using Terminal. I entered a command, pressed enter, and then restarted the dock. From then on, I could not use the dock anymore, nor Dashboard, Spaces, Expose, or the application switcher. I also noticed that my motion sensors do not work anymore. Everything still works on other accounts on my computer, just not on my administrator account. Any ideas about how to fix this?
posted by Return Zero
on Apr 9, 2008 -
How can I get new tabs in Mac OS X Terminal.app to open with the same current working directory as the tab from which I opened the new one? [more inside]
posted by mebibyte
on Apr 4, 2008 -
I have a friend with a possibly terminal illness. I'm trying to figure out a way to set up a college fund, to which any of her friends/family could contribute, for her two young children. So far I've looked into ESAs (might not work due to the $2k annual limit) and 529s, but I've had trouble finding information specific to this type of situation -- which I have to imagine is not all that uncommon. What options should I be investigating? Should I talk to a financial advisor?
posted by mingshan
on Mar 13, 2008 -
I am looking to replace some thin-client terminals on our W2K Small Business server running terminal services over RDP. We haven't had much luck with our existing terminal hardware (Compucon Phoenix
- the power supplies burn out far too often) so I am looking for something simple, hardy and (of course) not too expensive. [more inside]
posted by Tawita
on Mar 2, 2008 -
A co-worker has been diagnosed with pancreatic cancer. Treatments have stopped and Hospice is now involved.
He is 61 years old and has been working at the company for 40 years.
We are an engineering firm and most of the employees are kind of... well... not the type to try (self-start) and do something for our co-worker of his family.
I was wondering if there was anything I could do and/or have the office do to help, comfort, etc
Obviously sending 'get well' cards is out of the question.
... I just don't know what it is appropriate.
posted by KogeLiz
on Jan 21, 2008 -