simple wrapper script that appends date to file name#!/bin/sh # # wrapper script, copies files before editing and appends date to file # cp "$@" "$@.`date +%y%b%d`" vi "$@" # ------------------------------------------------ # --> date +%y%b%d # 17Jan28 # ------------------------------------------------ # --> date +%Y%b%d # 2017Jan28 # ------------------------------------------------ # --> date +%Y%m%d # 20170128 # ------------------------------------------------ # --> date +%Y-%m%d # 2017-0128 # ------------------------------------------------ # --> date +%Y-%m-%d # 2017-01-28 # ------------------------------------------------ |
The Art of Linux System Administration published by O'Reilly Media Study Guide for the LPIC-2 Certification Exams |
![]() Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |