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)

learn more… | top users | synonyms

0
votes
1answer
88 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
27 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
31 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
2k 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" ...
1
vote
1answer
69 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
107 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 ...
7
votes
1answer
6k 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
0answers
111 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
4k 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
1answer
823 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
69 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 ...
1
vote
2answers
6k 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 ...
-1
votes
2answers
1k 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 ...
3
votes
1answer
1k 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 ...
1
vote
4answers
2k 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
2answers
217 views

A good list of command line *nix like apps for windows?

I'm looking for a list of command line *nix like apps for windows. I suppose gnuwin32 is a good idea, and cygwin... Each give a good list. any other ideas? I know sometimes there are good programs ...
2
votes
1answer
1k 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 ...
7
votes
3answers
5k 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
924 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
635 views

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

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