Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gnuwin32]

GnuWin 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)

0
votes
0answers
16 views

wingnu32 env tool does not print variable

I found the tip to use the wingnu32 tool env from , which is installed on my Windows 10 device anyway, as Git and Docker are installed. However, I don't get it working as wished. It behaves as ...
0
votes
1answer
55 views

what's the least-painfull way to have less on Windows?

I want to use less, instead of more, on a Windows machine. I know I can install Cygwin and use its less. But I've also noticed there's GnuWin which offers a less, a stand-alone less, and there are ...
0
votes
1answer
791 views

Gnuwin32, makefile, mkdir -p?

I have installed gnuwin32 core utils, make and gettext: http://gnuwin32.sourceforge.net/packages/coreutils.htm http://gnuwin32.sourceforge.net/packages/make.htm http://gnuwin32.sourceforge.net/...
2
votes
1answer
848 views

use bsdtar to generate zip file

i'm using GnuWin32's bsdtar, to extract it's simple: bsdtar xvf c:\test.zip -C c:\temp\ but i failed to create zip files. I tried bsdtar -cf test.zip a.csv b.csv but the generated file couldn't ...
0
votes
1answer
54 views

Is this a bug in grep -P ? (I seem to be getting too many matches appearing)

Here is a file I have http://www.zen76171.zen.co.uk/blahsomefile1 It's a text file about 1.18MB in size Looking at how many matching lines I get With -P C:\blah>grep -P "[^J]*J" blahsomefile1 ...
1
vote
1answer
291 views

xargs misinterprets backslashes on windows

I am using gnuwin32 utilities on windows 7. I want to pipe a file list to xargs to remove the files. but if i pipe normal windows paths in then xargs interprets and removes the backslashes dir /B /...
1
vote
3answers
470 views

grep on Windows 7 Invalid Argument

I am using grep from Gnuwin32 on Windows. Doing: grep -r INSERT *.sql Yields: grep: *.sql: Invalid argument Any idea why?
0
votes
1answer
293 views

Gnuwin32 grep: piping output on cmd.exe or Powershell

I' m trying to use the Gnuwin32 grep command to produce a list of files I would like to feed to another command (a Perl script really). I have a bunch of HTML files and I wish to list every one of ...
2
votes
2answers
982 views

Count lines fast

I'm running Windows 7 and have GnuWin32. I have a several-gigabyte text file with LF (\n) line endings. I want to know how many lines it has (or alternatively how many LFs it has, which is, let's say, ...
1
vote
1answer
85 views

plotutils: `graph` creates empty plots

I'm trying to create simple plots using graph as described in this tutorial. However, even the most basic example: echo 0 0 1 1 2 0 | graph -T png > plot.png produces a perfectly white 570x570 ...
0
votes
1answer
267 views

GnuWin32 / sed unexpected behavior in Powershell

I am using GnuWin32 tools on Windows Command Line/Powershell. What is see: 11:15 enlil D:\Users\x> Get-ChildItem .gitconfig | sed "s/ */ /g" D i r e c t o r y : D : \ U s e r s \ x M o d e ...
0
votes
1answer
594 views

Look for many different strings in many different log files?

I have a list of files that have gone missing somewhere in our system at work. I also have a folder full of 41 log files adding up to 46 MB that hopefully have log entries pertaining to the missing ...
0
votes
1answer
177 views

How do I insert a line at a line of a file in sed for windows?

if i have a file half a pound of tuppenny rice half a pound that's the way the money goes pop goes the weasel And I want to insert a line "of treacle" at line 4. so it should be half a pound of ...
0
votes
1answer
63 views

How to cd to the path returned by which?

I'm curious how I might be able to change directory to the directory returned by which. I was hoping for a simple one liner like which whatimlookingfor | cd but it only prints my current directory. In ...
0
votes
2answers
5k views

How to grep multiple strings on multiple files?

