The command I'm trying to run:
mdb-tables davidoff.mdb | xargs -I {} mdb-export davidoff.mdb {} > {}.csv
mdb-export takes two arguments, I'm trying to pipe the second one. And then I want each one to be written to a file.
This won't work. Even when I remove the > {}.csv there is still an error:
Error: Table {} does not exist in this database.
Shell is zsh
example output from first part:
% mdb-tables davidoff.mdb
anatomypiclink bugs bugseverity bugtype classifications Diseases docaccess docaccesstype docassignments docclassifications docdetails docnotes docpicturelink docqa docs doctype keypicturelink keywords links logons mediatype navdoclinks navimagelinks navstructures organs Paste Errors pictureclassifications pictures picturetype qub3_queries_que qub3_relations_rel qub3_settings_set quotes references sequencelinks sequences subDocType videos dictionarytable doclinks docstatus media docs_ExportErrors
As a test case, I was able to make this work:
printf "1\n2\n3\n" | xargs -I touch {}
Why is it that I cannot use replstr as a second argument?