Answers for "bash shell function example"

2

shell function example

#!/bin/sh

# Define your function here
Hello () {
   echo "Hello World $1 $2"
}

# Invoke your function
Hello Zara Ali
Posted by: Guest on April-04-2021
-2

function in bash

killport(){ 

sudo kill -9 $(sudo fuser -n tcp $1 2> /dev/null);

}

Now put this function in your bash configuration file, eg ~/.bashrc and then run:

source  ~/.bashrc
Posted by: Guest on June-12-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language