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)

Filter by
Sorted by
Tagged with
-1 votes
1 answer
22 views

launching batch command using system in python [closed]

I am trying to use the below command in windows CMD it works. c:\cygwin64\bin\find.exe content_dir/ -type f -not -path 'content_dir/invalid_file/*' -print0 Same if i use in python script it does not ...
user avatar
  • 133
0 votes
1 answer
128 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 ...
user avatar
  • 7,532
1 vote
1 answer
3k 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/...
user avatar
  • 123
2 votes
1 answer
3k 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 ...
user avatar
  • 2,155
0 votes
1 answer
76 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 ...
user avatar
  • 22.1k
1 vote
1 answer
858 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 /...
user avatar
1 vote
3 answers
800 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?
user avatar
  • 113
0 votes
1 answer
536 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 ...
user avatar
  • 53
4 votes
2 answers
5k 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, ...
user avatar
  • 225
1 vote
1 answer
132 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 ...
user avatar
0 votes
1 answer
359 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 ...
user avatar
  • 3,923
0 votes
1 answer
660 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 ...
user avatar
0 votes
1 answer
209 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 ...
user avatar
  • 22.1k
0 votes
1 answer
190 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 ...
user avatar
0 votes
2 answers
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*....
user avatar
1 vote
1 answer
200 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 ...
user avatar
  • 837
0 votes
1 answer
230 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 ...
user avatar
15 votes
1 answer
42k 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 --...
user avatar
  • 1,120
2 votes
1 answer
904 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 ...
user avatar
  • 129
2 votes
4 answers
30k 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 ...
user avatar
  • 7,043
8 votes
1 answer
5k 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?
user avatar
  • 401
2 votes
1 answer
94 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 ...
user avatar
  • 21
5 votes
3 answers
37k 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 installation privileges on my work machine, I created ...
user avatar
  • 402
-2 votes
2 answers
3k 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 ...
user avatar
  • 22.1k
5 votes
1 answer
3k 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 ...
user avatar
  • 215
4 votes
4 answers
8k views

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

How do I mount an NTFS image created by NTFS-3G NTFSclone on Windows? Neither the gnuwin32 version of NTFSclone nor Cygwin’s mount seem to be capable.
user avatar
  • 8,337
2 votes
1 answer
2k views

Is there a technical reason why gnuwin32 doesn't 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 ...
user avatar
  • 22.1k
22 votes
3 answers
15k 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 ...
user avatar
2 votes
1 answer
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 ...
user avatar
  • 872
0 votes
1 answer
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
user avatar
  • 19.9k