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)
30
questions
4
votes
4
answers
10k
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.
2
votes
4
answers
32k
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 ...
5
votes
3
answers
42k
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 ...
-1
votes
1
answer
37
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 ...
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 ...
23
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 ...
4
votes
2
answers
6k
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, ...
0
votes
1
answer
209
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 ...
1
vote
1
answer
4k
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
1
answer
5k
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 ...
3
votes
1
answer
1k
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 ...
0
votes
1
answer
103
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 ...
0
votes
1
answer
248
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 ...
2
votes
1
answer
1k
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
1
answer
142
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 ...
15
votes
1
answer
45k
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 --...
1
vote
3
answers
974
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
1
answer
638
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 ...
0
votes
1
answer
409
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 ...
-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 ...
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
0
votes
1
answer
668
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
1
answer
261
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 ...
1
vote
1
answer
267
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
2
answers
6k
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
1
answer
218
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 ...
8
votes
1
answer
6k
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
1
answer
97
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 ...
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 ...
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 ...