bash Script

From GM-RKB
Jump to navigation Jump to search

A bash Script is a Shell Script Program composed of bash Commands.



References

2015

#!/bin/bash
name=$1
log_file="Logone.txt"
if -n "$name"; then
   echo "$1=$( date +%s )" >> ${log_file}
else
   echo "argument error"
fi