Scripting question

2003-07-11 Thread Leonard Miller
Hi, I have a file with over 38000 lines in. Some of the lines have a space at the beginning and I can delete those lines. Is there a way using a script or vi that I can delete the lines that begin with a space? Thanks L -- Psyche-list mailing list [EMAIL PROTECTED] https://www.redhat.com/mail

Re: Scripting question

2003-07-11 Thread Alan Peery
cat file | grep -v ^\> file_nospace (that's a ^ followed by a \ followed by a space) mv file_nospace file Alan Leonard Miller wrote: Hi, I have a file with over 38000 lines in. Some of the lines have a space at the beginning and I can delete those lines. Is there a way using a scr

Re: Scripting question

2003-07-11 Thread Leonard Miller
Thanks Alan, That worked great. Now let me ask you this. I have another file with blank lines - no space or tabs, just carriage returns. Can I use that same line to remove those blank lines? Leonard >>> [EMAIL PROTECTED] 07/11/03 09:38AM >>> cat file | grep -v ^\> file_nospace (tha

Re: Scripting question

2003-07-11 Thread Ted Zlatanov
On Fri, 11 Jul 2003, [EMAIL PROTECTED] wrote: > I have a file with over 38000 lines in. Some of the lines have a > space at the beginning and I can delete those lines. Is there a > way using a script or vi that I can delete the lines that begin > with a space? If you mean just a space character

RE: Scripting question

2003-07-11 Thread Hattie Rouge
If you're sure it's a space, how about egrep ^[^ ].* > Check the new file and make sure you have all the lines you want. I would count lines to find out how many total lines and how many don't have a leading space. The number of lines in new file should match the difference. Once you

Re: Scripting question

2003-07-11 Thread Leonard Miller
Nevermind, I figured it out. Used a bracket expression cat in.txt | grep [01234567898] > out.txt Thanks for the help and the lesson Leonard >>> [EMAIL PROTECTED] 07/11/03 10:02AM >>> Thanks Alan, That worked great. Now let me ask you this. I have another file with blank lines - no space or tabs

RedHat 9 Problem

2003-07-11 Thread Nataniel Klug
Hi, I am trying to install RedHat 9 from a CDROM get from redhat.com and it just do not install. When it get into tests it returns this message: hda: host protected area => 1 hda: 156368016 sectores (80060 MB) W/2048 KiB Cache, CHS=9733/255/63, UDA (100) hdc: Drive CDROM Uniform CD-ROM dr

Re: Scripting question

2003-07-11 Thread Gordon Messmer
Leonard Miller wrote: [EMAIL PROTECTED] 07/11/03 09:38AM >>> cat file | grep -v ^\> file_nospace (that's a ^ followed by a \ followed by a space) mv file_nospace file > > Thanks Alan, > That worked great. Now let me ask you this. > I have another file with blank lines - no space or t

CUPS problems

2003-07-11 Thread Vladimir G. Ivanovic
I can't seem to rid of a print job using CUPS, even after I cancel the job *and* turn off the printer. Something always seems to come out when I turn the printer back on. Usually it's garbage, but it wastes paper, and I don't know how many pages are going to get printed before CUPS decides to honor