471 reputation
25
bio website
location Bristol, United Kingdom
age
visits member for 2 years, 5 months
seen Nov 1 at 20:26

Nov
18
awarded  Revival
Nov
1
comment socat disable double echo
Nope. That too does not echo anything while I'm typing, until I press ENTER. I want to see and be able to edit while I type, just not have the line echoed back again after I press ENTER.
Oct
31
asked socat disable double echo
Sep
30
asked How do programs detect home directory (other than $HOME)
Aug
28
comment What does bash -l do and why can't it find ssh?
Bash does not, by default, take a command to run as an option - at least not according to man bash on my system. That's what the -c option is for; do you want bash -l -c ssh? The plain bash -l ssh starts a login shell and tries to run a file named ssh as a shell script, whereas your ssh is probably an executable.
Jul
20
awarded  Yearling
Jul
20
awarded  Yearling
Jul
1
answered Unzipping certain archives works on Windows but not on Linux
Feb
12
comment mapping <C-F9> in gvim: no response
XFCE 4.6.1/XFWM on Xubuntu 10.04 LTS "Lucid" with Gnome 2.30.2. In fact most CTRL key combinations seem not to work as expected e.g. <C-9> doesn't show up as anything either but <C-V>, <C-K> do work so the control key itself isn't broken.
Feb
11
asked mapping <C-F9> in gvim: no response
Nov
21
awarded  Commentator
Nov
21
comment Why could the size of the “dot” file “.” exceed 4096?
(2) Sadly, no longer. This used to be possible on old UNIX versions.
Nov
21
comment Why could the size of the “dot” file “.” exceed 4096?
(1) See also unix.stackexchange.com/questions/38639/… - short answer, delete the directory and recreate it.
Nov
21
answered Colourful terminal or console?
Nov
21
answered Why could the size of the “dot” file “.” exceed 4096?
Aug
17
answered reformat a text file to have all text on one line using CentOS 5.6
Aug
10
awarded  Supporter
Aug
9
comment How to do multiline search and replace text (delete) recursively
3. The command is correct like that. You can change the $i.tmp to just $i at the end to overwrite the files in-place (if you look at the sedml script, it uses $1.tmp to make the changes and then moves the file to $2 at the end, if successful). 4. The command as given will work if the delimiters are exactly as given and there's no # symbols between the delimiters. (You may want to check that it works correctly on one or two files manually, sedml FILE 's@#c3284d#[^#]*#/c3284d#@@g' FILE.tmp and see if the result is what you expect (this version doesn't overwrite the original).
Aug
9
comment How to do multiline search and replace text (delete) recursively
1. I'd personally make a directory bin in your home directory and put all your own scripts in there, then to add it to your path you can add export PATH="$PATH:~/bin" to one of your startup files (.bashrc). 2. [^#]* : The brackets usually mean 'any of these characters', except that the caret at the beginning turns it into 'any except these characters'. So [^#] matches any character that's not a #. The * at the end means "any number of", so you're matching any sequence of characters that doesn't contain a #. running out of space ...
Aug
9
comment How to do multiline search and replace text (delete) recursively
For your other question on what you have to escape: as long as you use single-quotes in the shell, and the pattern does not contain any more # characters between the delimiters (which I wouldn't expect in a base64_encoded string), you should be able to do 's@#c3284d#[^#]*#/c3284d#@@g' with no further escaping. The only things you'd need to escape within the quotes are sed metacharacters and the s delimiter (@ in this case so you're ok).