Changes

Jump to navigation Jump to search
199 bytes added ,  07:56, 30 January 2020
Line 28: Line 28:     
==$1 in bash functions==
 
==$1 in bash functions==
In bash functions, $1 server as the first function parameter and so on.
+
In bash functions, $1 server as the first bash function parameter and so on.  
 
===Example===
 
===Example===
 +
 +
Another example:
 +
 +
fingerprints() {
 +
        local file="$1"
 +
        while read l; do
 +
                [[ -n $l && ${l###} = $l ]] && ssh-keygen -l -f /dev/stdin <<<$l
 +
        done < $file
 +
}

Navigation menu