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
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
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
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
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
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
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
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
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