File: dosname.pl

package info (click to toggle)
openvpn 2.1~rc11-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,556 kB
  • ctags: 5,488
  • sloc: ansic: 54,327; sh: 5,076; makefile: 294; perl: 234
file content (9 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl

# convert a unix filename to a DOS filename

while ($unixname = shift(@ARGV)) {
  $unixname =~ s#^/([a-zA-Z])(/|$)#$1:\\#g;
  $unixname =~ s#/#\\#g;
  print "$unixname\n";
}