I want to use sed to change a slash into a backslash and a slash, i.e. / -> \/. But it does not work. Here a small example:  #!/bin/bash TEST=/etc/hallo echo $TEST echo $TEST | sed "s/hallo/bello/g" echo $TEST | sed "s/\//\\\//g"   The output of the first three lines is as assumed. But the last one does not work. Why? How to correct the last part?
Take the following script:  #!/bin/sh sed 's/(127\.0\.1\.1)\s/\1/' [some file]   If I try to run this in sh (dash here), it'll fail because of the parentheses, which need to be escaped. But I don't need to escape the backslashes themselves (between the octets, or in the \s or \1). What's the rule here? What about when I need to use {...} or [...]? Is there a list of what I do and don't need to escape?
I have installed Ubuntu on my D: partition using Wubi. Is there any way in which I can remove my Windows from C: drive and move my existing Ubuntu installation to C: drive and make it a regular install. Can a massless rope accelerate? Find the number of solutions of $x^2=x\mod m$ for any integer $m$.  I was thinking about bringing the $x$ over to the other side and somehow apply chinese remainder thm. Where can I get the original Unix? I'm looking for a movie I've seen as a kid, the details are foggy and sparse but I'll try my best following :  What is it?: An animated movie. Tell us what it isn't: It is not . Tell us what made it memorable: A planet where some brain-sucking insect-like aliens live, also an old bald man lives on the same planet. When did you see this film?: Late 80's, early 90's. How old was it?: If I've seen the movie on TV in Spain, is a pretty safe bet that it will be at least 5 years old. Was it part of a series?: I don't think so. Plot: No clue, sorry. What language was it in?: The movie was dubbed to Spanish (Spain).  No detail is too insignificant  What details can I recall?:  Sci-Fi story with one character being an old bald man living on a planet where some insect-ish aliens can open your skull and suck your brain. Habitat of those insect-ish foes was depicted in light blue colors, I kinda remember giant mushrooms as well. A young boy befriends the old baldie, the boy came to the planet with some adults.   Other details I'm not completely sure (maybe my mind is filling the gaps):  I think that the movie was drawn using , not 100% sure though. I cannot remember which year I've seen the movie, but it should be late 80's or early 90's. I'm pretty sure that I've seen the movie in Spanish TV (not rented videotape). Somehow the young boy was the young version of the old baldie (time travel?). The old man lives in a wood house near the brain-sucking insect habitat, as many old man does he spend his time on the porch.    Try to offer unique details As anyone would expect from this kind of movie, there's a scene where the alien insects attack a group of people trying to suck their brains. A young boy was with those adults and survived with injuries in his head. The old bald man have some surgery in his head due to an attack he suffered years before. Do multiple instances of the Extra Attack feature stack? Whenever I open my files, my hidden files show up. I can hide them but when I open up my files again, they're showing again. How do I make the hidden files invisible permanently? How to get bright concert photos? I've been starting to shoot some live music recently and have been doing an okay job and see an improvement with each time I shoot. However recently I was shooting and all of my photos have come out very dark, too dark to use really. I was shooting in manual with 1/100 shutter speed aperture as wide as possible and a 6400 iso. Any advice is welcome. Thanks in advance. How to use java.util.Scanner to correctly read user input from System.in and act on it? Book with travellers, alien artefacts and age reversal Looking for the title of a book I read about 5 years ago though I believe the book was a lot older.  Essentially the main male character was on a task and was travelling with a group of people. The mode of transport if I recall was a boat and they were on a remote planet travelling via a river. One of the group was a father to a young female infant. There's a reference to alien artefact/temple that essentially reverse aged a female scientist (the baby) a day at a time and the father is trying to undo it. Also a line I remember is the father used to say see you later alligator and the daughter will reply that awhile crocodile until a day where she forgot.  Another fellow traveller was a pilgrim and his male disciple. There are several other male and female travellers all had different reasons to travel to that location.  The aliens was located within the temple (time locked?) Were invisible to humans. Killed any that entered. Got the impression that they were quadpeds with organic blades/razors that cut people.  I believe the book may be part of a series. The male author though I don't recall the name, has written other works that have received awards. The book or series may have received one too. Which is probably why I decided to read it in the first place.  Question never asked anywhere else. I am from Australia, book was a paper copy bought locally. "Cancellation", "Canceled", "Canceling" — US usage I'm trying to figure out if there is a specific rule behind the word "cancel" that would cause "cancellation" to have two L's, but "canceled" and "canceling" to have only one (in the US).    I understand the rules are very loose when it comes to double L's in English, and I have read several posts on here talking about "canceled" and "canceling" (vs "cancelled" and "cancelling"), but my specific question is more about the spelling of "cancellation".    - they do NOT mention cancelation with one "L"  - they do seem to have cancelation listed with one "L" Microsoft Word marks "cancelation" as an invalid word Same with the spell checker in Firefox   So my question is: is there a reason or rule why in US English, "cancellation" seems to have two L's (to most dictionaries), while "canceled" and "canceling" does not? How to determine which form has been submited and to validate them in a servlet The following MWE produces a PDF whose TOC has two entries: “Foo” and “Bar” with correct page numbers. So far, so good. However, upon clicking on the link to “Bar”, I am taken to the page for “Foo” instead.  \documentclass{report} \usepackage{hyperref} \newcommand*\backmatter{\setcounter{chapter}{0}}  \begin{document} \tableofcontents \chapter{Foo} \backmatter \chapter{Bar} \end{document}   (Produced with pdflatex, run twice.)  This MWE is whittled down from a (much!) more complex document but the above does seem to reproduce the error reliably.  Re-setting the chapter count seems to confuse hyperref, even though the page references are still accurate. Notice that in my real document, \backmatter does other things, including setting the numbering style to alphabetical so there’s no chance of confusion even though both chapters are ostensibly labelled as “Chapter 1”.  How do I fix this? Is this a bug? Are there workarounds? Errors "*ERROR* UVD not responding, trying to reset the VCPU!!!" What's the difference between absolute path &amp; relative path when using any web server or Tomcat? C++ code file extension? What is the difference between .cc and .cpp Suppose I have a field that contain the following data:   ========================== |  Email Address         | ========================== | Jack@wonderland.com    | | Peter@nobodyland.com   | | Jill@wonderland.com    | ==========================   Is there a calculated formula in SharePoint that will give me the following result? (It will help me to retrieve the sub-string from the Email Address column and give me the answer as shown in the UserName and Domain column):   =========================================================== |  Email Address         |  UserName  |      Domain       | =========================================================== | Jack@wonderland.com    |   Jack     |   wonderland.com  | | Peter@nobodyland.com   |   Peter    |   nobodyland.com  | | Jill@wonderland.com    |   Jill     |   wonderland.com  | =========================================================== Sentences with "no one" Let $(a_n)_{n}\in\ell^2:=\ell^2(\mathbb{R})$ be a fixed sequence. Consider the subspace $$C=\{(x_n)_{n}\in\ell^2 : |x_n|\le a_n\text{ for all }n\in\mathbb{N}\}.$$  According to the book [Dunford and Schwartz, Linear operators part I, page 453] $C$ is compact in the $\ell^2$-norm, but there is no proof. How can I show that $C$ is indeed compact in $\ell^2$ ? Wrapped hexagon topology When a square is wrapped at the edges, obtains a torus. Is it possible to do the same for a hexagon?  What is the shape/topology of wrapping a hexagon?     Note: I was just reading this  and came up with this question. I'm a physicist.