Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:

Fedora Tips

by Krishnan Subramanian

2004-01-08 Fedora Tips #5:
Sometimes there is a need to temporarily backup files and then restore them. Here is an example of one of the ways to do it:

for file in *.conf ; do cp $file $file.orig ; done
for file in *.orig ; do cp $file `basename $file .orig` ; done
- submitted by Leonid Mamtchenkov