Using xargs command and two move commands following it
问题 OS: aix shell: bsh Hi, ppl I have two types of files, one type ends with .pdf.marker and the other ends with .pdf There should be always a pair with the same name (only the extensions are different). When I move a .pdf.marker file I must also move its corresponding .pdf file. I tried something like this: find ${INPUT_LOCATION}/ -name "*.pdf.marker" | xargs -I file mv file ${OUTPUT_LOCATION}/. mv $(basename file .marker) ${OUTPUT_LOCATION}/. Then I read this: xargs with multiple commands as