LinuxMeister

number files

# This script will copy or rename all files in a directory with
#   a prefix of 01 through 0(count).  Useful for renaming MP3
#   files to play in ASCII sort order.  IF count exceeds 99 add a 0,
#   if count exceeds 999 add to 0's.

################################################
###   without comments in script
################################################
#!/bin/bash
#
#  april 2004 - john meister
#  numbers & cp's files w/prefix 0#
#    if count exceeds 99 add a 0 to cp line
#    change cp to mv if original file not needed
################################################
count="1"
for a in `ls`
     do
     cp $a "0"$count"_"$a
     count="$((count+1))"
done
#
################################################
###   with comments in script
################################################
#!/bin/bash
#
#  april 2004 - john meister
#  numbers & cp's files w/prefix 0#
#    if count exceeds 99 add a 0 to cp line
#    change cp to mv if original file not needed
#  establish base count:
count="1"
#  set loop variable "a" to value from ls command:
for a in `ls`
#  while values exist in ls:
     do
#  copy each line from ls, i.e. filename,  to 0#_filename
     cp $a "0"$count"_"$a
#  increment counter by one
     count="$((count+1))"
#  if any values exist in ls repeat loop, when finished exit loop
done
################################################
superdawg
SJ 1962 - 1991 -- tech / repair tips
SJ rigs - photos
the 1996 snowstorm

john's '83 Long bed J10

since September 24, 1998.
 
These copyrighted pictures 
are available for purchase,
contact john at this domain.




2013 2012 2011 2010
2009 2008 2007 2006
2005 2004 2003 2002
slides 2001 98-00 best

books, toys, parts, etc.

for sale here, on CL, or ebay


shop here, support this site:
SHOP from johnmeister.com/jeep/sj - THANK YOU for supporting johnmeister.com/jeep/sj, in Association with Amazon.com



WJ 1999-2004
WJ rigs

XJ 1984-2001
XJ tech - repair tips
XJ rigs - photos

Search Tool

Google
SEARCH TOOL:
- johnmeister.com/jeep/sj
- fotomeister.us
- johnmeister.com
- johnmeister.com/tech
ENTIRE WEB


WILLYS
  /  
JEEPS

AMSOIL

call 1-800-956-5695,
CUSTOMER NUMBER is 283461
FSJ Filters
XJ Filters

Nuts-Bolts-Wrench specs

DIESELS
Jetta TDI's
Mercedes Diesel info

calculate costs/mile

JohnMeister.com
Click for Snohomish, Washington Forecast
SR9 cam
John's Diesel projects:

Jetta TDI, KJ CRD and J10s


john's vehicles
BIBLE info
Computer Science
LINUX

JohnMeister.com
tmp files
Bible Summary draft version
email john at johnmeister.com/jeep/sj


Trust Jesus.
Jesus Christ is Lord.

summary: Passion Week prophecies - © 2010

to buy AMSOIL
please use
customer # 283461

johnmeister.com/jeep/sj: in Association with Amazon.com
support johnmeister.com/jeep/sj
shop amazon
use this link,
THANK YOU!

It is about FREEDOM!
SouthEast Asia Missions

summary page: Bible - © 2011