Skip to content

Commit 1e5d1c0

Browse files
author
Ram Iyer
committedNov 28, 2018
Fix 10.06
1 parent 3d791a5 commit 1e5d1c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ch10/06-New-FilesAndDirectories.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Set-Location (Join-Path $HOME random)
22

3-
Join-Path dir-01, dir-02, dir-03, dir-04 -ChildPath demo.txt | ForEach-Object { New-Item $PSItem -ItemType File -WhatIf }
3+
Join-Path dir-01, dir-02, dir-03, dir-04 -ChildPath demo.txt | ForEach-Object { New-Item $PSItem -ItemType File }
44

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 }
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 }
66

77
Rename-Item screenshot-001.png myscreenshot.png
88
# Verbose version: Rename-Item -Path screenshot-001.png -NewName myscreenshot.png

0 commit comments

Comments
 (0)
Please sign in to comment.