Re: Sed question

2008-12-21 Thread Bertram Scharpf
Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Bertram Scharpf
? Ruby. Untested: $ ruby -i.bak -pe 'next if ~/href=([^]*)/i and $1 == http://example.com;' somefile.html Probably you want to do something more sophisticated. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de

Re: well, blew it... sed or perl q again.

2008-12-30 Thread Bertram Scharpf
Hi Gary, Am Dienstag, 30. Dez 2008, 17:48:02 -0800 schrieb Gary Kline: On Tue, Dec 30, 2008 at 10:16:33PM +0100, Bertram Scharpf wrote: Hi Gary, Am Dienstag, 30. Dez 2008, 11:31:14 -0800 schrieb Gary Kline: The problem is that there are many, _many_ embedded A HREF=http://whatever

Re: OT: sed + exit status

2009-02-17 Thread Bertram Scharpf
will be returned when (1) the -? option or an unknown one requested a usage message and (2) the input file cannot be opened. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list

/bin/sh does not read profile

2009-03-04 Thread Bertram Scharpf
/usr/src/bin/sh/main.c to trace what files are read, recompiled the sh command and: the only file that is executed is ~/.shrc. I just cannot believe that FreeBSD has such a severe bug. What is going wrong here? Thanks in advance, Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http

Re: /bin/sh does not read profile

