--> cat filedate.sh

#!/bin/bash
# jm 30 Jan 2015 - filedate.sh
# 
#  use this to name files in a directory according to their date.
#
# echo "ls -l | grep -v ^d  | sort | awk '{print "mv "$9" "$8"_"$6"_"$7"_"$9}' | \ 
#  sed -e s'$..:..$2014$g' | sed -e s'$2015_Dec$2014_Dec$g' | sed -e s'2014_Jan$CHECK_Jan$g'  > cleanup.files.sh.txt"
#    then edit the file to make sure it does what you want, then sh ./cleanup.files.sh.txt
#
# 
# echo "ls -l   | grep -v ^d  | sort | awk '{print "mv "$9" "$8"_"$6"_"$7"_"$9}' | \ 
#              sed -e s'$..:..$2014$g' | sed -e s'$2015_Dec$2014_Dec$g' | sed -e s'2014_Jan$CHECK_Jan$g'  > cleanup.files.sh.txt"
#
#######################################################################################################
# long listing, grep -v for directories, sort, then print out the command to move the file name to one with its date, \
#   use sed for files less than a year old, redirecto to a file to edit and execute
#######################################################################################################
ls -l | grep -v ^d  | sort | awk '{print "mv "$9" "$8"_"$6"_"$7"_"$9}' | sed -e s'$..:..$2014$g' \
      | sed -e s'$2015_Dec$2014_Dec$g' > cleanup.files.sh.txt
#######################################################################################################
#
echo "edit cleanup.files.sh.txt using vi, then execute by typing sh ./cleanup.files.sh.txt
#######################################################################################################


ebook:
Full Size
Jeep Buyer's
Guide
ebook:
Practical Suggestions
for Microsoft
Windows
Linux Tackles Microsoft
12 hour Video Course by john:
The Art of Linux System Administration
published by O'Reilly Media
Study Guide for the LPIC-2 Certification Exams
search for:
on the internet, or:
JohnMeister.com-fotos
LinuxMeister-Linux
BibleTech-
Bible overview


An overview of Biblical history:
"Promises and Prophets"

Wagoneers

FULL SIZE JEEPS

JeepMeister
"Jeep is America's
only real sports car."
-Enzo Ferrari


MeisterTech
Diesels +

One Page Overview of Linux Commands

click for an image of the 5 essential Linux commands

An Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL
at Midway Auto on SR9 in Snohomish,
or at Northland Diesel in Bellingham, WA


SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986

Jeepsters

MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)