[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kfind does not retrieve text from kword (all koffice ?) files
From:       Jan Holesovsky <kendy () artax ! karlin ! mff ! cuni ! cz>
Date:       2003-01-05 11:47:58
[Download RAW message or body]

Hello,

On Tue, 31 Dec 2002, Ferdinand Gassauer wrote:

> d) the "^" is not a good solution, but I do not know better

use -exec feature of find and you will have no problem with spaces in
filenames. Something like:

#! /bin/bash

export UNZIPDIR=~/unzip_tmp

find . -name "*.kwd" -exec bash -c '
  rm -fr $UNZIPDIR/*
  unzip -q -d $UNZIPDIR "{}" 2>/dev/null

  ... etc ...

' \;

Kendy

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic