File1:  Data will be inserted on Thursday   Messages has been sent at 6pm   Office hours is from 9am to 6pm   All the employees are present     Output what I want:  DMS Data will be inserted on Thursday   DMS Messages has been sent at 6pm   DMS Office hours is from 9am to 6pm   DMS All the employees are present     -or-  Output what I want:  Data will be inserted on Thursday DMS Messages has been sent at 6pm DMS Office hours is from 9am to 6pm DMS All the employees are present DMS   I want to add the word DMS in every lines of my file. It may be added at the first or at the end of the line.
I am looking for a way to add some string to the beginning of every line (same string for every line). Not something customizable but rather something that will be easy to remember and available on every POSIX-compliant platform (and every shell as well).
I had recently taken the hard drive out of my computer so that I could install a bigger one. But when I reconnected it to the computer, all the files on the E:\ partition and some of the files on the C:\ partition had strange names like TTv5yV5354$YVC5Wy on them. I did on one occasion move an electromagnet near the drive. Could that have caused this? Please help me, some of those files were valuable. Do harmonic numbers have a “closed-form” expression? Can I declare a duplicate page via javascript for google? Most sources of documentation state that one can declare a webpage a duplicate of another by applying this tag on the duplicate page:  &lt;link rel="canonical" href="(absolute URL to original page)"&gt;   I could generate the above tag via the script below:  &lt;script&gt; var l=document.createElement('Link'); l.rel='canonical';l.href='(absolute URL to original page)'; document.getElementsByTagName('head')[0].appendChild(l); &lt;/script&gt;   My question is, would google be able to process this javascript and believe I'm declaring the page as a duplicate page? or would I be forced to use the link tag in the header?  I ask because I'm trying to reduce the unnecessary bytes required to be processed before the actual user readable content begins. Can we opt for fast track service after the refusal? Last Saturday, I got a refusal from BHC due to lack of funds and my reasons to come back to India. I am planning to visit my family who are settled in the UK. I am married and planning to visit my family along with my husband. My father is sponsoring our whole trip. But we got a refusal as we didn't show much funds in our account. We thought that if my father is sponsoring, we should show his documents only. But now I have applied again with a fast track service. Will BHC will consider it under the fast track process? This time I have cleared all their doubts which they mentioned in the refusal letter. The stress tensor can be written as: $$\sigma_{ij}=-p \delta_{ij}+\sigma'_{ij}\label{1}\tag{1}$$ where $\sigma_{ij}'$ is called the extra stress tensor.   From what I understand pressure is pressure is force per unit area, so that the force acting on the surface $d\vec A$ is given by:  $$\vec F=-p d\vec A\label{2}\tag{2}$$ (This has the effect that the force on an infinitesimally thin surface due to a continuous pressure is zero). However, $\sigma_{ij}$ represent the force in the $i$ direction on a surface with normal in the $\hat e_j$ direction. So the force acting on a surface $d \vec A$ must be: $$F_i=\sigma_{ij}dA_j\label{3}\tag{3}$$ Equations (2) and (3) clearly do not agree (even if we look soley at the force in the $d\vec A$ direction they don't agree). So my question is what is the exact meaning of pressure in expression (1) and why do we not have: $$\sigma_{ii}=-p$$ How to prove one has spent time in the non-Schengen European microstates, in order to pause the Schengen clock? I am considering staying in Monaco, San Marino, or Vatican City before I can enter the Schengen area again. , it is valid to stay in these three micro-states in order to stop the Schengen clock. However, also according to the answer:  Problems will arise when the visitor ultimately leaves the zone and must undergo a Schengen exit inspection. At this point the person may be asked to prove that they are not an overstayer and the border guard will be entitled to see hard evidence in the form of official documentation. There was a case where an individual attempted to show that his mobile phone registered to a tower outside of the zone and this failed obviously: radio waves have no respect for nation borders but also one could mail the SIM card to a friend in a far away land, put in a phone where it registers to the tower and then mail it back. Apparently hotel receipts can be too easily forged to be successful as evidence. What the border guard will want to see is a passport stamp from the local constabulary. But the constabulary is under no obligation to issue one, so success is down to personal impact and articulation skills.  I'm not sure if I could get a stamp from the local constabulary. However, I always use AirBnB to stay, and the reservation email and the mobile app might be far more reliable than a random hotel reservation document. So, does the AirBnB reservation email work as a proof of staying there? Or is there any better document as a proof of staying (&quot;better&quot;, in terms of ensuring that I don't pay the overstaying penalty)? I will likely leave the Schengen area ultimately from Frankfurt International Airport. Compression API on the iPhone New "[tag:" syntax interferes with Markdown links FrameLabel and OverTilde Why does a 95% Confidence Interval (CI) not imply a 95% chance of containing the mean? It seems that through various related questions here, there is consensus that the "95%" part of what we call a "95% confidence interval" refers to the fact that if we were to exactly replicate our sampling and CI-computation procedures  many times, 95% of thusly computed CIs would contain the population mean. It also seems to be the consensus that this definition does not permit one to conclude from a single 95%CI that there is a 95% chance that the mean falls somewhere within the CI. However, I don't understand how the former doesn't imply the latter insofar as, having imagined many CIs 95% of which contain the population mean, shouldn't our uncertainty (with regards to whether our actually-computed CI contains the population mean or not) force us to use the base-rate of the imagined cases (95%) as our estimate of the probability that our actual case contains the CI?   I've seen posts argue along the lines of "the actually-computed CI either contains the population mean or it doesn't, so its probability is either 1 or 0", but this seems to imply a strange definition of probability that is dependent on unknown states (i.e. a friend flips fair coin, hides the result, and I am disallowed from saying there is a 50% chance that it's heads).  Surely I'm wrong, but I don't see where my logic has gone awry... Can I fly back to Italy if my Italian residency card has expired and is being renewed? I have a residence permit (permesso di soggiorno) for Italy. I am currently in the Netherlands for an exchange. My permit expired on the 30th of November and I applied for a new one but I will get the card in January. I have the documents supporting that I have applied for the renewal of the permit. In the middle I want to travel to Italy for Christmas and come back to the Netherlands.    Would this be a problem? Any reason to have a strong user password? I recently decided to change my (very) strong user password to something trivial.  This was mostly to eliminate frustration with typing a long password each time I sudo or whatever.  My question is, is there any reason to have a strong user password? considering that most services which I run on my box do not use PAM for auth:   apache2 - uses .htpasswd for access   sshd - only private keys allowed   transmissiond - uses its own http auth   mpd - uses its own auth   samba - limited to LAN   Physical access to the box is out of the question. "I have never said" versus "I never said" "Hail Mary", "Glory Be" in the plural Possible Duplicate:          In the rosary, a Catholic sacramental composed of prayer beads, there is a short prayer concluding each decade called "Glory Be" ("Glory be to the Father, Son and Holy Spirit...").  Would the plural be Glory Bes or Glory Be's?  Likewise, do you say 10 Hail Marys? Where are some good places to find royalty free stock images? I have a registered StackOverflow account which I normally log into using OpenID.  Recently I logged out in order to post a question anonymously (supplying a fake name and of my secondary email addresses).  The problem now is that I'm logged in to StackOverflow as this "dummy" user, unable to see a way to log out.  The top menu normally has a "logout" link, but when you aren't fully registered this link is replaced with "register".  There is no "logout" link for me. :(  So..   When logged out there is a "login" link. When logged in there is a "logout" link. When "logged in" with an unregistered account, there is only a "register" link (no "logout"). Find the value of : $\lim_{n\to\infty}\prod_{k=1}^n\cos\left(\frac{ka}{n\sqrt{n}}\right)$ Error: Account is Not Allowed To Suggest Edits I get this message while trying to edit a post on SuperUser while using the iOS mobile app. I have at least 101 reputation on SU, more than enough to be able to edit posts. This appears to be a bug. Using dynamic where clauses in Entity Framework How to pick a specific symbol from a specific font?