RE: Cygwin is saving my ass

2008-03-31 Thread Stepp, Charles
Yeah...I use shell scripts to rename and rearrange music and podcasts on
my MP3 Players. I just don't understand why the original namers can't
get the Year before Month before Day concept.

Charles Stepp
Meskimen's Law:
There's never time to do it rite, but there's always time to do it over.
-Original Message-
From: Morgan gangwere [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2008 1:05 PM
To: cygwin@cygwin.com
Subject: Re: Cygwin is saving my ass

Without cygwin, i wouldnt have my directory sorting algorithm running on

windows. DOS has no way of (easily) sorting files into
c:\{YEAR}\{MONTH}\{MIMETYPE}\
(where Year Month and Mimetype are the year month and mimetype of the 
file in a list of oh say 3 files.)

i _could_ impliment this in vb, but bash is faster.
--
Morgan Gangwere

Unknown Software

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin is saving my ass

2008-03-31 Thread Morgan gangwere

DePriest, Jason R. wrote:

On Fri, Mar 28, 2008 at 12:04 PM, Morgan gangwere  wrote:

Without cygwin, i wouldnt have my directory sorting algorithm running on
 windows. DOS has no way of (easily) sorting files into
 c:\{YEAR}\{MONTH}\{MIMETYPE}\
 (where Year Month and Mimetype are the year month and mimetype of the
 file in a list of oh say 3 files.)

 i _could_ impliment this in vb, but bash is faster.
 --
 Morgan Gangwere

 Unknown Software



Any chance you could share your bash script?  I have some perl scripts
that are similar, but a pure bash script would be even better.

-Jason



Its somwhere in my log... the basic idea is you have 2 shell scripts, 
one that does the move, another one that handles the list.

dotree.sh looks something like
--- start ---
# Get all files in cmd line:
for $f in $*
echo copy $f
fcopy $f  stdout
rof
--- end --


and fcopy looks like
--- start ---
$fname = $1
#we can assume the file exists, as a glob was proabably used
# get the modify date and mimetype
$finfo={date =r=$fname +%Y_%j_%R}
$mime = {file -i $finfo}
$outname={basename $fname}
# now we copy the file
$TARGET = \cygdrive\m\backups\$DATE
echo Copying $fname to $TARGET\$finfo\$mime\$outname  stdout
cp $fname $TARGET\$finfo\$mime\$outname
--- end ---

This will send the file foo.txt modified 3/14/15 at 06:06:06 to 
\cygdrive\m\backups\(todays date)\15_(day number for march 
14)_06:06:06\text/plain; charset=us-ascii\foo.txt


Note that this can be a VERY useful system if you have a bunch of files 
and you can easily pick foo.txt modified on blah, as this script will 
do it, and thats how my backup works. this MAY fail if you have multiple 
foo.txts modified on the same day


note that is will fail as you cant cp files like that. but it is 
possible to use this as a base -- i am recalling this from memory.


--
Morgan Gangwere

Unknown Software

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin is saving my ass

2008-03-31 Thread Morgan gangwere

Stepp, Charles wrote:
 Yeah...I use shell scripts to rename and rearrange music and podcasts on
 my MP3 Players. I just don't understand why the original namers can't
 get the Year before Month before Day concept.

 Charles Stepp
 Meskimen's Law:
 There's never time to do it rite, but there's always time to do it over.
 -Original Message-
 From: Morgan gangwere [...] Sent: Friday, March 28, 2008 1:05 PM
 To: cygwin@cygwin.com
 Subject: Re: Cygwin is saving my ass

I wrote a nice little python script to do that... its rather long and 
uses libmp3. The only problem is that neither side can easily handle a 
title such as /home/morgan/Music/Binärpilot - You Can't Stop Da 
Funk/Binärpilot - Markell Fiksen.mp3 because the ä should be an 
umulated a. lowercase. unicode sez so.


(thunderbird isnt picking up the list again! Grrr!)
--
Morgan Gangwere

Unknown Software

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin is saving my ass

2008-03-29 Thread DePriest, Jason R.
On Fri, Mar 28, 2008 at 12:04 PM, Morgan gangwere  wrote:
 Without cygwin, i wouldnt have my directory sorting algorithm running on
  windows. DOS has no way of (easily) sorting files into
  c:\{YEAR}\{MONTH}\{MIMETYPE}\
  (where Year Month and Mimetype are the year month and mimetype of the
  file in a list of oh say 3 files.)

  i _could_ impliment this in vb, but bash is faster.
  --
  Morgan Gangwere

  Unknown Software


Any chance you could share your bash script?  I have some perl scripts
that are similar, but a pure bash script would be even better.

-Jason

-- 
NOTICE:  Reading this email message requires root privileges which you
do not appear to possess. Sorry, dude.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin is saving my ass

2008-03-28 Thread Morgan gangwere
Without cygwin, i wouldnt have my directory sorting algorithm running on 
windows. DOS has no way of (easily) sorting files into

c:\{YEAR}\{MONTH}\{MIMETYPE}\
(where Year Month and Mimetype are the year month and mimetype of the 
file in a list of oh say 3 files.)


i _could_ impliment this in vb, but bash is faster.
--
Morgan Gangwere

Unknown Software

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin is saving my ass

2008-03-27 Thread Ignazio Di Napoli

Dave Korn wrote:

Robert Latest wrote on 25 March 2008 08:50:


Enter corporate IT. For four weeks now I've been holding my first real
industry job. And I'm locked into a M$ Windows PC. God, I hadn't known
just how much Windows sucks. Everything around here is done with
Access and Excel and lots of ultra-slow VBA glue to hold it more or
less together. Lotus Notes for appointments and email. Well, that's
not going to change, but who helps ME to get MY work done?

Enter Cygwin. Finally, things flow again. What a relief. Thanks, guys.


  :)  I think you speak for quite a lot of people here when you say that.  I
couldn't function in my day-to-day work without a real shell, and grep and
sed, and all the gnu tools.  Cygwin makes windows worth using!


My opinion too...

Ignazio


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin is saving my ass

2008-03-27 Thread Steven Woody
The world would get even better if there were on windows at all:-)

On 3/27/08, Ignazio Di Napoli [EMAIL PROTECTED] wrote:
 Dave Korn wrote:
  Robert Latest wrote on 25 March 2008 08:50:
 
  Enter corporate IT. For four weeks now I've been holding my first real
  industry job. And I'm locked into a M$ Windows PC. God, I hadn't known
  just how much Windows sucks. Everything around here is done with
  Access and Excel and lots of ultra-slow VBA glue to hold it more or
  less together. Lotus Notes for appointments and email. Well, that's
  not going to change, but who helps ME to get MY work done?
 
  Enter Cygwin. Finally, things flow again. What a relief. Thanks, guys.
 
:)  I think you speak for quite a lot of people here when you say that.
 I
  couldn't function in my day-to-day work without a real shell, and grep and
  sed, and all the gnu tools.  Cygwin makes windows worth using!

 My opinion too...

 Ignazio


 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/



-- 
Sent from Gmail for mobile | mobile.google.com

woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Cygwin is saving my ass

2008-03-25 Thread Robert Latest
Hello friends,

Years ago, I heard of cygwin and installed it on a Windows PC that I
occasionally had to use -- just to have access to bash and find,
actually. Well, I liked it OK but viewed it as a more or less
superfluous toy. I mean, why use cygwin when you can have a native,
full-blown Linux system for free?

Which is what I had ever since. Never really used Windows much.

Enter corporate IT. For four weeks now I've been holding my first real
industry job. And I'm locked into a M$ Windows PC. God, I hadn't known
just how much Windows sucks. Everything around here is done with
Access and Excel and lots of ultra-slow VBA glue to hold it more or
less together. Lotus Notes for appointments and email. Well, that's
not going to change, but who helps ME to get MY work done?

Enter Cygwin. Finally, things flow again. What a relief. Thanks, guys.

Well, what cygwin is saving here isn't so much my ass as my mental health.

robert

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Cygwin is saving my ass

2008-03-25 Thread Dave Korn
Robert Latest wrote on 25 March 2008 08:50:

 Enter corporate IT. For four weeks now I've been holding my first real
 industry job. And I'm locked into a M$ Windows PC. God, I hadn't known
 just how much Windows sucks. Everything around here is done with
 Access and Excel and lots of ultra-slow VBA glue to hold it more or
 less together. Lotus Notes for appointments and email. Well, that's
 not going to change, but who helps ME to get MY work done?
 
 Enter Cygwin. Finally, things flow again. What a relief. Thanks, guys.

  :)  I think you speak for quite a lot of people here when you say that.  I
couldn't function in my day-to-day work without a real shell, and grep and
sed, and all the gnu tools.  Cygwin makes windows worth using!


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin is saving my ass

2008-03-25 Thread Reini Urban
2008/3/25, Dave Korn:
 Robert Latest wrote on 25 March 2008 08:50:
   Enter corporate IT. For four weeks now I've been holding my first real
   industry job. And I'm locked into a M$ Windows PC. God, I hadn't known
   just how much Windows sucks. Everything around here is done with
   Access and Excel and lots of ultra-slow VBA glue to hold it more or
   less together. Lotus Notes for appointments and email. Well, that's
   not going to change, but who helps ME to get MY work done?
  
   Enter Cygwin. Finally, things flow again. What a relief. Thanks, guys.


   :)  I think you speak for quite a lot of people here when you say that.  I
  couldn't function in my day-to-day work without a real shell, and grep and
  sed, and all the gnu tools.  Cygwin makes windows worth using!

Best is that I'm in a high-tech, high-profile SW-HW company which is
now doing windows only, and that I'm one of three of 2500 who knows
a shell, emacs, coreutils, ... At least we have 3 other perl people.
Not that the Windows tools are crap. They are GUI-wise by far superior.
You cannot just automate them.
Cygwin saved my deadlines a lot of times so far, even if I have to convert
the prototypes to MSWin32 sometimes.
And the real hairy stuff is still happening on secret Linux, RTLinux or VAX
boxes or even weirder self-written transputer or Shark or StrongArm firmware.
My latest server had to be protoyped on cygwin for two years, until I got
permission for a real linux server.

When we just could have valgrind's memchecker for windows/newlib at least ...

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/