Writing up short showcase for sed, but /-\ - A doesn't work [SOLVED]

As the title says, I'm working on a zenity script to store a fair chunk of sample sed commands to remind myself what I can do with it. Everything seems to work fine except for the l33t to english garbler.
When that is run, it gives me this:
sed: -e expression #1, char 9: unterminated `s' command
sed: -e expression #1, char 7: unknown option to `s'
sed: -e expression #1, char 10: unterminated `s' command
sed: -e expression #1, char 5: unterminated `s' command
sed: -e expression #1, char 8: unterminated `s' command
http://pastebin.org/193208 <-- has whole script and highlighted line causing trouble <-- not updated, but I have it solved on the local copy. I'll make sure to update this when I get done cleaning up the code
[^edit: escaped characters pointed out]
But if I execute this (same trouble command, but not inside the script) [fixed typo now]:
sed s/'\/-\\'/A/g <yourfile that has /-\ for a in it>
or
echo "/-\\" | sed s/'\/-\\'/A/g
^It turns the /-\ back into an A...so...I honestly don't know what the shell is doing to interpret the same command differently.
Last edited by ShadowKyogre (2010-05-02 18:34:30)

Daenyth wrote:Your quoting is wrong.
Procyon wrote:
The quoting is indeed a mess! But the error is from lack of escaping, and no amount of quoting will fix that.
EDIT
Although in the script you have: sed s/'\/-\\'/A/g, which is different from what you posted above.
There is an error in:
sed s/'[_-'/G/g
sed s/'[]'/O/g
sed s/'\/'/ V/g
sed s/'\|/'/W/g
So unescaped []/. And probably some more from special regex characters.
*looks back at the script and my post* Whoooooooooah...that is a huge mistake o_o. *hurries to escape the regex characters in the l33t*
I'll go fix the typo in my post and I went around and escaped the ones you showed. Now only this pops up.
sed: -e expression #1, char 7: unterminated `s' command

