Tag Info

Hot answers tagged


When you run > /tmp/foo.txt, you are overwriting the contents of /tmp/foo.txt with the output of sed 's/old text/new text/' file1.txt. Since /tmp/foo.txt doesn't exist when you run this command, bash will create that file for you and then write it. Then, when you use the -p flag to cp, you are copying the permissions and attributes of /tmp/foo.txt to ...


The newline for sed's append is break it, so you have to backslash newline or sustitute by \n symbol: sed -i '' '/user_pref("mail.identity.id1.reply_on_top", 1);/ a\ user_pref("mail.identity.id1.sig_file", "/Users/illias.seba/Library/Mail/V2/MailData/Signatures/signature.html");\ user_pref("mail.identity.id1.sig_file-rel", ...


I found the solution and in the end it was pretty simple, I just couldn't see the forrest for the tree. Find out the actual username on Windows by going to Computer Managamenet -> Local Users and Groups -> Users. Account should be listed there with the real name. Then use this name instead of the Microsoft account one and all should work.

Only top voted, non community-wiki answers of a minimum length are eligible