[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] path scripts



I have just finished a couple of short scripts in the process of build
building another tool

I though some of you might find them useful. the only external binary
they use is "sed"

path2nix - convert any paths to lowercase console path (ie C:\MINT => /c/mint )
path2mnx - same as above, but conserve path case (ie C:\MINT =>
/c/MINT ) (minixfs safe)
path2env - takes any ; or , separated path list, and converts it to
space separated (used in FOR IN loops)

all of the above will correctly handle the contents of $PATH in
console ( : separated)
they were designed for paths, but files will work too


Cheers

Paul

Attachment: path2nix.sh
Description: Bourne shell script

Attachment: path2mnx.sh
Description: Bourne shell script

Attachment: path2env.sh
Description: Bourne shell script