Hi!
I got stuck at Task 16 of Command Line Offline Project.
My terminal shows: sed: 1: "africa/afrihili.txt": command a expects \ followed by text
after typing sed -i 's/Lingua-Franca/Lingua Franca/g' */*.txt
Anyone knows what I am doing wrong?
I have the same problem. Do you use a Mac too?
I have found that "sed command with -i option failing on Mac " StackOverfow Solution says “when you use -i an extension for the backup files is required” . I tried this: sed -i'.bak' 's/Lingua-Franca/Lingua Franca/g' */*.txt
and it worked correctly
I am limping through the “Lingua Franca - An Offline Project” and am completely stuck on Task 16. I am using a Mac. My terminal showed the same … “command a expects \ followed by text” jargon which I totally am clueless about. I copied and pasted Zarlana’s solution with the .bak … but what?! How was I supposed to know to do that?! So confused here…
I’ve got the same problem as in the first message.
I tried ‘sed -e’ and it returned a long list that includes strings from all files, names of all files.
Adding of ‘.bak’ helped but I got duplicates of every file.
on macOS the -i option needs a string after it. So if you were to write the command like this: sed -i '' 's/Lingua-Franca/Lingua Franca/g' */*.txt
With the empty string the command should work. Do note that after the ‘-i’, I put in 2 single quotes that isn’t 1 double quote