writing a script

July 14, 2009 at 09:46:35
Specs: Linux i686
How do I write a script that reads files by extension?


See More: writing a script

Report •


#1
July 14, 2009 at 21:26:46
Start here: print out each file, one per line, with a txt or a ss extension:

#!/bin/bash

for i in *.txt *.ss
do
   printf "%s\n"  "$i"
done


Report •
Related Solutions


Ask Question