Parse output of "net use", but language varies - force language for "net use"?
Takashi Yano
takashi.yano@nifty.ne.jp
Sat Jul 20 23:54:57 GMT 2024
On Sat, 20 Jul 2024 15:44:17 +0200
Mark Liam Brown wrote:
> I am trying to parse the output of "net use" in a bash script, but hit
> a roadblock:
> The output of "net use" changes with the language of the system
> (English, Danish, French, ...), so parsing becomes nearly impossible
>
> How can I force the language used by "net use" to English, even if the
> system default language is Danish or French?
Did you try
chcp.com 437
or something like that?
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin
mailing list