--- Alexis Vasquez <[EMAIL PROTECTED]> escribió: >
--- Ted Zlatanov <[EMAIL PROTECTED]> escribió: > 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
--- Ted Zlatanov <[EMAIL PROTECTED]> escribió: > 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 t
On Fri, 2003-07-11 at 10:20, Ted Zlatanov wrote:
> 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 b
On Fri, 11 Jul 2003, Leonard Miller wrote:
> 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
>
No, becuase ther is no space to loo
Steven W. Orr wrote:
I'm just curious. This is some sort of psychiatric deficiency or
something. Why do *so* many people insist on
cat fn | whatever
when you can just say whatever < fn
Probably from a strong bias to read from left to right, and the
syntactic structure flows from this desi
On Saturday 12 July 2003 05:34, Alan Peery wrote:
> cat file | grep -v ^\$
>
> This will keep only those lines NOT matching "^\$", a line where there
> is nothing between the logical beginning and end of the line. If you
> want to find lines that only have the letter q on them,
>
> cat fred | gre
On Saturday, Jul 12th 2003 at 13:34 +0100, quoth Alan Peery:
=>Leonard Miller wrote:
=>
=>>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?
=>>
=>>
=>Use
=>
=>cat file | grep -v ^\$
=>
=>This will keep o
Leonard Miller wrote:
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?
Use
cat file | grep -v ^\$
This will keep only those lines NOT matching "^\$", a line where there
is nothing between the logical begin
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
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
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
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
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
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
---Original Message---
From: [EMAIL PROTECTED]
Date: Saturday, January 11, 2003 3:43:38 PM
To: [EMAIL PROTECTED]
Subject: Re: Scripting Question
On Saturday 11 January 2003 12:28, Thom Paine uttered:
> That seems to have fixed that.
>
> How hard would it be to record th
On Saturday 11 January 2003 12:28, Thom Paine uttered:
> That seems to have fixed that.
>
> How hard would it be to record the process and then kill it in a cron job?
Extremely easy. The process variable does exactly that, it records the
process ID. If you wanted to kill it, all you would have
That seems to have fixed that.
How hard would it be to record the process and then kill it in a cron job?
Thanks.
---Original Message---
From: [EMAIL PROTECTED]
Date: Saturday, January 11, 2003 3:11:59 PM
To: [EMAIL PROTECTED]
Subject: Re: Scripting Question
On Saturday 11 January
On Saturday 11 January 2003 11:08, Thom Paine uttered:
> Here is the output. Sorry it's not wrapped. But it is a dump of my server
> while the quake3 server is running.
>
> It is process 6753.
>
> Thanks for your help.
Try this:
#!/bin/sh
quake3dir="/usr/local/games/quake3"
binname="q3ded"
cd $
On Friday 10 January 2003 19:50, Thom Paine uttered:
> I'd appreciate any input on this. At a later date to get fancier, I'd like
> to record the pid so that I can kill it from cron too. I'd like to only
> have the server running at night and I'd like to rotate through the
> different servers on a
0:00
/usr/bin/python -S /var/mailman/cron/gate_news
root 6833 0.0 0.1 2788 824 pts/1R14:05 0:00 ps -auxwww
---Original Message---
From: [EMAIL PROTECTED]
Date: Saturday, January 11, 2003 2:01:45 PM
To: [EMAIL PROTECTED]
Subject: Re: Scripting Question
On Friday 10 Janu
On Fri, 2003-01-10 at 22:50, Thom Paine wrote:
> I have a scripting question I hope someone can answer and figure out for me.
Side note: There's a very good list for scripting (shell, perl, etc.)
available at http://moongroup.com/mailman/listinfo/shell.scripting where
you can get all kinds of he
21 matches
Mail list logo