We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d791a5 commit 1e5d1c0Copy full SHA for 1e5d1c0
ch10/06-New-FilesAndDirectories.ps1
@@ -1,8 +1,8 @@
1
Set-Location (Join-Path $HOME random)
2
3
-Join-Path dir-01, dir-02, dir-03, dir-04 -ChildPath demo.txt | ForEach-Object { New-Item $PSItem -ItemType File -WhatIf }
+Join-Path dir-01, dir-02, dir-03, dir-04 -ChildPath demo.txt | ForEach-Object { New-Item $PSItem -ItemType File }
4
5
-'random-text.txt', 'himalayas.jpg', 'crunched-numbers.csv', 'screenshot-001.png', 'screenshot-002.png', 'screenshot-003.png', 'demo.doc', 'my-plugin.rb' | ForEach-Object { New-Item (Join-Path dir-01 -ChildPath $PSItem) -ItemType File -WhatIf }
+'random-text.txt', 'himalayas.jpg', 'crunched-numbers.csv', 'screenshot-001.png', 'screenshot-002.png', 'screenshot-003.png', 'demo.doc', 'my-plugin.rb' | ForEach-Object { New-Item (Join-Path dir-01 -ChildPath $PSItem) -ItemType File }
6
7
Rename-Item screenshot-001.png myscreenshot.png
8
# Verbose version: Rename-Item -Path screenshot-001.png -NewName myscreenshot.png
0 commit comments