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)

32 questions
23
votes
3 answers

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 would like to know what is the difference between…
Stormshadow
  • 887
  • 2
  • 9
  • 15
15
votes
1 answer

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 --decompress "colorbox.zip" its result: gzip:…
Sk8erPeter
  • 1,140
8
votes
1 answer

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?
trolzen
  • 506
5
votes
3 answers

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 a folder in my profile for executables and added…
TheSavo
  • 442
5
votes
1 answer

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 trying to do is find all files with filenames ending…
Andrew
  • 215
4
votes
2 answers

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, one fewer, but I don't care). What's the fastest…
msh210
  • 225
4
votes
4 answers

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.
user64996
  • 8,427
  • 5
  • 21
  • 16
4
votes
2 answers

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 be opened by winzip. what's the correct way to…
athos
  • 2,371
3
votes
1 answer

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 text as it comes. I do not want to treat either…
sagar
  • 139
3
votes
1 answer

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 /S c:\windows\system32\*.sys | head | xargs…
2
votes
4 answers

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 unpack the tar file explicitly next). I've tried…
Ivan
  • 7,863
2
votes
1 answer

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 something similar.
Bill
  • 21
2
votes
1 answer

Is there a technical reason why gnuwin32 doesn't contain ssh?

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 question.. The question -can- be answered objectively.…
barlop
  • 25,198
2
votes
1 answer

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 no output at all. grep just exits without any error…
cschol
  • 892
1
vote
3 answers

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?
Mike
  • 113
1
2 3