FunkeMT logo FunkeMT

shebang

#!/bin/bash

stdout to var

# whole output
var="$(ls -al)"

# last line
var="$(ls -al | tail -1)"

Script parameters