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 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/results/search/path/name and not > /tmp/results/name. > What I am doing wrong? How about trying something along these lines: for i in (find ~/sync/nvc/ -iname "*giraffe*") printf 'full path=%s\nbasename=%s\n' $i (basename $i) end ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users