On Wed, 2009-04-29 at 23:20 -0400, Steven W. Orr wrote:
> Bill, I would have to say that the answer is yes. Besides the fact
> that logging in via a passwordless system is more convenient, it's
> also more secure; you're username and password is never in the clear.
It's not, anyway, with a SSH co
On Saturday, Apr 25th 2009 at 21:55 -, quoth Bill Davidsen:
=>Is there a benefit from not just using a login key (in authorized keys) to
=>eliminate the need for passwords and also have the security of a single
=>command which could be executed using the key?
=>
=>I do my backups that way, jus
2009/4/26 Mikkel L. Ellertson :
> It depends on what you are trying to do. If it is a task that you do
> often, then it is worth while. But for tasks like this, that you do
> infrequently, it is handy to have a key pair with a good pass
> phrase. You use ssh-agent and ssh-add to unlock the key befo
Bill Davidsen wrote:
> Dan Track wrote:
>> Hi Guys,
>>
>> I've written a simple for loop see below:
>>
>> for i in orion earth;do scp /etc/hosts /etc;done
>>
>> I have a small scripting knowledge so would appreciate some help. What
>> I'd like to do is somehow change the above so that the script pr
Dan Track wrote:
Hi Guys,
I've written a simple for loop see below:
for i in orion earth;do scp /etc/hosts /etc;done
I have a small scripting knowledge so would appreciate some help. What
I'd like to do is somehow change the above so that the script prompts
me for a password and when I give th
On 04/24/2009 04:42 AM, Dan Track wrote:
Hi Guys,
I've written a simple for loop see below:
for i in orion earth;do scp /etc/hosts /etc;done
Have you noticed that your loop body (do ...; done) contains no
reference to the loop variable $i?
poc
--
fedora-list mailing list
fedora-list@redha
Dan Track wrote:
> Hi Guys,
>
> I've written a simple for loop see below:
>
> for i in orion earth;do scp /etc/hosts /etc;done
>
> I have a small scripting knowledge so would appreciate some help. What
> I'd like to do is somehow change the above so that the script prompts
> me for a password an
On Fri, 2009-04-24 at 11:16 +0100, Sharpe, Sam J wrote:
> Dan Track wrote:
> > 2009/4/24 Manuel Aróstegui :
> > > On Fri, 2009-04-24 at 10:12 +0100, Dan Track wrote:
> > >> Hi Guys,
> > >>
> > >> I've written a simple for loop see below:
> > >>
> > >> for i in orion earth;do scp /etc/hosts /etc;don
Dan Track wrote:
2009/4/24 Manuel Aróstegui :
> On Fri, 2009-04-24 at 10:12 +0100, Dan Track wrote:
>> Hi Guys,
>>
>> I've written a simple for loop see below:
>>
>> for i in orion earth;do scp /etc/hosts /etc;done
>>
>> I have a small scripting knowledge so would appreciate some help. What
>> I'
Manuel Aróstegui wrote:
On Fri, 2009-04-24 at 10:12 +0100, Dan Track wrote:
Hi Guys,
I've written a simple for loop see below:
for i in orion earth;do scp /etc/hosts /etc;done
I have a small scripting knowledge so would appreciate some help. What
I'd like to do is somehow change the above so
2009/4/24 Manuel Aróstegui :
> On Fri, 2009-04-24 at 10:12 +0100, Dan Track wrote:
>> Hi Guys,
>>
>> I've written a simple for loop see below:
>>
>> for i in orion earth;do scp /etc/hosts /etc;done
>>
>> I have a small scripting knowledge so would appreciate some help. What
>> I'd like to do is som
On Fri, 2009-04-24 at 10:12 +0100, Dan Track wrote:
> Hi Guys,
>
> I've written a simple for loop see below:
>
> for i in orion earth;do scp /etc/hosts /etc;done
>
> I have a small scripting knowledge so would appreciate some help. What
> I'd like to do is somehow change the above so that the sc
Hi Guys,
I've written a simple for loop see below:
for i in orion earth;do scp /etc/hosts /etc;done
I have a small scripting knowledge so would appreciate some help. What
I'd like to do is somehow change the above so that the script prompts
me for a password and when I give the script the passwo
On Wed, 2008-12-03 at 09:10 -0500, Bill Davidsen wrote:
> I have a tiny program called "zeroify" which reads a line from input
> up to a
> newline, replaced the newline with a zero byte, and pushes it out
> stdout. Then I
> can use the "-0" option of xargs and not worry about special
> characters
Dave Ihnat wrote:
On Mon, Dec 01, 2008 at 04:22:16PM -0500, Bill Davidsen wrote:
That won't work if filenames contain blanks, something I fight daily.
For blanks, do something like "find . -name "*log" -exec rm -fr "{}" \;
I have a tiny program called "zeroify" which reads a line from input u
On Mon, Dec 01, 2008 at 08:35:15PM -0500, RGH wrote:
> Gordon Messmer wrote:
>> Dave Ihnat wrote:
>>> On Mon, Dec 01, 2008 at 04:10:50PM -0500, RGH wrote:
ls -1d *log | xargs rm -Rf
Note that the first option is a one, not an el.
>>>
>>> Or for that matter, just "echo *log" instead of
Gordon Messmer wrote:
Dave Ihnat wrote:
On Mon, Dec 01, 2008 at 04:10:50PM -0500, RGH wrote:
ls -1d *log | xargs rm -Rf
Note that the first option is a one, not an el.
Or for that matter, just "echo *log" instead of ls.
Neither of those are reliable. If there are enough matches to requi
Dave Ihnat wrote:
On Mon, Dec 01, 2008 at 04:22:16PM -0500, Bill Davidsen wrote:
That won't work if filenames contain blanks, something I fight daily.
For blanks, do something like "find . -name "*log" -exec rm -fr "{}" \;
Of course, that's assuming the name pattern is what you want.
Dave Ihnat wrote:
On Mon, Dec 01, 2008 at 04:10:50PM -0500, RGH wrote:
ls -1d *log | xargs rm -Rf
Note that the first option is a one, not an el.
Or for that matter, just "echo *log" instead of ls.
Neither of those are reliable. If there are enough matches to require
xargs, then both ls
On Mon, Dec 01, 2008 at 04:22:16PM -0500, Bill Davidsen wrote:
> That won't work if filenames contain blanks, something I fight daily.
For blanks, do something like "find . -name "*log" -exec rm -fr "{}" \;
Of course, that's assuming the name pattern is what you want. You can
also specify if you
On Mon, Dec 01, 2008 at 04:10:50PM -0500, RGH wrote:
> The problem is that you're getting things like "Nov28-log:" back, with
> the trailing colon. Try this:
>ls -1d *log | xargs rm -Rf
> Note that the first option is a one, not an el.
Or for that matter, just "echo *log" instead of ls.
--
On Tue, 2008-12-02 at 04:42 +0800, adrian kok wrote:
> Hi
>
> I have script to remove files but it can't work in
> directory
>
>
> ls *log | sort -r | sed -e 1,1d | xargs rm -f
>
> those folders are:
>
> Nov28-log
> Nov29-log
> Nov30-log
You need to explain what you're trying to do exactly.
adrian kok wrote:
Hi
I have script to remove files but it can't work in
directory
ls *log | sort -r | sed -e 1,1d | xargs rm -f
those folders are:
Nov28-log
Nov29-log
Nov30-log
What is it you are trying to do here? Are you trying to remove files in the
directory leaving the directory name,
adrian kok wrote:
Hi
I have script to remove files but it can't work in
directory
ls *log | sort -r | sed -e 1,1d | xargs rm -f
those folders are:
Nov28-log
Nov29-log
Nov30-log
By 'folders', do you mean that these are directories? You need to 'rm
-rf' directories to remove the with their
adrian kok wrote:
Hi
I have script to remove files but it can't work in
directory
ls *log | sort -r | sed -e 1,1d | xargs rm -f
those folders are:
Nov28-log
Nov29-log
Nov30-log
The problem is that you're getting things like "Nov28-log:" back, with
the trailing colon. Try this:
ls -1
I did try it and it doesn't work!
Thank you
--- James Kosin <[EMAIL PROTECTED]> wrote:
> adrian kok wrote:
> > Hi
> >
> > I have script to remove files but it can't work in
> > directory
> >
> >
> > ls *log | sort -r | sed -e 1,1d | xargs rm -f
> >
> > those folders are:
> >
> > Nov28-log
>
adrian kok wrote:
> Hi
>
> I have script to remove files but it can't work in
> directory
>
>
> ls *log | sort -r | sed -e 1,1d | xargs rm -f
>
> those folders are:
>
> Nov28-log
> Nov29-log
> Nov30-log
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
You hav
Hi
I have script to remove files but it can't work in
directory
ls *log | sort -r | sed -e 1,1d | xargs rm -f
those folders are:
Nov28-log
Nov29-log
Nov30-log
Send instant messages to your online friends http://uk.messenger.yahoo.com
--
fedora-list mailing list
fedora-list@redhat.com
To un
> Point... just that the OP never stated that the files were in
> exactly one dir and that duplicate file names were or were not possible.
> Yes close timestamps are also an issue (see stat).
Hi. OP here. Files are all in the same dir. Duplicates obviously not an
issue. Everything is working. Th
On Sat, Sep 20, 2008 at 10:36:13AM +1000, Cameron Simpson wrote:
> On 19Sep2008 15:51, NiftyFedora Mitch <[EMAIL PROTECTED]> wrote:
> | On Fri, Sep 19, 2008 at 3:43 PM, Cameron Simpson <[EMAIL PROTECTED]> wrote:
> | > On 19Sep2008 14:08, Dennis Kaptain <[EMAIL PROTECTED]> wrote:
> | > | > > Can any
On 20Sep2008 10:36, I wrote:
| Something like the find incantation of another post is the easy way:
|
| find . -type f -name 'myfile\*.txt' | ls -t | sed 1q
Gah. My brain is off. Something more like this:
files=`find . -type f -name 'myfile\*.txt'`
ls -t -- $files | sed 1q
Won't work if t
On 19Sep2008 15:51, NiftyFedora Mitch <[EMAIL PROTECTED]> wrote:
| On Fri, Sep 19, 2008 at 3:43 PM, Cameron Simpson <[EMAIL PROTECTED]> wrote:
| > On 19Sep2008 14:08, Dennis Kaptain <[EMAIL PROTECTED]> wrote:
| > | > > Can anyone rattle this off of the top of their head?
| > | > `ls -t myfile*.txt
On Fri, Sep 19, 2008 at 3:43 PM, Cameron Simpson <[EMAIL PROTECTED]> wrote:
> On 19Sep2008 14:08, Dennis Kaptain <[EMAIL PROTECTED]> wrote:
> | > > Can anyone rattle this off of the top of their head?
> | >
> | > `ls -t myfile*.txt | head -1` might work for you.
> |
> | ls -t by itself may give you
On 19Sep2008 14:08, Dennis Kaptain <[EMAIL PROTECTED]> wrote:
| > > Can anyone rattle this off of the top of their head?
| >
| > `ls -t myfile*.txt | head -1` might work for you.
|
| ls -t by itself may give you more than one filename per line.
| Use ls -t1
| that will assure you get only one fi
On Fri, Sep 19, 2008 at 2:18 PM, James Pifer <[EMAIL PROTECTED]> wrote:
> On Fri, 2008-09-19 at 13:50 -0700, Mike Wright wrote:
>> James Pifer wrote:
>> > I've been googling to find ways of doing this but I'm not finding
>> what
>> > I'm looking for. I think this should be fairly easy, so I'm hopin
> > ls -t by itself may give you more than one filename per line.
> > Use ls -t1
> > that will assure you get only one file name output from head.
>
>
> Single-column output is automatically selected any time that the output
> of ls is redirected to anything which is not a tty, so the -1 option
On Fri, 2008-09-19 at 14:08 -0700, Dennis Kaptain wrote:
>
> > > Can anyone rattle this off of the top of their head?
> >
> > `ls -t myfile*.txt | head -1` might work for you.
> >
> > >
>
> ls -t by itself may give you more than one filename per line.
> Use ls -t1
> that will assure you get
On Fri, 2008-09-19 at 14:08 -0700, Dennis Kaptain wrote:
>
>
> > > Can anyone rattle this off of the top of their head?
> >
> > `ls -t myfile*.txt | head -1` might work for you.
> >
> > >
>
> ls -t by itself may give you more than one filename per line.
> Use ls -t1
> that will assure you ge
On Fri, 2008-09-19 at 13:50 -0700, Mike Wright wrote:
> James Pifer wrote:
> > I've been googling to find ways of doing this but I'm not finding
> what
> > I'm looking for. I think this should be fairly easy, so I'm hoping a
> > script guru out there can tell me what I need.
> >
> > I have some fi
>
> I've been googling to find ways of doing this but I'm not finding what
> I'm looking for. I think this should be fairly easy, so I'm hoping a
> script guru out there can tell me what I need.
>
> I have some files that are all named like:
> myfile387465893495643658734.txt
> myfile54764745364
> > Can anyone rattle this off of the top of their head?
>
> `ls -t myfile*.txt | head -1` might work for you.
>
> >
ls -t by itself may give you more than one filename per line.
Use ls -t1
that will assure you get only one file name output from head.
Dennis K
James Pifer wrote:
I've been googling to find ways of doing this but I'm not finding what
I'm looking for. I think this should be fairly easy, so I'm hoping a
script guru out there can tell me what I need.
I have some files that are all named like:
myfile387465893495643658734.txt
myfile547647453
I've been googling to find ways of doing this but I'm not finding what
I'm looking for. I think this should be fairly easy, so I'm hoping a
script guru out there can tell me what I need.
I have some files that are all named like:
myfile387465893495643658734.txt
myfile547647453645635632454.txt
my
43 matches
Mail list logo