try something like

bash# for i in *; do cp $i $.bak; done

sherwin

[EMAIL PROTECTED] writes:
>Dear friends:
>
>Let's say I have the following files:
>
>File1
>File2
>File3
>etc.
>
>Now, normally to make a backup copy of each, I would do the following:
>
>cp File1 File1.bk
>cp File2 File2.bk
>cp File3 file3.bk
>etc.
>
>My question: Is there a SINGLE command that would allow me to create
>backups 
>for hundreds of files within a directory at one blow, that is, so as to 
>create the series of backups above:
>
>File1 File1.bk
>File2 File2.bk
>File3 file3.bk
>etc.
>
>In other words, is there a command that would allow me to do this all at
>once 
>from within a directory rather than manually copy each file one at a time?
>
>Thanks so very much.



Reply via email to