Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Jason Van Cleve
Quoth Bob Miller, on Thu, 5 May 2005 23:15:37 -0700: > Sed is a Unix command. Therefore it follows Unix line end > conventions. If it didn't, it would be broken, and many scripts that > rely on its correct behavior would also be broken. I don't see why I understand the unix line convention. Y

Re: [Eug-lug] encryption decryption

2005-05-05 Thread Bob Miller
timothy wrote: > If you use the above as a command wouldn't the password be in > history. On ocassion I have to go through my history file and > delete things when I make a misstake. Or is it like SSH where it > asks for the password? I didn't know you could do that thanks for > showing us how

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Bob Miller
Jason Van Cleve wrote: > I can only surmise sed is thus free to treat "^M" as part of the RE or > as part of the "end of a line", and opts for the former. Sed is a Unix command. Therefore it follows Unix line end conventions. If it didn't, it would be broken, and many scripts that rely on its c

[Eug-lug] USB Memory Sticks

2005-05-05 Thread Jeff Newton
Hey Guys, I'm looking into getting one of those media memory sticks to use here, was wondering if anyone has any recommendations on what to look into?? Thanks - Jeff ___ EUGLUG mailing list euglug@euglug.org http://www.euglug.org/mailman/listinfo/euglug

Re: [Eug-lug] encryption decryption

