The 201712 {01 .. 31}/pdf file under the simulated test file contains 100 PDF files.

Source: Internet
Author: User
1. Simulate the 201712 {01 .. 31}/PDF files under the test file. There are 100 PDF files under these folders.
Note that the gray part has backquotes.
[[Email protected] ~] # Cat B. Sh
#! /Bin/bash
CD/root/Test & mkdir-P 201712 {01 .. 31}/PDF
Wj = Find/root/moban-type F
For f in Find/root/test/201712 {01 .. 31}/PDF-type D
Do
CP $ WJ $ F &>/dev/null
Done
[[Email protected] ~] #
2. Write the for loop directly in the command line
[[Email protected] moban] # For f in {002. 100}; do CP ph0000 001. pdf ph0000Define fenders; done

The 201712 {01 .. 31}/pdf file under the simulated test file contains 100 PDF files.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.