Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash alias function that accepts arguments

alias example='f() { echo Your arg was $1. };f'
Comment

bash alias with parameter

myfunction() {
    #do things with parameters like $1 such as
    mv "$1" "$1.bak"
    cp "$2" "$1"
}
Comment

PREVIOUS NEXT
Code Example
Shell :: echo -e flag 
Shell :: powershell delete folder contents 
Shell :: multiply command bash 
Shell :: stop all docker containers 
Shell :: shell profile 
Shell :: git ssh key linux 
Shell :: install i18next-browser-languagedetector 
Shell :: powershell script path 
Shell :: pip install package to specific directory 
Shell :: git configure default editor 
Shell :: laravel download 
Shell :: remove user linux 
Shell :: windows terminal starting directory 
Shell :: xamp start ubuntu 
Shell :: how do i clone a specific branch in git 
Shell :: ionic capacitor v3 add android 
Shell :: linux get ip by domain 
Shell :: install rancher 
Shell :: set zsh as default shell 
Shell :: what .net framework do i have installed 
Shell :: linux port 
Shell :: create user kali linux 
Shell :: brew install golang-migrate 
Shell :: linux file path 
Shell :: docker execute command in container 
Shell :: bash check for substring in string 
Shell :: ssh key pair github 
Shell :: zsh fzf plugin 
Shell :: flutter add dependency command line 
Shell :: powershell writeline 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =