[Kstars-devel] shell script for expanding tabs

James Bowlin bowlin at mindspring.com
Sat Sep 22 02:07:55 CEST 2007


Here is a shell script that uses the GNU expand command.  It will
effectively edit the files in place.  Uncomment the rm line to have
it automatically delete the backup files.

#!/bin/bash

for file in $@
do
	backup="$file.bak"
	mv $file $backup
	expand -t 4 $backup > $file
        #rm $backup
done


-- 
Peace, James



More information about the Kstars-devel mailing list