2005-05-05 Thread timothy
On Thursday 05 May 2005 14:42, Bob Miller wrote: > If you just want to encrypt a tar file, you can do this. > > tar cvf - ./$Path | openssl bf -e -pass pass:xyzzy > /dev/st0 >> $TOC > > To decrypt, do this. > > openssl bf -d < /dev/st0 | tar xf - $files > enter bf-cbc decryption passwo

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Allen Brown
On Thu, 5 May 2005, Jason Van Cleve wrote: > Quoth Bob Miller, on Thu, 5 May 2005 18:11:06 -0700: > > > No, sed is precise with regard to newlines. (-: I was wondering if > > The man page isn't very. It doesn't mention "$" wrt regex's, just "\n": >From `man 7 regex`: An atom is a regular

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Jason Van Cleve
Quoth Bob Miller, on Thu, 5 May 2005 18:11:06 -0700: > No, sed is precise with regard to newlines. (-: I was wondering if The man page isn't very. It doesn't mention "$" wrt regex's, just "\n": "REGULAR EXPRESSIONS POSIX.2 BREs should be supported, but they aren't completely because of performa

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Jason Van Cleve
Quoth Bob Miller, on Thu, 5 May 2005 18:15:25 -0700: > If you want to strip whitespace and preserve DOS line endings, try > this. > >$ sed -e 's/[ ^I]+\(^M?\)$/\1/' Thanks, KBob, I can use that. --Jason -- "Out of environment space" -- MS-DOS Command Interpreter ___

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread horst
Date: Thu, 5 May 2005 14:58:01 -0700 From: Jason Van Cleve <[EMAIL PROTECTED]> ..> Actually, the DOS newlines themselves were not my problem, and I didn't want to change them necessarily. It was that they were confusing sed so that my regular expression didn't work. To my simple mind, DOS newline

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Bob Miller
Jason Van Cleve wrote: > Actually, the DOS newlines themselves were not my problem, and I didn't > want to change them necessarily. It was that they were confusing > sed so that my regular expression didn't work. To my simple mind, DOS > newlines are newlines too, and so "$" should match them.

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Bob Miller
Jason Van Cleve wrote: > Evidently sed is stupid with regard to newlines No, sed is precise with regard to newlines. (-: I was wondering if converting DOS line ends to Unix would be your next question. -- Bob Miller K kbobsoft software consulting http://kbobsoft.com

[Eug-lug] [Fwd: unix geeks for hire?]

2005-05-05 Thread Rob Hudson
EUGLUG, My friend Matt Jarvis is looking for some help setting up a Unix machine. The specifics are as follows: We have a Compaq ML530 that was originally set up for Windows, we want SCO Unix 5.05 installed and the disk array properly configured. Have the disks but might need help setting up a

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Jason Van Cleve
Quoth larry price, on Thu, 5 May 2005 14:16:09 -0700: > the one thing that sed does well is edit streams of text, it does not > do so well at guessing what you want, you have to tell it if you want > it to change line-endings etc. Actually, the DOS newlines themselves were not my problem, and I d

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread larry price
you can use sed to whack dos style line ends sed -i.old -e 's/^M//g' $files ^^ the tricky part is that to make it happen you have to enter it as a control character in a commandline environment ctrl-v ctrl-$CHAR should do it, in emacs it's ctrl-q ctrl-$CHAR (vi gurus?) the

Re: Resolved: [Eug-lug] Source Code Processing

2005-05-05 Thread Jason Van Cleve
Quoth Jason Van Cleve, on Wed, 4 May 2005 20:46:40 -0700: > sed -r -i s/[\ \ ]*$//g $files Addendum: I found some source files with DOS newlines in them, and this sed command doesn't work on those. Evidently sed is stupid with regard to newlines, so now it's: dos2unix -k -q -o $files

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Max Lemieux
I believe the meeting is in Springfield at the old Masonic temple. -Max Jeff Newton wrote: It sounds like that I have both the Synaptic Package Manager and the KPackage Manager as well here. Btw I did see on the KDE site that the newer version 3.4 was released. I will check for this stuff later,

Re: [Eug-lug] encryption decryption

2005-05-05 Thread Bob Miller
Fred James wrote: > Right now, our backups tapes are written with ... > tar -cvf /dev/st0 ./$Path >> $TOC > ... and I am thinking of adding some kind of encryption to the routine. > Is there anything simple, or am I looking at writing something to use > the likes of blowfish? Thank you in advance

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Jeff Newton
It sounds like that I have both the Synaptic Package Manager and the KPackage Manager as well here. Btw I did see on the KDE site that the newer version 3.4 was released. I will check for this stuff later, since my eyelids are calling for inspection time. Btw, no one said if it was here in Euge

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Max Lemieux
It sure does. We're getting very warm now. Check your K menu > System > [Synaptic Package Manager] or [KPackage Package Manager]. Those apps are front ends for apt-get, the nifty Debian automagical package distribution/configuration system. Use Synaptic or KPackage to search for "firewall", or e

Re: [Eug-lug] Source Code Processing

2005-05-05 Thread Bob Miller
Jason Van Cleve wrote: > I'd like to process a whole bunch of source files uniformly, stripping > off any whitespace at the ends of lines and also making sure there is > exactly one newline before the EOF. That last part may be tricky, but > is there a speedy *nix utility for getting rid of trail

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Jeff Newton
Max, does KDE 3.2 ring any bells? Jeff Max Lemieux wrote: OK. It actually looks like Guarddog is a KDE-specific package. If you already are running the KDE desktop, you can do this to get Guarddog as root: # apt-get install guarddog Do you have a GUI desktop installed already? Let me put it a di

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Max Lemieux
OK. It actually looks like Guarddog is a KDE-specific package. If you already are running the KDE desktop, you can do this to get Guarddog as root: # apt-get install guarddog Do you have a GUI desktop installed already? Let me put it a different way, what is the purpose of this Debian box and w

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Jeff Newton
I know, I'm running debain on the box, but distro, I'm not familier with Max. - J Max Lemieux wrote: How to get it depends on what distro you're running. Guarddog happened to come with SimplyMepis 3.3, so I used it as an example. Its website is http://www.simonzone.com/software/guarddog/. Which

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Max Lemieux
How to get it depends on what distro you're running. Guarddog happened to come with SimplyMepis 3.3, so I used it as an example. Its website is http://www.simonzone.com/software/guarddog/. Which distro are you running? -Max Jeff Newton wrote: Thanks Max, what's exactly what I thought! Where can

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Jeff Newton
Thanks Max, what's exactly what I thought! Where can I find this file and where?? Btw, I suppose the meeting is in Springfield tonight, right?? Jeff Max Lemieux wrote: Most of the virii/worms tie into specific known MS vulnerabilities. You are beautifully immune on Linux. Security concerns are m

Re: [Eug-lug] security software for Linux?

2005-05-05 Thread Max Lemieux
Most of the virii/worms tie into specific known MS vulnerabilities. You are beautifully immune on Linux. Security concerns are more to do with unauthorized access than the bot/worm/virus stuff. To that end, most Linux distros do come with a software firewall, based on the iptables package. Look

Re: [Eug-lug] encryption decryption

2005-05-05 Thread larry price
On 5/5/05, Fred James <[EMAIL PROTECTED]> wrote: > All > Right now, our backups tapes are written with ... > tar -cvf /dev/st0 ./$Path >> $TOC > ... and I am thinking of adding some kind of encryption to the routine. > Is there anything simple, or am I looking at writing something to use > the like

[Eug-lug] security software for Linux?

2005-05-05 Thread Jeff Newton
Hey guys, I was wondering is there any software out there for linux that will snag those nasty worms and supposedly virus's?? Since, most are written for Microsoft products was kinda wondering if Linux is game to virus hacks or not?? Jeff ___ EUGLUG ma

[Eug-lug] encryption decryption

2005-05-05 Thread Fred James
All Right now, our backups tapes are written with ... tar -cvf /dev/st0 ./$Path >> $TOC ... and I am thinking of adding some kind of encryption to the routine. Is there anything simple, or am I looking at writing something to use the likes of blowfish? Thank you in advance for any help you may be