#!/bin/bash #rediredct stdout and err like this: # >file 2>&1 ecyoh adgfadfhgdf echo above is a mistake