Re: [Fish-users] find fish and basename

2017-01-31 Thread Kurtis Rader
On Tue, Jan 31, 2017 at 3:59 AM, Henning Reich wrote: > Thanks for all the answers, I also found a solution, that worked for > me...just not using fish ;-) > find / -iname "*.pcap" -exec sh -c 'touch /tmp/$(basename {})' \; That will work with fish as well with one small syntax change: find

Re: [Fish-users] find fish and basename

2017-01-30 Thread Kurtis Rader
On Mon, Jan 30, 2017 at 5:43 AM, Henning Reich wrote: > > I want to use the results of 'find' and also for output naming. > My first try/idea looks like > > find /search/path -iname "*.pcap" -exec /path/to/tool -para1 "{}" > -para2 /tmp/results(basename "{}") > > But this will resolve para2 with

Re: [Fish-users] find fish and basename

2017-01-30 Thread Greg Reagle
On Mon, Jan 30, 2017, at 08:43, Henning Reich wrote: > I'm to stupid to get my commandline working as expected. Are you feeling frustrated that you've put a lot of time into trying to get this to work without success? > I want to use the results of 'find' and also for output naming. > My first tr

[Fish-users] find fish and basename

2017-01-30 Thread Henning Reich
, I'm to stupid to get my commandline working as expected. I want to use the results of 'find' and also for output naming. My first try/idea looks like find /search/path -iname "*.pcap" -exec /path/to/tool -para1 "{}" -para2 /tmp/results(basename "{}") But this will resolve para2 with /tmp/res