GnuWin provides ports of tools with a GNU or similar open source license, to modern MS-Windows (Microsoft Windows 2000 / XP / 2003 / Vista / 2008 / 7)
Questions tagged [gnuwin32]
79 questions
2
votes
3 answers
Removing leading spaces in a text file
I have a bunch of texts files although they all have spaces at the beginning of lines
e.g.
testing 123
download
upload
would be
testing 123
download
upload
Preferably using a utility such as grep etc.

Jay
- 53
- 1
- 1
- 5
2
votes
2 answers
'sed' is not recognized as an internal or external command (Windows 10)
I'm working with a JavaScript app it's running by yarn. I found issue when I run yarn run dev. It's showing below error.
yarn run v1.21.1
$ yarn fixlitepicker && rm -rf .cache/ dist/
$ sed -i 's/# sourceMappingURL/ sourceMappingURL/g'…

Rahul
- 2,011
- 3
- 18
- 31
2
votes
1 answer
Grep - Input File is also the output file
I'm using command line
grep -rI "TEXTSEARCH" . > output.txt
and I get the error/prompt
grep: input file ‘./output.txt’ is also the output
Seems to work successfully but don't want to make extensive searching if this is something to worry about or…

Lucy Beale
- 89
- 2
- 7
2
votes
1 answer
Loading a TAR file and extracting its *bz2 contents to sdout with bzcat
Following this question, I'm attempting to load a 40 GB TAR file with bz2-compressed json files into PostgreSQL in an effecient manner.
As per the answer mentioned above, I'm trying to separate the process and use external tools to create the…

MattV
- 1,353
- 18
- 42
2
votes
1 answer
Is Java required to run some .NET based programs?
Introduction
One of the comments to this question is about using GnuWin's file command in order to check whether a program is using java or not. However GnuWin's file command indicates the following:
C:\Windows\system32>file "C:\Program…

030
- 10,842
- 12
- 78
- 123
2
votes
1 answer
GnuWin32 openssl s_client conn to WebSphere MQ server not closing at EOF, hangs
I am trying to use the GnuWin32 version of OpenSSL to fetch certificates from several WebSphere MQ queue managers. All attempts result in OpenSSL keeping the connection open until I manually hit ENTER.
I tried piping various text into the command…

T.Rob
- 31,522
- 9
- 59
- 103
2
votes
1 answer
SIP Makefile fail (gnuwin and mingw)
I have downloaded the Sip module for python 2.7, created a makefile and tried the make command on the directory with the makefile, but I get this error:
Makefile:3: recipe for target 'all' failed
mingw32-make[10]: *** [all] Error…

Forsgren
- 23
- 1
- 6
2
votes
1 answer
using sed to change to a symbol
Am working on Windows Vista with GnuWin32 (sed 4.2.1 and core utilities 5.3.0). Also have ActivePerl 5.14.2 package.
I have a large multi record file. The end of each record in the file is denoted with four dollar signs ($$$$). Within each logical…

user2028514
- 23
- 1
- 4
1
vote
0 answers
Error: "Generator NMake Makefiles does not support platform specification, but platform x64 was specified."
I am trying to install Fraunhofer Versatile Video Encoder (VVenC) through CMake. It show the error below.
cmake --build build/static --config Release -- /maxcpucount:8 /verbosity:minimal /nr:false
CMake Error:
Generator
NMake Makefiles
…

Nithin Reddy
- 11
- 1
1
vote
1 answer
Clang error - fatal error: 'unistd.h' file not found
I have installed zlib-1.2.3.exe.
I have the following settings in CLion 2020.1:
I have the following lines in my CMakeLists.txt file:
cmake_minimum_required(VERSION 3.16)
project(ZLIB__test)
set(CMAKE_CXX_STANDARD 11)
set(ZLIB_LIBRARY "C:/Program…

user366312
- 16,949
- 65
- 235
- 452
1
vote
1 answer
xargs 4.2.20 of gnuwin32 silently fails on win7
I am talking about xargs.exe of the findutils package from the gnuwin32 project.
When I create a pipe on windows command shell, cmd.exe, it does not run properly on windows 7 but it runs fine on windows XP:
dir /on /b | xargs.exe do-something.bat…

knb
- 9,138
- 4
- 58
- 85
1
vote
1 answer
Gnuwin32: makefile on windows "The syntax of the command is incorrect."
I'm trying to call make to compile my code but I keep getting this error:
C:\Users\lovel\Anaconda3\S4>make
mkdir -p build
mkdir -p build / S4k
The syntax of the command is incorrect.
make: *** [objdir] Error 1
Here's part of my makefile code in…

Leen Almadani
- 13
- 4
1
vote
3 answers
awk keep if line contains " example "
okay so I wish to keep lines containing several keywords,
example of list:
Name:email:username #registered
Name2:email2:username2
Name3:email3:username3 #registered #subscribed #phonever
Name4:email4:username4 #unconfirmed
What I want to do is…

user3255841
- 113
- 1
- 2
- 8
1
vote
4 answers
How can I monitor a log file and insert timestamps, using Perl?
I have an application which generates logs in append mode, but the logs are not timestamped.
Is it possible to use tail -f with some option, or a perl script to monitor writes to this file and prefix them with a timestamp?
Given that I am running…

Benoit
- 76,634
- 23
- 210
- 236
1
vote
2 answers
Where to take sh for Windows suitable to build Hadoop?
To compile Hadoop under Windows it is said to have sh program
(in BUILDING.txt file), which is said to be contained in GnuWin32.
Unfortunately, I can’t find one there, for example, in Sh-Utils.
Where can I take sh.exe, required for Hadoop…

Suzan Cioc
- 29,281
- 63
- 213
- 385