Simple DOS command to ignore data line by line after the last backslash
2 answers
I would assume that the DOS package is not the right tool for the job because it does not have built-in string manipulation facilities as it would need.
If you have Perl available, you can do something like this:
#!/usr/bin/perl -w
while (<>) {
s/\\[^\\]*$//; # this removes a the last backslash and anything after it
mkdir $_;
}
+4
source to share