I am trying to grep multiple strings on multiple files. This is on Windows 7 x64, and I am using GNUWin32's flavor. I have grep.bat with this command: grep "string1\|string2\|string3\|string4" 20*....
1
vote
1answer
172 views

The `g` suffix for some GnuWin32 utils

For these commands there are both a g-suffix version and a plain version: gdate.exe gecho.exe ginstall.exe gln.exe gmkdir.exe grmdir.exe gsort.exe I can't find the difference. Edit Someone is ...
0
votes
1answer
217 views

Windows XP: Zero size files and folders but explorer still sees the files

I used a series of GNU find.exe commands to move media files to the current folder. Explorer show that the folders and files still exist in their original location but properties show zero size and ...
12
votes
1answer
27k views

When using “gzip --decompress”, the result is “gzip: MYFILE.zip: unknown suffix — ignored” on Windows

In Windows PowerShell (if it matters), I would like to decompress a zip file with gzip with the argument --decompress, but unfortunately it doesn't work. Please look at the screenshot below. gzip --...
0
votes
1answer
298 views

sed without regex

I am using GNU SED for find and replace functionality on large files(upto 2GB). Find and replace characters can contain any characters, hence I want find and replace parameters to be treated as plain ...
2
votes
2answers
19k views

What command to use to unpack a .tar.gz file in Windows?

I use to receive tar.gz files fromm colleagues but unpacking them with 7zip is not convenient as it unpacks a tar file from gz first while I usually seek to get the tar file contents (so I have to ...
8
votes
1answer
3k views

What does the grep switch --color=auto do?

What effect does auto as an option for the --color switch have in grep? When does grep decide to color the the matching strings, and when doesn't it?
2
votes
1answer
87 views

Prompt a user and wait for response

In GNUwin32 or UnxUtils, is there a way to prompt a user to "Press enter to continue" and wait for the enter key, such as the unix 'read' command. I used to have an old command 'ask' that would do ...
3
votes
2answers
17k views

Sed for windows

I am attempting to use SED for the first time. To complicate matters, i am using it in windows. I downloaded from this source. Since I don't have install privileges on my work machine I created a ...
-2
votes
2answers
2k views

Getting this simple regular expression to match in grep

I want to match a quote, 2, a space, and any character that is not a literal dot. This is using GnuWin32 grep. Not Cygwin's grep. C:\>echo "2 008abc.html" | grep -oiP \"2 [^.] grep: [^.]': No ...
4
votes
1answer
2k views

Why won't GNU find work recursively on Windows 7?

I have the full gnuwin32 installation on my Win7 box. From the shell (cmd.exe), I can execute c:\gnuwin32\bin\find.exe . from a directory and get a list of all the files recursively. What I am ...
4
votes
4answers
5k views

How do I mount an NTFS image created by GNU NTFSclone on Windows?

How do I mount an NTFS image created by GNU NTFSclone on Windows? Neither the gnuwin32 version of NTFSclone nor Cygwin’s mount seem to be capable.
2
votes
1answer
2k views

Why doesn't gnuwin32 contain ssh? [closed]

How come gnuwin32 while it has a big collection of utilities, seems to have missed out such an important one - SSH? http://gnuwin32.sourceforge.net/packages.html -- Note- I see Diago closed the ...
17
votes
3answers
12k views

Difference between UnxUtils and GnuWin32?

I am a Windows user who wants programs like grep and sed along with other utilities like ls, cut etc in my command prompt. I came across 2 packages which would accomplish this UnxUtils GnuWin32 I ...
2
votes
1answer
1k views

grep on Windows XP vs. Windows 7

I am using grep from Gnuwin32 on Windows. On Windows XP, the following grep -e "foo" NUL results in the following output grep: NUL: invalid argument On Windows 7, the same arguments result in ...
0
votes
1answer
1k views

Find for Windows gives “Access Denied” when trying recurse into lower directories? (Windows Vista)

for instance the command: find "" * yields: Access denied - STUFF