N
no.top.post
In 199x when my ISP said that the Win3.1 which I'd bought
was no longer good enough and I'd have to buy W95, I said
screw-you and switched to linux.
Now I [thought I] had to buy a Win7netbook to connect to a
wireless-modem, and I see it's got 'power shell' which might be
interesting to experiment with. I'm investigating concatenative
style.
Can PS do jobs like:
1. list all files in dir-tree D
2 which are less than 23 days old
3. which contain string1
4. and string2
5. and string3 ??
The nice thing about concatenative [5 stages], is that you
can develop and test each stage independantly.
Linux finds that important file which I read & saved after
I got back from vac.,
which mentioned "oeing" and "efault" and "udjment"
by: `FindDays3Strings 23 oeing efault udjment`
which calls the follwing `FindDays3Strings` script:
find . -type f -ctime -$1 -print0 | \
xargs -0 grep -l $2 | tr "\n" "\0" | \
xargs -0 grep -l $3 | tr "\n" "\0" | \
xargs -0 grep -l $4
or a simpler one: find files < 7 days-old containing "key-word":
find ./ -ctime -7 -exec grep -l "key-word" {} \;
From what I read about 'foreach' it seems that PS can handle the
concatenative style?
== TIA.
was no longer good enough and I'd have to buy W95, I said
screw-you and switched to linux.
Now I [thought I] had to buy a Win7netbook to connect to a
wireless-modem, and I see it's got 'power shell' which might be
interesting to experiment with. I'm investigating concatenative
style.
Can PS do jobs like:
1. list all files in dir-tree D
2 which are less than 23 days old
3. which contain string1
4. and string2
5. and string3 ??
The nice thing about concatenative [5 stages], is that you
can develop and test each stage independantly.
Linux finds that important file which I read & saved after
I got back from vac.,
which mentioned "oeing" and "efault" and "udjment"
by: `FindDays3Strings 23 oeing efault udjment`
which calls the follwing `FindDays3Strings` script:
find . -type f -ctime -$1 -print0 | \
xargs -0 grep -l $2 | tr "\n" "\0" | \
xargs -0 grep -l $3 | tr "\n" "\0" | \
xargs -0 grep -l $4
or a simpler one: find files < 7 days-old containing "key-word":
find ./ -ctime -7 -exec grep -l "key-word" {} \;
From what I read about 'foreach' it seems that PS can handle the
concatenative style?
== TIA.