[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: find question (and xargs)

> I have come at the following but it doesn't work (and can't figger 
> out why not from the manpages).
> find / -size +459976c -noleaf -type f -name '*.deb'|\
> xargs -n 1 dpkg-split -s {} && rm {}
> I was thinking that {} would be replaced by the filename but that's
> not the case. Anyone know how to solve this?

The {} substitution happens only in a -exec argument; 
you're using it after the find command.

Try find / -size +459976c -noleaf -type f -name '*.deb' -exec \
  dpkg-split -s {} && rm {}


Reply to: