[Lunar-commits] CVS: theedge/sbin lunar,1.30,1.31

Auke Kok sofar at lunar-linux.org
Tue Oct 12 12:58:42 UTC 2004


Update of /var/cvs/lunar/theedge/sbin
In directory espresso.foo-projects.org:/tmp/cvs-serv25802

Modified Files:
	lunar 
Log Message:
Thanks to hardkrash and ranitha


Index: lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lunar,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- lunar	12 Oct 2004 10:09:17 -0000	1.30
+++ lunar	12 Oct 2004 12:58:39 -0000	1.31
@@ -149,11 +149,10 @@
 
 
 file_list() {
-  LIST=`ls  $1`
-  for  LINE  in  $LIST;  do
-    echo  $LINE 
-    echo  `file  -b  $1/$LINE  |  cut  -d ' ' -f1`
-  done
+  pushd $1 > /dev/null
+  file -N -F ' ' * | cut -d ' ' -f1,3 --output-delimiter='
+	'
+  popd > /dev/null
 }
 
 



More information about the Lunar-commits mailing list