Listing 7: transform--used by sed in the file list generation script to manipulate dates
s/rwx/7/g
s/r-x/5/g
s/rw-/6/g
s/-wx/3/g
s/---/0/g
s/r--/4/g
s/-w-/2/g
s/--x/1/g
s/Jan/1/g
s/Feb/2/g
s/Mar/3/g
s/Apr/4/g
s/May/5/g
s/Jun/6/g
s/Jul/7/g
s/Aug/8/g
s/Sep/9/g
s/Oct/10/g
s/Nov/11/g
s/Dec/12/g
s/[0-9][0-9]:[0-9][0-9]/1993/g
|