Unix cp argument list too long

后端 未结 6 940
情歌与酒
情歌与酒 2021-02-19 04:37

I am using AIX.

When I try to copy all the file in a folder to another folder with the following command:

cp ./00012524/*.PDF ./dummy01

The

6条回答
  •  感动是毒
    2021-02-19 04:54

    You should be able use a for loop, e.g.

    for f in $(ls ./00012524/*.pdf)
    do
        cp $f ./dummy01
    done
    

    I have no way of testing this, but it should work in theory.

提交回复
热议问题