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
0
votes
1 answer
Bug in GnuWin32 port of mkdir?
I seem to have come across a wierd behaviour of GnuWin32's mkdir (from here):
C:\sandbox>"C:\Program Files (x86)\GnuWin32\bin\mkdir.EXE" --verbose -p Q:/scratch/foo/bar
C:\Program Files (x86)\GnuWin32\bin\mkdir.EXE: created directory…

DaveC
- 115
- 8
0
votes
3 answers
Windows 'make' Command for Compiling Github Project Code Using GNU C++ Compiler and gnuwin32: Strange Error
I am trying to compile some code which I have slightly edited from a specific Github project ( https://github.com/CTurt/3DSController/tree/master/PC ) on my Windows device using Mingw32 g++ (the GNU C++ Compiler) and gnuwin32.
I'm quite new to these…

Avery Hodge
- 1
- 2
0
votes
4 answers
Remove duplicate words in a line with sed GnuWin32
I'm trying to remove repeated words in a text. The same issue described at these articles: Remove duplicate words in a line with sed
and there:
Removing duplicate strings with SED
But these variants not work for me. May be becouse I'm using…

Yura Kosyak
- 401
- 3
- 16
0
votes
1 answer
Warning: "rule useless in parser due to conflicts" in Bison
I am trying to make a C lexical analyzer and I have some warnings:
rule useless in parser due to conflicts: sentenceList: sentenceList sentence
rule useless in parser due to conflicts: sentSelection: IF '(' expression ')' sentence
rule useless in…
0
votes
1 answer
How to exclude a token/expression from another token/expression in GnuWin32 Flex
I want to exclude some keywords from my variable token
My variable token is:
variable [a-z|A-Z]+[a-z|A-Z|0-9]*
and Keyword is:
Datatype "int"|"double"|"char"|"void"
KEYWORD…

sabertooth
- 582
- 1
- 7
- 23
0
votes
1 answer
Error: make: *** No rule to make target `makefile'. Stop. using Powershell and Gnuwin32
I'm working through a coding tutorial/book called Curious Moon. One of the assignments is to normalize and load data from a CSV file put in a Postgres table. The database name is "enceladus" and the table name is "master_plan". I was told to use…

tealcoding
- 1
- 1
0
votes
1 answer
objdump is missing from windows10 pro (msys2 installed)
I have installed msys2 using chocolatey.
I have tried msys2-installer module from chocolatey too.
But I can not find objdump on my system. Should I install something more ?

Muhammad Faizan-Ul-Haq
- 330
- 4
- 13
0
votes
1 answer
makefile won't compile in windows: The system cannot find the file specified
I'm not sure what I'm doing here, I'm trying to compile code so I can run it in python.
The makefile is in the file S4, when I run make it creates the folder build, and for some reason it expects the file S4.cpp inside which doesn't make any sense…

Leen Almadani
- 13
- 4
0
votes
0 answers
awk in linux and windows behaves differently
I am correcting the boundary box of a test.eps file produced with gnuplot with the following awk shell command within a gnuplot program:
! awk '{ if($1=="%%BoundingBox:"){left=$2-90; print left; bottom=$3-69; print bottom; right=$4+8; print…

user299563
- 19
- 1
0
votes
0 answers
VIM on Windows fails to execute grep with regex patterns
When I worked on Linux I've created set of greps shortcuts which I used frequenlty. like
command! GrepFaults :%!grep -a -E '(newAlarm Id)|\bE?[Ff]aultI[dD]|updateAlarmCounter'
However when I executed this on Windows I received E4895 errors
E484:…

T4ng10r
- 727
- 2
- 11
- 21
0
votes
1 answer
Sed - Remove digits from end of line/string
I'm trying to remove digits from the end of each line within a text file, I've tried using:
sed 's/[0-9]\+$//' output.txt
but it doesn't work, however if I a echo input, ie
echo "Bla1Bla123" | sed 's/[0-9]\+$//'
it will work correctly…

Uni VPS
- 99
- 1
- 9
0
votes
1 answer
Save entire file from GREP results
Okay so I'm using grep on a external HDD
example,
M:/
grep -rhI "bananas" . > out.txt
which would output any lines within " M:/ " containing " bananas "
However I would like to output the entire contents of the file, so if one line in…

user3255841
- 113
- 1
- 2
- 8
0
votes
0 answers
GREP/GAWK If .txt file contains string copy file
okay so i know of grep -rhi, which extrats the line if string is found, but I want to copy the entire file so for example,
file.txt >
isexample #new
iesameplxpele
ieamama #new
now if I used grep -rhi "#new", it would extract only
isexample…

user3255841
- 113
- 1
- 2
- 8
0
votes
2 answers
Remove duplicate lines with a twist gnuwin32
Okay so I want remove duplicate lines but it's a bit more complicated than that..
I have a file named users.txt, example of file is:
users:email@email.com
users1:email@email.com
Now due to a bug in my system people were able to register with the…

user3255841
- 113
- 1
- 2
- 8
0
votes
2 answers
How to remove all spaces in cygwin
I have multiple .txt files in a folder i want to remove all spaces from every line of every file how do i do so?
So like file1.txt contains
a a a a
2 2 2 2
and file 2.txt contains
3 3 3 3
4 4 4 4
I want the outcome to remove spaces so…