2009-03-05 Thread Bertram Scharpf
Hi Frank, Am Donnerstag, 05. Mär 2009, 04:15:05 + schrieb Frank Shute: On Wed, Mar 04, 2009 at 04:08:03PM +0100, Bertram Scharpf wrote: from man sh: Invocation [...] the shell inspects argument 0, and if it begins with a dash (`-'), the shell is also consid

Re: Terminal / vim / shortcuts

2009-06-14 Thread Bertram Scharpf
of the sleep is that you see the written message. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe

Re: Problem with bash script

2009-06-16 Thread Bertram Scharpf
/usr/home/tmp/$BN Please provide the error message next time. I guess the filenames contain spaces. Try cp $i /usr/home/tmp/$BN Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions

Re: what character is a physical newline

2009-06-29 Thread Bertram Scharpf
00010 001 Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail

Re: how to do a live migration of a freebsd box to another box with rsync

2009-07-05 Thread Bertram Scharpf
transfer formatted with FAT so that I can write some data from a Windows to it. I look enviously at the Grml project and I find it a great pity that there is no BSD equivalent. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de

Moused crashes with Synaptics

2009-08-04 Thread Bertram Scharpf
hw.psm.synaptics.vscroll_hor_area=1300 I don't have those ctls here and I cannot find the kernel driver that provides them. Does anybody have some advice for me? Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de

Re: Moused crashes with Synaptics

2009-08-04 Thread Bertram Scharpf
Hi, Am Dienstag, 04. Aug 2009, 13:26:24 +0200 schrieb Bertram Scharpf: Hi, an Acer notebook with a Synaptics Touchpad makes some trouble here. My primary problem is: I restart the mouse daemon and then I can move the mouse only for a short distance; suddenly the mouse freezes

Re: Moused crashes with Synaptics

2009-08-04 Thread Bertram Scharpf
Hi, Am Dienstag, 04. Aug 2009, 21:28:37 +0200 schrieb Bertram Scharpf: Am Dienstag, 04. Aug 2009, 13:26:24 +0200 schrieb Bertram Scharpf: Hi, an Acer notebook with a Synaptics Touchpad makes some trouble here. My primary problem is: I restart the mouse daemon and then I can move

Re: Moused crashes with Synaptics

2009-08-05 Thread Bertram Scharpf
Hi Mel, Am Dienstag, 04. Aug 2009, 18:50:24 -0800 schrieb Mel Flynn: On Tuesday 04 August 2009 03:26:24 Bertram Scharpf wrote: Further I seem to have missed something else. I found the page http://wiki.freebsd.org/SynapticsTouchpad where are mentioned some sysctls

Mouse still crashes with Synaptics

2009-08-06 Thread Bertram Scharpf
Hi, Am Dienstag, 04. Aug 2009, 13:26:24 +0200 schrieb Bertram Scharpf: an Acer notebook with a Synaptics Touchpad makes some trouble here. This is a real mess. Nobody gives me any help and I do not know what to try any further. I reduced the problem to the following behaviour: # dd if=/dev

Re: A sed question

2008-07-09 Thread Bertram Scharpf
is missing before the closing brace. sed -e '/\*address:/{n;[EMAIL PROTECTED]@replaceText @;}' I'm almost sure your version won't work with GNU sed either. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de

Switch to alternate screen buffer

2008-07-24 Thread Bertram Scharpf
are able to switch to an alternate screen buffer. They use the escape sequences \e[?1049h and \e[?1049l to switch back respectively. How can I activate this in FreeBSD? Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de

Re: Switch to alternate screen buffer

2008-07-26 Thread Bertram Scharpf
. No need to get over with a poor workaround. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe

Permissions and SANE/scanimage

2008-06-21 Thread Bertram Scharpf
of scanimage -L. Could somebody please enlighten me what's going on here? What did I miss when installing Sane? pkg_info -Dx sane-backends stays empty. Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de

Re: Permissions and SANE/scanimage

2008-06-21 Thread Bertram Scharpf
Hi, Am Samstag, 21. Jun 2008, 12:53:37 +0200 schrieb Marc Fonvieille: On Sat, Jun 21, 2008 at 12:36:24PM +0200, Bertram Scharpf wrote: my scanner works perfectly when I log in in as root. As an unprivileged user, I just get this error message: $ scanimage -L No scanners were

Re: Mouse still crashes with Synaptics

2009-08-07 Thread Bertram Scharpf
Hi, Am Donnerstag, 06. Aug 2009, 15:37:34 -0800 schrieb Mel Flynn: On Thursday 06 August 2009 12:46:21 Bertram Scharpf wrote: You might get some help on freebsd-x11 list. As I mentioned twice I manage to reproduce the problem just calling dd. It is definitely not an X11 issue. I really made

Re: please help to uninstall FreeBSD!!!

2009-08-12 Thread Bertram Scharpf
want to completly remove that FreeBSD from my PC and to install the Windows operating system from CD. This problem is best solved the common way Windows users do with any software: Just reinstall the desired program as often until it works. Bertram -- Bertram Scharpf Stuttgart, Deutschland

Re: remove newlines from a file

2009-09-01 Thread Bertram Scharpf
into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? Probably this: $ echo `cat ip-file` $ ipline=`cat ip-file` $ echo $ipline | wc -l Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http

Re: Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-03 Thread Bertram Scharpf
, the /bin/test executable does not recognize a == operator. Neither in `sh' nor in `bash' the `test' executable will be called (unless written as /bin/test). In both cases it is a builtin command. The Sh builtin works like the `test' executable; the Bash builtin recognizes ==. Bertram -- Bertram

Re: how to get rid of a character, 0x80?

2009-09-08 Thread Bertram Scharpf
). Who uses cp437/cp850 on BSD? besides.. 0x80!=0200 $ ruby -e 'puts 0x80, 0200' 128 128 Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http

Nice/priority and disk access

2009-09-11 Thread Bertram Scharpf
Hi, as the man page tells, `nice' alters the scheduling priority. Is there a way to reduce a processes priority for hard disk access? Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de

Re: Moused crashes with Synaptics

2009-09-16 Thread Bertram Scharpf
the psm0 device, it supplied 80-150 bytes before performing the deactivation. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: windoz, how do i install it last

2009-10-06 Thread Bertram Scharpf
#...@% into the first slice and FreeBSD into the second. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions

[OT] Show nice columns of numers

2009-10-28 Thread Bertram Scharpf
a programm that produces such nice output? Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions