Questions tagged [gnuwin32]

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)

79 questions
0
votes
1 answer

Remove lines from .txt gawk

Okay so how do I remove lines from new.txt if they're in tried.txt, For example, if new.txt contains 123 and tried.txt contains 123, so remove 123 from in.txt and output results to new2.txt.
0
votes
1 answer

How to Specify ^ " white-space At the Same Time in Windows Command Prompt

I have difficulties understanding how to specify special characters ^ and " as parameters in windows command prompt. I am using gnuwin32's diff in Win 7 . It has a -I option that accepts a regular expression from the command line. I want to invoke…
JavaMan
  • 4,954
  • 4
  • 41
  • 69
0
votes
1 answer

GnuWin32 make returns strange error on square braket

I am trying to compile a project on Windows 7 with GNUWin32 make. I am running make from the folder where Makefile sits, but I receive the following error: [ ! -d libmf ] && mkdir -p libmf "[" is not recognised as internal or external command,…
0
votes
1 answer

Redirect `tr -d` on windows?

I can't find a way to redirect the output of GnuWin32's tr to a file: (dev) go|w:\srv> dkversion . | jq .vcs | tr -d \" > vcs.txt tr: extra operand `>' Try `tr --help' for more information. Error: writing output failed: Invalid argument The…
thebjorn
  • 26,297
  • 11
  • 96
  • 138
0
votes
0 answers

I'm Unable to do IO with Gawk using WINAPI CreateProcess function

I have a small program which takes input and does some preprocessing on it before continuing its business. (The classic case of "make us a program; oh, we don't know the exact data format yet.") For this step being more scriptable, I've decided to…
VITTUIX-MAN
  • 346
  • 2
  • 8
0
votes
1 answer

What is the syntax for invoking GnuWin32's find exec on windows cmd shell?

Invoking GnuWin32's find.exe . -name "foo" -exec backup.bat {} \; produces the following error: find: missing argument to `-exec' What is the proper syntax?
Chris Betti
  • 2,721
  • 2
  • 27
  • 36
0
votes
0 answers

Issue with Gnuwin32 make

Trying to compile the makefiles from midifile.sapp.org gives me the following output: process_begin: CreateProcess(NULL, which wget, ...) failed. process_begin: CreateProcess(NULL, which curl, ...) failed. process_begin: CreateProcess(NULL, uname,…
Ben Clayton
  • 23
  • 1
  • 2
0
votes
2 answers

Change order of txt file lines divided by ":" using awk or cut

I have a text file called: example.txt which contains these lines: email1:location1 email2:location2 email3:location3 I want to change it up to look like this: location1:email1 location2:email2 location3:email3 What would be the easiest way…
Simon
  • 19
  • 4
0
votes
1 answer

tre agrep via gnuwin32 - newb getting no output from tre agrep

Admittedly I have not used agrep on *nix before, so this may just be a newb mistake on my part, but rather than spin up a *nix box and play there, I thought I might ask the smart people here first. I installed tre agrep via gnuwin32 on my Windows…
johnnygear
  • 93
  • 1
  • 6
0
votes
2 answers

Variables in cURL

As you all know tokens can be very long strings and become a hassle to copy and past over and over. How can I store the token string as a variable and call it when I need it in cURL example token: "ABCDefG" I want to be able to call something…
dHumphrey
  • 307
  • 2
  • 7
  • 24
0
votes
1 answer

Calling gnuwin's grep from php returns null

I work on windows 7. I try to execute the Gnuwin32 grep command from within a PHP script like so var_dump(shell_exec("grep")), so I can see if it works or not. Instead of the expected output of usage: and things like that I get null. C:\gunwin\bin…
Dirk McQuickly
  • 2,099
  • 1
  • 17
  • 19
0
votes
1 answer

How to improve a GNUwin32 join command?

Am not able to produce the desired results using join. Am running GNUwin32 on Windows 7 64 bit. Am running join version 5.3.0.1936 and gawk version 3.1.6.2962. The following two tables are input: Table_1 UID_C CID C000002 31799 C000002…
Jay Gray
  • 1,706
  • 2
  • 20
  • 36
0
votes
1 answer

A new suite of gnu tools for windows

I recently found a new (well RECENT) project that ports gnu tools to windows. Problem is that I can't find it anymore. It is not gnuwin32, cygwin, unxutils, mingw... I think it is fairly recent and hosted on sourceforge or github and bash is…
statquant
  • 13,672
  • 21
  • 91
  • 162
0
votes
1 answer

how can I apply command line function on several files

Hello I would like to know how to generate a few files on the command lines. Say I am in a directory and B:\>ls 201209 201210 201211 201212 201301 201302 201303 20130605_files_saved.txt all_files_demande.txt all_files_dsi.txt Each…
statquant
  • 13,672
  • 21
  • 91
  • 162
0
votes
2 answers

Resolve Shift/Reduce warning in GnuWin32 Bison?

i have the following rules and when implementing them with bison i get 5 shift/reduce warnings. a part of the Rules are: Type----> BOOL | INT | CHAR | DOUBLE | ID | INT '['']' ; rule: VarDec…