On 24-Jan-2009, at 12:25, Jared ''Danger'' Earle wrote:
> On 24 Jan 2009, at 19:16, LuKreme wrote:
>> find . -type f -mmin +`olderthan $HOME 30` -exec (some command) {} \;
>
> find . -type f -mmin +`olderthan $HOME 30` | awk '{print "echo the
> file is \""$0"\"\nls -al \""$0"\""}' | sh
Hmm, that's slightly fugly... but it'll work.
Or I can just live with the fact that (some command) doesn't give me a
filename output, which seems more likely.
On 24-Jan-2009, at 14:41, Milo Velimirović wrote:
> Why not just
>
> find . -type f -mmin +`olderthan $HOME 30` -print -exec (some
> command) {} \;
Because I asked:
> the command I am running does not output the name of the file its
> working on because it is assuming that you are passing one file at a
> time (which I am) and that you are clever enough to know which file
> you just passed (which I'm not).
>
> there doesn't seem to be a way to -exec two commands (like echo {}
> \; (some command) {} \;)
--
Passion is the pill you can swallow forever Taking them one by one
One by One --Agents of Good Roots "Come On"
_______________________________________________
OSX-Nutters mailing list | [email protected]
http://lists.tit-wank.com/mailman/listinfo/osx-nutters
List hosted at http://cat5.org/