[nlug] Re: abbreviated: command of the day.

2009-02-16 Thread Andrew Farnsworth

Steven,
  This is exactly what I am having to do at the moment.
Unfortunately, I just pushed my code through the release process and
it has gone live.  I'll update my code, but wait until there is a more
pressing need to go live with it before I go through this hassle
again.  It only runs early in the morning every Sunday so speed is not
an issue.

Thanks!

Andy

On Mon, Feb 16, 2009 at 11:03 AM, Steven S. Critchfield
 wrote:
>
> Okay, I just had to share this one.
>
> I have a process I normally have to do a few times a month that moves files
> from one directory into a dated storage dir. Wouldn't be a hard problem but
> the directory grows longer than can be used by simple argument expansion.
> So we use a ls piped to grep and hand off to xargs. Problem was that due to
> the normal usage of mv being "mv source dest" I had to use xargs -i to get
> mv happy.
>
> ls | grep TXT | xargs -i mv {} dest/
>
> Well today when I tried yet again to get xargs to place more than one item
> in the source section of the mv, I ran across an interesting solution that
> I didn't think about. I had fixated on making xargs do all the work that I
> didn't think about what could I do differently with mv to get the problem
> solved. It seems cp and mv both support a --target-directory option that
> lets you put the dest argument before the sources, and then you can turn
> xargs loose to do it's normal operation.
>
> ls | grep TXT | xargs mv --target-directory=dest/
>
> This allows xargs to pack as many source files into each command as it can,
> instead of the original that ran mv for every source file. Sped up the run
> time by several minutes.
>
> Just a little bit of reinforcement that occasionally when you are banging
> your head on a problem one way, you might need to look at the other parts
> to see if they can help you out.
>
> --
> Steven Critchfield cri...@basesys.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~--~~~~--~~--~--~---



[nlug] abbreviated: command of the day.

2009-02-16 Thread Steven S. Critchfield

Okay, I just had to share this one. 

I have a process I normally have to do a few times a month that moves files
from one directory into a dated storage dir. Wouldn't be a hard problem but
the directory grows longer than can be used by simple argument expansion.
So we use a ls piped to grep and hand off to xargs. Problem was that due to
the normal usage of mv being "mv source dest" I had to use xargs -i to get
mv happy. 

ls | grep TXT | xargs -i mv {} dest/

Well today when I tried yet again to get xargs to place more than one item
in the source section of the mv, I ran across an interesting solution that
I didn't think about. I had fixated on making xargs do all the work that I
didn't think about what could I do differently with mv to get the problem
solved. It seems cp and mv both support a --target-directory option that
lets you put the dest argument before the sources, and then you can turn
xargs loose to do it's normal operation.

ls | grep TXT | xargs mv --target-directory=dest/

This allows xargs to pack as many source files into each command as it can,
instead of the original that ran mv for every source file. Sped up the run
time by several minutes. 

Just a little bit of reinforcement that occasionally when you are banging
your head on a problem one way, you might need to look at the other parts
to see if they can help you out.

-- 
Steven Critchfield cri...@basesys.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~--~~~~--~~--~--~---



[nlug] Re: WTB various laptop parts

2009-02-16 Thread Chris McQuistion
I just checked my stash.  I have two 256 MB matching SO-DIMMS of Hynix PC133
(CL3).  I have no way of testing them, but I don't have any reason to think
that they aren't good.
Email me direct for the address and we'll arrange a time for you to pick
them up if you want them.

Chris


On Mon, Feb 16, 2009 at 8:58 AM, Bucky 'Igneous' Wolfe
wrote:

>
> On Mon, Feb 16, 2009 at 08:47:12AM -0600, Chris McQuistion wrote:
> >I have some PC133 SO-DIMMS at the office.  I'll check the capacity in
> a
> >little while.  I think they are all 256 MB sticks pulled from old
> >Powerbooks, when they were upgraded.  I'll drop you a line, when I've
> >checked them out and you can have a pair for free, if you'll come pick
> >them up.
>
> That sounds divine. Thanks a ton, Chris!
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~--~~~~--~~--~--~---



[nlug] Re: WTB various laptop parts

2009-02-16 Thread Bucky 'Igneous' Wolfe

On Mon, Feb 16, 2009 at 08:47:12AM -0600, Chris McQuistion wrote:
>I have some PC133 SO-DIMMS at the office.  I'll check the capacity in a
>little while.  I think they are all 256 MB sticks pulled from old
>Powerbooks, when they were upgraded.  I'll drop you a line, when I've
>checked them out and you can have a pair for free, if you'll come pick
>them up.

That sounds divine. Thanks a ton, Chris!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~--~~~~--~~--~--~---



[nlug] Re: WTB various laptop parts

2009-02-16 Thread Chris McQuistion
I have some PC133 SO-DIMMS at the office.  I'll check the capacity in a
little while.  I think they are all 256 MB sticks pulled from old
Powerbooks, when they were upgraded.  I'll drop you a line, when I've
checked them out and you can have a pair for free, if you'll come pick them
up.
Chris


On Mon, Feb 16, 2009 at 8:41 AM, Bucky 'Igneous' Wolfe
wrote:

>
> On Mon, Feb 16, 2009 at 08:10:03AM -0600, Jim Peterson wrote:
> >Have you checked with [1]www.1stchoicememory.com? They are usually a
> lot
> >cheaper than the usual suppliers in Newegg and TigerDirect, but they
> do
> >take a while to ship.
>
> Looked at them, per your suggestion, but couldn't actually find pc133
> so-dimms. They seem to only have DDR266 and up, in terms of laptop
> memory.
>
> Thanks for the suggestion though. Anyone have any other retailers
> worth looking at?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~--~~~~--~~--~--~---



[nlug] Re: WTB various laptop parts

2009-02-16 Thread Bucky 'Igneous' Wolfe

On Mon, Feb 16, 2009 at 08:10:03AM -0600, Jim Peterson wrote:
>Have you checked with [1]www.1stchoicememory.com? They are usually a lot
>cheaper than the usual suppliers in Newegg and TigerDirect, but they do
>take a while to ship.

Looked at them, per your suggestion, but couldn't actually find pc133
so-dimms. They seem to only have DDR266 and up, in terms of laptop
memory.

Thanks for the suggestion though. Anyone have any other retailers
worth looking at?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~--~~~~--~~--~--~---



[nlug] Re: WTB various laptop parts

2009-02-16 Thread Jim Peterson
Have you checked with www.1stchoicememory.com? They are usually a lot
cheaper than the usual suppliers in Newegg and TigerDirect, but they do
take a while to ship. 

Jim Peterson
Technology Coordinator
Goodnight Memorial Library
203 S. Main St.
Franklin, KY  42134
(270) 586-8397
www.gmpl.org

On Sun, 2009-02-15 at 13:23 -0600, Bucky 'Igneous' Wolfe wrote:

> Salutations all. I'm looking for one or two sticks of 512mb (or 256mb)
> pc133 laptop ram.
> 
> The cheapest sticks of 512mb/pc133 sodimms that I can find are upwards
> of $30. If anyone out there in mailinglistland has some working
> (memtest passing) used sticks they'd be willing to sell me, I'd be
> more than willing to buy them from you.
> 
> Additionally, if anyone has any thin (sub 11mm) 2.5", ata-6, laptop
> hdds -- I'd be willing to buy those as well, along with any 32bit
> pcmcia linux-friendly wireless cards, or usb floppy or tape drives.
> 
> Thanks so much,
> Igneous
> 
> PS: I'd be more than happy to drive out to wherever you are, to meet you.
> 
> > 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~--~~~~--~~--~--~---