Similar Messages

  • HT201359 I made an apple id for free, but it doesn't work. I don't know what can I do.

    I saw in utube, how to make an apple id for free, but can't use it, it says my id can't be verified.

    By 'did not work' you mean ... ? Do you get any error messages ?

  • I'VE PAID FOR INDESIGN BUT IT DOESN'T WORK NOW

    Two weeks ago i've paid for my indesing. But now it is telling me that my trial version has finished.

    Refer to this:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Mylenium

  • I can't send  message from iMessage why? I have credits for send but it doesn't work! Need help!

    Hello plz I need help !! I can't send my message with iMessage! I don't understand why?! Yesterday I send it! And now it's not working! I have credits ! So why?! PLZZZZZ need help have to talk to my friend!!

    Let me clarify.
    iMessage is completely different from regular SMS. iMessage is where you can text from Apple device to Apple device (ex. iPad to iPhone, or iPod to iPad)
    SMS is texting service for all phones, excluding the ipod, ipad. (ex. iPhone to Droid, or iPhone to Nokia)
    So when you iMessage someone on you iPhone, it is free and can be sent to anyone with an Apple device.
    When texting SMS, you can send to anyone with any kind of cell phone.

  • How do I get an iPad micro sim card for Austria and Italy?  We purchased one for Germany, but it doesn't cover in Austria or Italy

    How do I get an iPad micro sim card for Austria and Italy?  We purchased one for Germany, but it doesn't cover in Austria or Italy

    Compare the roaming charges from the German carrier with services like those:
    http://www.abroadband.com
    http://www.maxroam.com/Shop/Product/Detail.aspx?ProductId=787&cur=EUR
    Otherwise buy a pre-paid micro-SIM card for the iPad in each country you visit.

  • How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • IMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    iMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    Your Mac is definitely one of the supported models? http://www.apple.com/uk/osx/specs/
    If so, what happens when you try to download? Is it a case of nothing happens? If so, take a look at the suggestions under 'Stalled Download' in this link:
    http://www.wired.com/gadgetlab/2013/10/mavericks-issues-and-fixes/#slideid-23477 1
    Also, some usrs have found that logging out of the Mac App Store and then back in again and starting over has kick-started the download. It seems that the 5+gb download can take a long time to give any feedback as to what's happening.

  • My Ipad2 won't turn off.  I've tried the reset method,  holding both buttons down for at least 10 seconds, but this doesn't work. I'm on version 5.1.1 and all other functions work except that I cannot get onto the internet via wi-fi either.  Help ??

    My Ipad2 won't turn off.  I have tried the reset method by holding both buttons down for at least 10 seconds, but this doesn't work.  I can't get onto the internet via wi-fi either (don't have a 3G card fitted).  All other functions seem to be working OK including charging. Not had this problem before, but I recently upgraded software to 5.1.1 so is there a bug in there somewhere?

    Look at last link.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130?tstart=60
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I accidentally put a passcode lock on my iPhone and I forgot what I set for it, is there a way to take it off without accessing the phone? I have restored my phone but it doesn't work, is there anybody that could help me please?

    I accidentally put a passcode lock on my iPhone and I forgot what I set for it, is there a way to take it off without accessing the phone? I have restored my phone but it doesn't work, is there anybody that could help me please?

    You can't "accidentally" put a passcode on any iPhone...its a multi-step process. Further, restoring an iPhone will remove the passcode, as the passcode is not included in an iPhone backup.
    Are you sure you're talking about the phone passcode & not something else...like the "Restrictions" passcode?

  • What should I do if the iphoto keeps on saying that "Plz wait for import to complete" when i click the close button but it is not importing photos? How can I close the iPhoto? I try to switch my mac off but it doesn't work. Thanks.

    What should I do if the iphoto keeps on saying that "Plz wait for import to complete" when i click the close button but it is not importing photos? How can I close the iPhoto? I try to switch my mac off but it doesn't work. Thanks.

    You should be able to select Force Quit from the menu beneath the Apple icon in Finder
    and choose to Quit iPhoto from there, without messing up the Mac OS X in the process.
    OS X - Support
    Not sure if rebuilding the iPhoto library would help this issue. However if you had to
    turn off the computer without the correct method (unplug, etc; instead of menu choice)
    the system may have accrued damages and should be checked, maybe repaired by
    use of the Disk Utility in the system. Or restart the computer in Safe Boot mode, then
    run 'repair disk permissions' while it is running in that reduced mode; then restart after.
    •Understanding Safe Mode - tuts+ computer skills tutorial:
    http://computers.tutsplus.com/tutorials/understanding-safe-mode--mac-59897
    •OS X: What is Safe Boot, Safe Mode?
    Suggestions on how to use Safe Mode in article, to resolve issues, may be helpful.
    There likely are other means to rectify troublesome applications, including reinstall.
    Be sure to backup your music, image, video, and other work on an external drive
    or suitable device as a precaution against loss should there be a hard drive failure.
    iPhoto - Mac Apps - Apple Support
    There should be some tips and help information using iPhoto via this tiny Support link.
    Good luck & happy computing!

  • I recently purchased a shutter release remote for my IPAD camera but the cord is only three feet long.  I purchased a 3 banded AV extension but it doesn't work.  Can anyone tell me what the correct extension cable is and where I can find one?  Thanks.

    I recently purchased a shutter release remote for my IPAD camera but the cord is only three feet long and I need an extension cord.  I purchased a 3 banded AV extension but it doesn't work.  I have been told that I need an extension cord that has AV and Mic to enable the remote shutter release to work with the extension cord.  Can anyone tell me what the correct extension cable is and where I can find one?  Thanks.

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • My iCloud keeps asking me for a password even when I enter it, it still keeps asking. I have tried turning it off but it doesn't work.

    My iCloud keeps asking me for a password even when I enter it, it still keeps asking. I have tried turning it off but it doesn't work. It is really annoying!!
    Please help me!! (The same thing happened on this device and when I reset it, it worked....why isn't my iPad 3rd gen. Working...?)

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • My iphone doesn't conect with my computer. He says you can't use it you softwear is not up to date please uninstall itunes and install itunes for windows 64bit. I do that but it doesn't work. So what can i do?

    my iphone doesn't conect with my computer. He says you can't use it you softwear is not up to date please uninstall itunes and install itunes for windows 64bit. I do that but it doesn't work. So what can i do?

    It won't pass 10.3.
    What does this mean?
    I figured it out. Thanks!!!
    What did you figure out? How about posting how you resolved it?

  • Help - I turn my Apple air on and get a message asking for my keychain password - I enter my password but it doesn't work.  I've never seen this before.  What do I do?

    Help - I turn my Apple air on and get a message asking for my keychain password - I enter my password but it doesn't work.  I've never seen this before.  What do I do?

    This may help.
    http://support.apple.com/kb/TS5362?viewlocale=en_US

  • Hi, I am trying to download the trial version of photoshop but it is stuck on 42% (has been for several hours). I have tried refreshing but it doesn't work. I am using Yosemite OS X.

    Hi, I am trying to download the trial version of photoshop but it is stuck on 42% (has been for several hours). I have tried refreshing but it doesn't work. I am using Yosemite OSX 10.10.3. Any suggestions?

    Re: creative cloud hangs at 42%

Maybe you are looking for

  • The Duns Number is Invalid error when importing Supplier Sites

    Hi All, In my data file I have a field DUNS no, with values 14 15 16 When I insert into interface table and run the open interface, i rejection mesage as The Duns Number is Invalid. When we create a supplier in front end in R12 even if we enter a val

  • When to Use XSLT,Java or Graphical Mapping

    Hi Friends,    Could any one please give me a clear picture on when to use Java/XSLT/Graphical Mappings. Which mapping should be used in which case. Regards, Shyam

  • Unable to export to mobile.me album.

    Good afternoon. First, sorry to my bad english. I try to export an album on my gallery mobile.me but it is not possible Aperture say "the request to the server listening" and Aperture crashes and I must force quit. and it is OK with iPhoto. How to ge

  • Address bar dissapeared

    Hi, suddenly today I hit something and my address bar is gone, I've looked everywhere through the system preferences, and the safari toolbar and can't find it ANYWHERE! Can anyone help?

  • How to view all photos backed up in icloud

    Hi, I am sorry not a real Apple Savvy, sorry for a silly question 1. Where can I view all the photos, which I have backed up in icloud from my iphone. Note: I have synced my ipad, mac and iphone 2. I am using iphone 5 now , but had iphone 4s earlier.