#!/bin/sh
echo "Generating Map List"
ls *.bsp | cut -d. -f1 > maplist.txt
cp maplist.txt mapcycle.txt
echo "Generating Map Successful"
Речь идёт о Linux,а не о Winodws.
Как то так.PHP:#!/bin/sh echo "Generating Map List" ls de_*.bsp | cut -d. -f1 > maplist.txt ls cs_*.bsp | cut -d. -f1 > maplist.txt cp maplist.txt mapcycle.txt echo "Generating Map Successful"
#!/bin/sh
echo "Generating Map List"
ls [B]{de,cs}*.bsp[/B] | cut -d. -f1 > maplist.txt
cp maplist.txt mapcycle.txt
echo "Generating Map Successful"
#!/bin/sh
echo "Generating Map List"
ls de_*.bsp | cut -d. -f1 > maplist.txt
ls cs_*.bsp | cut -d. -f1 >> maplist.txt
cp maplist.txt mapcycle.txt
echo "Generating Map Successful"
я чуть по другому :)