0. Internet 1. Text 2. Graphics 3. System 4. File 5. Misc 6. Palm 7. OS X |
Don't forget Windows shell scripting! # In response to yesterday's post on sed, Armin Hanisch kindly wrote in to remind us that Windows shell scripts can be handy as well. He included the following shell script version of uniq, which he reports to work under NT4 and higher: @echo off if !%1 == ! goto noparm if not exist %1 goto notfound setlocal set line=@@@@@ for /F "usebackq tokens=*" %%f in (`sort %1`) do call :procline "%%f" endlocal goto :eof :procline if !%line% == !%~1 goto :eof set line=%~1 echo %~1 goto :eof :noparm echo Usage: %~f0 [datei] echo No file specified, terminating. goto :eof :notfound echo File %1 not found. goto :eof /windows | Nov 14, 2005 |
Categories
Blosxom Archive
2012: 5 4 3 2 1
2011: 12 11 10 9 8 7 6 5 4 3 2 1 2010: 12 11 10 9 8 7 6 5 4 3 2 1 2009: 12 11 10 9 8 7 6 5 4 3 2 1 2008: 12 11 10 9 8 7 6 5 4 3 2 1 2007: 12 11 10 9 8 7 6 5 4 3 2 1 2006: 12 11 10 9 8 7 6 5 4 3 2 1 2005: 12 11 10 Blogger Archive
Ezine Archive
|