File: dosname.pl

package info (click to toggle)
openvpn 2.1.3-2%2Bsqueeze2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,644 kB
  • ctags: 8,676
  • sloc: ansic: 58,636; sh: 5,290; python: 501; makefile: 312; 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";
}