0
votes
1answer
25 views

grep and search and replace in linux accepting parameters with /

I'm trying to find and replace the contents of a file using grep and sed. ```grep "#!/bin/bash" ./ | sed xargs -i 's/#!/bin/bash/#!/usr/env bash' How do I make sure that the string #!/bin/bash will ...
0
votes
3answers
55 views

How do I exclude match and change only specific character with sed

I am trying to use sed to replace '0' with the word 'correct' (I am using echo $? to validate my script and I want to replace the output of echo). The problem is that I have more text in the output ...
1
vote
1answer
48 views

Automatic replacement of expressions

Maybe this can be achieved through (extended) regular expressions, but I really don't know if or how. There seems to be a way to access "things that are found" by using $1, $2, … but I have no idea ...
1
vote
2answers
172 views

Replaces images\(.*)“ with images/\1” in all files?

I've got a bunch of html files, and all the img tags have the slashes the wrong way! Here's an example (except it's one line in the code, split here for ease of viewing) <a ...
9
votes
5answers
778 views

Can I replace Windows with Wine?

I will buy a new computer and install Kubuntu on it. The only kind of software that I would run on Windows are PC games. Can I play most of Windows games without problems with Wine on Linux? If Wine ...