how to fix a unix shell script to work on linux

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Josef Lowder
Dátum:  
Címzett: plug-discuss
Tárgy: how to fix a unix shell script to work on linux
.
The following script used to work on my old unix system,
to remove blank lines from a text file. It no longer works
on linux, but now it gives an error message (below):

sed '/[!-~]/!d' $1


This is the error message:

sed: -e expression #1, char 7: Invalid range end

How can I fix this?


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss