I am using mac os. I am in a situation that I need to copy the only first file private key which ends with _sk
to another directory. Please any suggestion would help me.
You could loop over the files ending with _sk
and break the loop after copying the first file. If that's really the "first file" you wanted to copy is another question.
for i in /path/to/source/*_sk; do cp "$i" /path/to/destination/; break; done
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.