Skip to content

SED not working [unterminated `s’ command]

i am trying to replace content of file using sed by following commands but it is giving Answer You’re missing a separator (which is ~ in your case). It looks like you are trying to put it on the end of $searchString, which is strange. I don’t know why you’re doing that. The reason it doesn&#…

linux: how grep work

I am using grep for some time,but there is some question when I use grep. when I use ‘grep’ to search some string on nginx error log,I try two ways: one: for this,there is nothing find two: for this, there can find lines that contain 404 in error.log in my example, ‘404.*’ is the patte…

Read line output in a shell script

I want to run a program (when executed it produces logdata) out of a shell script and write the output into a text file. I failed to do so :/ $prog is the executed prog -> socat /dev/ttyUSB0,b9600 STDOUT $log/$FILE is just path to a .txt file I had a Perl script to do this: I tried to do this

error installing ruby 1.9.3 on linux server

Hey I’m just to update ruby on a linux server I ssh into. I know there a lot of threads on this but most are for installing on mac osx (which i dont have an issue with). This is the error log thats outputted: this is the content of the make.log per a commenter’s request: Answer I think your issue