Add touch function to create new empty text file

This commit is contained in:
Kenneth Benzie 2024-12-13 21:57:16 +00:00
parent 5ec851fe11
commit fc57d48814

View File

@ -37,3 +37,11 @@ function rm {
Invoke-Expression -Command "$Command $Path"
}
}
# Define touch to create a new empty text file
function touch {
Param (
[string]$Path
)
New-Item -Type File $Path
}