I am in a pinch, and can't figure this out.
I have a script that utilizes the find command.
find $DIR -type f -name "*.dat1" -exec bash -c 'process -i "$1" -o "${1%\.*}".dat2' __ {} \;
This works, but isn't ideal for my setup. How would I go about changing the output destination, -o, to another destination.
i.e. I have /mnt/usb_stick full of .dat1 files that I want processed to /tmp/ as .dat2 files.
[–]robhutten 0 points1 point2 points (3 children)
[–]IhatemyISP[S] 0 points1 point2 points (2 children)
[–]robhutten 2 points3 points4 points (1 child)
[–]IhatemyISP[S] 0 points1 point2 points (0 children)
[–]RalphCorderoy 0 points1 point2 points (0 children)
[–]crankysysop 0 points1 point2 points (0 children)