/ Published in: Regular Expression
A Cygwin installation can be cloned by copying `/etc/setup/installed.db` and zeroing all version numbers, then running the installation utility. The following `sed` script will set the version of most packages to zero. Some non-standard version numbers will not be affected and have to be zeroed by hand.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
s/-[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9a-zA-Z]\+-[0-9]\+\.tar/-0.0.0.0-0.tar/ s/-[0-9]\+\.[0-9]\+\.[0-9a-zA-Z]\+-[0-9]\+\.tar/-0.0.0-0.tar/ s/-[0-9]\+\.[_+0-9a-zA-Z]\+-[0-9]\+\.tar/-0.0-0.tar/ s/-[0-9a-zA-Z]\+-[0-9]\+\.tar/-0-0.tar/ s/-[0-9]\+\.tar/-0.tar/
URL: http://cygwin.com/ml/cygwin/2006-05/msg00753.html