| |
| |
| |
|
Comments:
<0> how can I loop backwards? eg start at 30 and count backwards? <1> a for loop.
<1> for ((i=30 ; i>0 ; i--)); do ... <0> welll I keep getting: ksh: 0403-057 Syntax error: `(' is not expected. <0> Version M-11/16/88f <1> then you have an ancient ksh, or a not-really-ksh. <0> ^^ <1> and you cannot manage to figure out how to write the same thing without for? <0> aix 5.3 standard issue <0> oh well, I need to cycle through a directory and skim off a day at a time's data <0> the idea was to do a for loop counting backwards, and use find -mtime 30, 29, 28 <0> etc
<0> good scheme? <1> sounds pretty wacky. <0> basically I have a directory with thousands of files in it, which have never been house-kept <0> so I want to go through and file them in directories named by date <1> i=30; while [ $i -gt 0 ]; do ...; i=`expr $i - 1`; done <2> Maybe instead of using "find" x-times ... <2> Take the output of 1 find/ ls, and sort them into dirs by their date. <0> yes, that has a but more elegance about it
Return to
#ksh or Go to some related
logs:
fedora+5+O_LARGEFILE textmate roxor delete some domain mails from postfix queue rtcw et problem freeze dump dreamcast games #perl using perl in ubuntu mga_vid make BCM4318 BeOS Ubuntu error kernel package: 'linux-386'
|
|