touch for powershell
Shell
Function Touch-File
{
$file = $args[0]
if($file -eq $null) {
throw "No filename supplied"
}
if(Test-Path $file)
{
(Get-ChildItem $file).LastWriteTime = Get-Date
}
else
{
echo $null > $file
}
}
Also in Shell:
- Title
- git reset
- Category
- Shell
- Title
- ngbmodal angular 9 yarn install
- Category
- Shell
- Title
- ubuntu apt-get update without input
- Category
- Shell
- Title
- install google chrome on fedira
- Category
- Shell
- Title
- run mysql xampp shell
- Category
- Shell
- Title
- cmd add to path
- Category
- Shell
- Title
- how to create gitignore
- Category
- Shell
- Title
- linux see drivers
- Category
- Shell
- Title
- git remove remote file keep local
- Category
- Shell
- Title
- reset certain file git
- Category
- Shell
- Title
- how to bash into docker container
- Category
- Shell
- Title
- bash copy
- Category
- Shell
- Title
- pytesseract
- Category
- Shell
- Title
- linux change hostname
- Category
- Shell
- Title
- git flow feature
- Category
- Shell
- Title
- how to update vs code in linux
- Category
- Shell
- Title
- how to delete a package in ubuntu
- Category
- Shell
- Title
- powershell get date
- Category
- Shell
- Title
- bash split variable by delimiter
- Category
- Shell
- Title
- add-apt-repository
- Category
- Shell
- Title
- apt uninstall
- Category
- Shell
- Title
- git replace local branch with remote
- Category
- Shell
- Title
- which shell query displays all citizens with an age greater than or equal to 21
- Category
- Shell
- Title
- undo git pull origin master into feature branch
- Category
- Shell
- Title
- netstat column headers
- Category
- Shell
- Title
- bash compare two strings
- Category
- Shell
- Title
- brew services start mongodb
- Category
- Shell
- Title
- yarn add global
- Category
- Shell
- Title
- uninstall mariadb server and client in ubuntu 18.4
- Category
- Shell
- Title
- mount: cdrom: failed to setup loop device for
- Category
- Shell
- Title
- chmode ubuntu
- Category
- Shell
- Title
- how to revert back to previous commit in git
- Category
- Shell
- Title
- bash remove random files from directory
- Category
- Shell
- Title
- copy folder from s3 to local
- Category
- Shell
- Title
- git basic command tutorial
- Category
- Shell
- Title
- how to tar linux
- Category
- Shell
- Title
- Realtek RTL8812BU Network WiFi Adapter kali linux driver
- Category
- Shell
- Title
- command git message
- Category
- Shell
- Title
- bash find files or operator
- Category
- Shell
- Title
- npm install express-handlebars
- Category
- Shell
- Title
- how to check if pip is installed
- Category
- Shell
- Title
- bash display items in array
- Category
- Shell
- Title
- whats the internet
- Category
- Shell
- Title
- install phpmyadmin ubuntu 18.04
- Category
- Shell
- Title
- ngb-tabset install
- Category
- Shell
- Title
- macos install yarn
- Category
- Shell
- Title
- how to run shell script
- Category
- Shell
- Title
- how to save any changes in vi editor
- Category
- Shell
- Title
- sudoers nopasswd
- Category
- Shell
- Title
- docker remove image
- Category
- Shell
- Title
- ubuntu trash can won't empty
- Category
- Shell
- Title
- vagrant ubuntu 16.04
- Category
- Shell
- Title
- rustup
- Category
- Shell
- Title
- check ram memory usage linux
- Category
- Shell
- Title
- how to open file in linux
- Category
- Shell
- Title
- git ignore node_modules
- Category
- Shell
- Title
- command line how to find all files that have a string
- Category
- Shell
- Title
- kill process on port
- Category
- Shell
- Title
- clear untracked files git
- Category
- Shell
- Title
- git remove cached directory
- Category
- Shell
- Title
- remove directory in cmd
- Category
- Shell
- Title
- git force pull
- Category
- Shell
- Title
- turn redis off
- Category
- Shell
- Title
- pip install crispy_forms
- Category
- Shell
- Title
- repro blender ubuntu 18.04
- Category
- Shell
- Title
- linux compress a pdf
- Category
- Shell
- Title
- git add
- Category
- Shell
- Title
- git delete local commit
- Category
- Shell
- Title
- install ext-soap
- Category
- Shell
- Title
- ubuntu list running services
- Category
- Shell
- Title
- install python3
- Category
- Shell
- Title
- how to kill suspended jobs
- Category
- Shell
- Title
- ubuntu virtual machine
- Category
- Shell
- Title
- git clone repo with name
- Category
- Shell
- Title
- grep and
- Category
- Shell
- Title
- git undo pushed commit
- Category
- Shell
- Title
- angular install ngx-bootstrap
- Category
- Shell
- Title
- htaccess route to index.php
- Category
- Shell
- Title
- asdf node fingerprint
- Category
- Shell
- Title
- linux time wrong
- Category
- Shell
- Title
- npm list global packages
- Category
- Shell
- Title
- ubuntu fractional scaling
- Category
- Shell
- Title
- Error: ENOSPC: System limit for number of file watchers reached
- Category
- Shell
- Title
- using regex in bash conditional statement
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- git clone submodule
- Category
- Shell
- Title
- count occurrences of word in file linux
- Category
- Shell
- Title
- git hooks
- Category
- Shell
- Title
- fleet management software github
- Category
- Shell
- Title
- get random number shell script
- Category
- Shell
- Title
- ufw allow postgresql
- Category
- Shell
- Title
- pip command not found macos
- Category
- Shell
- Title
- git delete all branches except master
- Category
- Shell
- Title
- git remove all files in gitignore
- Category
- Shell
- Title
- composer install ubuntu
- Category
- Shell
- Title
- mac brew: command not found
- Category
- Shell
- Title
- update flutter
- Category
- Shell
- Title
- rec: command not found
- Category
- Shell
- Title
- how to stop a port in macos
- Category
- Shell
- Title
- install expo
- Category
- Shell