## ไบ‹่ฑก ไปฅไธ‹ใฎ็Šถๆ…‹ใง ```console ๎—ฟ . โ””โ”€โ”€ ๎—ฟ from โ”œโ”€โ”€ ๏…› .dotfile โ””โ”€โ”€ ๏…œ plain.txt ``` `cp from/* .` ใ‚’ๅฎŸ่กŒใ™ใ‚‹ใจไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚‹ใ€‚ ```console ๎—ฟ . โ”œโ”€โ”€ ๎—ฟ from โ”‚ โ”œโ”€โ”€ ๏…› .dotfile โ”‚ โ””โ”€โ”€ ๏…œ plain.txt โ””โ”€โ”€ ๏…œ plain.txt ``` ๆœŸๅพ…ๅ€คใฏไปฅไธ‹ใฎใ‚ˆใ†ใซ `.dotfile` ใŒๅซใพใ‚Œใ‚‹ใ“ใจใ€‚ ```console ๎—ฟ . โ”œโ”€โ”€ ๏…› .dotfile โ”œโ”€โ”€ ๎—ฟ from โ”‚ โ”œโ”€โ”€ ๏…› .dotfile โ”‚ โ””โ”€โ”€ ๏…œ plain.txt โ””โ”€โ”€ ๏…œ plain.txt ``` ## ๅŽŸๅ›  [[Bash]]ใฎ `*` ใฏ้š ใ—ใƒ•ใ‚กใ‚คใƒซ(ใƒ‰ใƒƒใƒˆใƒ•ใ‚กใ‚คใƒซ)ใ‚’ๅฏพ่ฑกใซๅซใ‚ใชใ„ใ‹ใ‚‰ใ€‚ ## ่งฃๆฑบๆ–นๆณ• [[shopt]]ใง[[dotglob]]ใ‚’ๆŒ‡ๅฎšใ™ใ‚‹ใ€‚ ```console bash -c "shopt -s dotglob; cp from/* ." ``` > [!attention] > ใ‚ฟใƒผใƒŸใƒŠใƒซใ‚ทใ‚งใƒซใฎ่จญๅฎšใ‚’ๅค‰ๆ›ดใ—ใŸใใชใ„ใŸใ‚ `bash -c` ใ‚ณใƒžใƒณใƒ‰ใ‚’ไฝฟใฃใฆใ„ใ‚‹ใ€‚่จญๅฎšๅค‰ๆ›ดใ—ใฆๅ•้กŒใชใ„ๅ ดๅˆใ‚„ใ€[[Bash]]ใ‚นใ‚ฏใƒชใƒ—ใƒˆๅ†…ใงใ‚ใ‚Œใฐ็›ดๆŽฅ `shopt` ใ‚’ๅฎŸ่กŒใ—ใฆOKใ€‚ > [!caution] > [[Bash]]ไปฅๅค–ใงใฏๅˆฉ็”จใงใใชใ„ใ€‚