gnuwin32-users Mailing List for GnuWin (Page 4)
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
|
Mar
(2) |
Apr
(10) |
May
|
Jun
|
Jul
(24) |
Aug
(14) |
Sep
(19) |
Oct
(16) |
Nov
(11) |
Dec
(3) |
2003 |
Jan
(25) |
Feb
(13) |
Mar
(2) |
Apr
(18) |
May
(24) |
Jun
(15) |
Jul
(19) |
Aug
(14) |
Sep
(5) |
Oct
|
Nov
(1) |
Dec
|
2004 |
Jan
|
Feb
(3) |
Mar
(6) |
Apr
(1) |
May
|
Jun
(5) |
Jul
(2) |
Aug
(5) |
Sep
(3) |
Oct
(4) |
Nov
(2) |
Dec
(1) |
2005 |
Jan
(27) |
Feb
(61) |
Mar
(55) |
Apr
(53) |
May
(63) |
Jun
(15) |
Jul
(37) |
Aug
(41) |
Sep
(21) |
Oct
(22) |
Nov
(49) |
Dec
(41) |
2006 |
Jan
(23) |
Feb
(18) |
Mar
(48) |
Apr
(34) |
May
(22) |
Jun
(16) |
Jul
(9) |
Aug
(14) |
Sep
(14) |
Oct
(27) |
Nov
(31) |
Dec
(40) |
2007 |
Jan
(57) |
Feb
(26) |
Mar
(10) |
Apr
(13) |
May
(29) |
Jun
(17) |
Jul
(22) |
Aug
(11) |
Sep
(29) |
Oct
(13) |
Nov
(21) |
Dec
(39) |
2008 |
Jan
(17) |
Feb
(28) |
Mar
(30) |
Apr
(11) |
May
(6) |
Jun
(13) |
Jul
(23) |
Aug
(9) |
Sep
(10) |
Oct
(23) |
Nov
(15) |
Dec
(15) |
2009 |
Jan
(9) |
Feb
(16) |
Mar
(9) |
Apr
(8) |
May
(36) |
Jun
(18) |
Jul
(10) |
Aug
(16) |
Sep
(10) |
Oct
(21) |
Nov
(6) |
Dec
(9) |
2010 |
Jan
(9) |
Feb
(17) |
Mar
(10) |
Apr
(7) |
May
(20) |
Jun
(18) |
Jul
(7) |
Aug
(11) |
Sep
(14) |
Oct
(11) |
Nov
(7) |
Dec
(3) |
2011 |
Jan
(1) |
Feb
(5) |
Mar
(11) |
Apr
(6) |
May
(20) |
Jun
(4) |
Jul
(7) |
Aug
(1) |
Sep
(8) |
Oct
(9) |
Nov
(8) |
Dec
(6) |
2012 |
Jan
(6) |
Feb
(6) |
Mar
(4) |
Apr
(3) |
May
|
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
2013 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2011-07-09 01:40:45
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409 By: raysatiro Also only command windows opened after the system PATH environment variable has been changed will search the new system PATH. It is not always a good idea to modify your system PATH. If you installed gnuwin32 packages using the GetGnuWin32 downloader you might consider instead using the provided shortcut that will open a command window with your gnuwin32\bin directory first in the PATH. This allows you a dedicated command window that will run gnu sort instead of microsoft's, for example. You can find the gnuwin32 shortcut in your start menu or in C:\gnuwin32\Start Menu. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-07-09 01:10:49
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409 By: mz2ptc0 If you don't like to edit the PATH variable manually there is a small `Pathtool.exe' utility program that comes along with the (non-Gnu) ImageMagick package. How did you install the Gnuwin package, using the Windows installer or by unpacking a .zip file? The Windows installer lets you specify where you want to install the package. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-07-08 08:57:22
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409 By: keithmarshall If you've installed in c:\gnuwin32\bin, why add "C:\Program Files\GnuWin32\bin" to %PATH%? You should append the directory where you installed: PATH=%PATH%;C:\GnuWin32\bin in your case. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: KJ <gnu...@t4...> - 2011-07-08 06:58:50
|
> > ... > > I was able to work around this issue by changing line 396 of download.bat > > to add a '--max-redirect 10' option to the wget call: > > bin\%WGETPROG% --max-redirect 10 --no-cache http://%GETGNUWIN32_SITE%/%UPDATE_NAME%.zip 1>sf_diag.tmp 2>&1 > > ... > > Hi KJ, > > Can you reproduce? ... > Can you explain why you think the zip and sig update files were html and not the binary contents? > ... [Is the normal list etiquette here to Cc thread participants, or just reply to the list?] I tried again today, and the problem did not reproduce. However, I've seen the same issue before with other SourceForge software, and from other users trying to download from "direct" links (usually using wget or curl). I knew the file was not the actual binary because it attempted to download update94d563d1564001.zip. After running download.bat, I could open/cat/type update94d563d1564001.zip and see that it was only the HTML content from the original message. It wasn't a zip file at all. Anyway, I'm not sure what else to do since it's not reproducing now. |
From: SourceForge.net <no...@so...> - 2011-07-08 05:06:34
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409 By: divades Running on a PC. Download gnuwin32. in the C:/gnuwin32/bin I see the command I want to use. It is cat.exe I added the following environment var to System Properties -variable name PATH ;C:\Program Files\GnuWin32\bin When I cd to my desktop and try and run the comand cat mytest.html > mynew.html I get the following error: 'cat' is no recofnized as an internal or external command, operable program or batch file. How do I make this command and the others (e.g. ls) available from any directory.? _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4599409/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: <ray...@us...> - 2011-07-07 01:25:07
|
----- Original Message ---- > From: KJ <gnu...@t4...> > To: gnu...@li... > Sent: Wed, July 6, 2011 4:00:14 PM > Subject: [GnuWin32-Users] download.bat needs update for SF redirects > > > SourceForge has recently changed their configuration (to much frustration > due to issues like this) to block direct links completely. Going to a link > that is supposedly direct returns not the desired file, but the following: > <html><head><meta http-equiv="refresh" content="0"></head></html> > ... and a 302 location header redirecting to some other URL, which > itself returns a 302 redirecting to somewhere else, and so on. For me, > it takes about six redirect iterations from the initial "direct" link > before finally getting to the real file. > > It seems like wget's default value for the --max-redirect is zero or > something small. Combined with the above behavior, download.bat breaks. It > reports: > = > = Checking for signed update (attempt 1)... > > GetGnuWin32 signed update found, verifying signature... > Verification Failure > ... then repeats the same message for several subsequent attempts. Of > course the verification fails, because it's trying to verify an > almost-empty HTML file instead of the update zip file. > > I was able to work around this issue by changing line 396 of download.bat > to add a '--max-redirect 10' option to the wget call: > bin\%WGETPROG% --max-redirect 10 --no-cache http://%GETGNUWIN32_SITE%/%UPDATE_NAME%.zip 1>sf_diag.tmp 2>&1 > > I didn't see this issue on the bug tracker, and would have added it, > but SourceForge won't let me. > > Hi KJ, Can you reproduce? I tried this evening monitoring the connections in Fiddler but I'm not seeing anything like that (no redirects). Wget allows 20 redirects by default I think, although I've never tested that limit. The default value is used except for the initial test connection when redirects is set to 0. Can you explain why you think the zip and sig update files were html and not the binary contents? You can't add to the bug tracker? Do your connections originate from Iran or some restricted country? There is some problem downloading GNU cli packages in Iran definitely, maybe other restricted countries. If you can reproduce please consider installing Fiddler to monitor your web traffic. http://www.fiddler2.com/fiddler2/version.asp The installer is signed by Eric Lawrence who works for Microsoft. It contains no malware. Once you have installed Fiddler start it up and then open a command window, switch to your GetGnuWin32 directory and run these commands: set HTTP_PROXY=localhost:8888 download -v -u When it finishes switch back to Fiddler and make sure no other personal information was captured during that time. Either save all sessions or omit any personal captured traffic and save selected sessions. Then close Fiddler to stop monitoring. Send the session archive to me. Thanks, Jay |
From: KJ <gnu...@t4...> - 2011-07-06 20:00:24
|
SourceForge has recently changed their configuration (to much frustration due to issues like this) to block direct links completely. Going to a link that is supposedly direct returns not the desired file, but the following: <html><head><meta http-equiv="refresh" content="0"></head></html> ... and a 302 location header redirecting to some other URL, which itself returns a 302 redirecting to somewhere else, and so on. For me, it takes about six redirect iterations from the initial "direct" link before finally getting to the real file. It seems like wget's default value for the --max-redirect is zero or something small. Combined with the above behavior, download.bat breaks. It reports: = = Checking for signed update (attempt 1)... GetGnuWin32 signed update found, verifying signature... Verification Failure ... then repeats the same message for several subsequent attempts. Of course the verification fails, because it's trying to verify an almost-empty HTML file instead of the update zip file. I was able to work around this issue by changing line 396 of download.bat to add a '--max-redirect 10' option to the wget call: bin\%WGETPROG% --max-redirect 10 --no-cache http://%GETGNUWIN32_SITE%/%UPDATE_NAME%.zip 1>sf_diag.tmp 2>&1 I didn't see this issue on the bug tracker, and would have added it, but SourceForge won't let me. |
From: SourceForge.net <no...@so...> - 2011-06-24 07:08:34
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047 By: raysatiro dlls built for mingw and visual studio 2010 sp1 versions here: https://sourceforge.net/projects/getgnuwin32/files/getgnuwin32/test%20builds/ GSL_1.15_binaries_and_devel__MINGW_ONLY.zip GSL_1.15_binaries_and_devel__VS_ONLY.zip _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-06-21 05:26:21
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047 By: raysatiro There are a few issues here, but the bottom line is when you are using GSL in a Visual Studio project you should link to GSL DLLs built with that same version of Visual Studio. You also want the includes which are different for Visual Studio. Also you should define GSL_DLL and I think CBLAS_DLL. Check out this webpage: The GNU Scientific Library (v1.15) for Visual Studio 2010 http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php Download that and follow the directions. There are a few problems when compiling in Debug mode so choose Release. I've already built it and I'll put it up in a few days in the tests folder. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-06-09 22:45:06
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047 By: mz2ptc0 On Windows XP systems when you link to a .dll you usually use an import library. I don't know anything about Dev C++ or what compiler it uses. Your import library could be called `libgsl-dll.a' or it could be `libgsl.lib' (or some variation of the preceding). You don't say how you link to the .dll in your post. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-06-09 06:12:59
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047 By: julia1234 Hi! I have a similar problem, my program compiled, linked successfully, but have a run problem: Unhandled exception : Access violation writing location. I have GnuWin32 gsl version 1.8, and Microsoft Visual C++ .NET, and I define the GSL_DLL in the Preprocessor Definitions, WIN32 defined too. I tried the solutions to similar problems, as copying the dll's to the local library with no success. Thanks you. Julia The code: #include <gsl/gsl_matrix.h> int main (void){ [u]gsl_matrix * m = gsl_matrix_alloc (10, 3);[/u] gsl_matrix_free (m); return 0; } _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1313047/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-31 14:41:16
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522 By: reggie27 Whoo, lordy. I'll have to set aside some time to digest this. But thank you, again. I appreciated it. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-31 06:03:39
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522 By: raysatiro Reggie what you first need to understand is how your command line arguments will be seen by a gcc compiled C program after the command line is parsed. I wrote a very simple program to demonstrate this. These examples were made using the windows command interpreter. [code] C:\Temp>getargs "{if (substr($1,1,3) == "123") print $0}" argv[ 0 ]: getargs argv[ 1 ]: {if (substr($1,1,3) == 123) print $0} C:\Temp>getargs "{if (substr($1,1,3) == \"123\") print $0}" argv[ 0 ]: getargs argv[ 1 ]: {if (substr($1,1,3) == "123") print $0} C:\Temp>getargs "{if (substr($1,1,3) == "Sun") print $0}" argv[ 0 ]: getargs argv[ 1 ]: {if (substr($1,1,3) == Sun) print $0} C:\Temp>getargs "{if (substr($1,1,3) == \"Sun\") print $0}" argv[ 0 ]: getargs argv[ 1 ]: {if (substr($1,1,3) == "Sun") print $0} C:\Temp>getargs "apple "orange" pear" argv[ 0 ]: getargs argv[ 1 ]: apple orange pear C:\Temp>getargs "apple " orange " pear" argv[ 0 ]: getargs argv[ 1 ]: apple argv[ 2 ]: orange argv[ 3 ]: pear C:\Temp>getargs "apple \" orange \" pear" argv[ 0 ]: getargs argv[ 1 ]: apple " orange " pear C:\Temp>getargs "apple""orange" argv[ 0 ]: getargs argv[ 1 ]: apple"orange C:\Temp>getargs "apple "" orange" argv[ 0 ]: getargs argv[ 1 ]: apple " argv[ 2 ]: orange C:\Temp>getargs "apple" argv[ 0 ]: getargs argv[ 1 ]: apple C:\Temp>getargs \"apple\" argv[ 0 ]: getargs argv[ 1 ]: "apple" [/code] Arguments are separated by spaces and each argument can be quoted. If an argument contains spaces it must be quoted. If an argument contains special characters in most cases it should/must be quoted. If an argument contains quotes in the argument in most cases you would want to escape them. There is also "apple""orange" parsed as one argument apple"orange . But that is undocumented. If you want a more thorough understanding of command line parsing go here: http://www.autohotkey.net/~deleyd/parameters/parameters.htm#WIN Now as to your question. You can see above that what is happening is while in your first command you may have intended to compare to a numeric string of "123" you were actually comparing a numeric of 123 because you didn't escape the quotes. gawk's type comparison rules, which are the same as POSIX's, allow that. It gets kind of complicated but basically it's okay to compare what you get from substr() to a numeric. Also, while you intended to compare to a string of "Sun" you were actually comparing to a variable named Sun because you didn't escape the quotes. Unless the unquoted argument in that if statement is a numeric (+2 or 234 etc.) gawk interprets it as a variable name. In this case an undefined variable, because there is no variable named Sun... unless you define it, and why would you do that except to make things really confusing! If you feel up to it review gawk's documentation on String Type Versus Numeric Type: http://www.gnu.org/software/gawk/manual/html_node/Variable-Typing.html#Variable- Typing One of the most confusing issues for gnuwin32 users reading GNU documentation is that in many cases it assumes a POSIX compliant shell when it gives usage examples. The windows command interpreter (what most users use) is certainly not a POSIX compliant shell. So the examples in the link above you won't be able to run in a windows command interpreter due to the way they're quoted. You must use double quotes. So take this example: [code]echo ' +3.14' | gawk '{ print $1 == "+3.14" }'[/code] In the windows command interpreter you must do it like this: [code]c:\gnuwin32\bin\echo " +3.14" | gawk "{ print $1 == \"+3.14\" }"[/code] Although I focused on the windows command interpreter there are POSIX shells for windows that you can use instead of the command interpreter. If you want POSIX compliance Microsoft offers that for certain versions of windows: http://en.wikipedia.org/wiki/Windows_Services_for_UNIX Personally I alternate between the POSIX bash shell that came with my MSYS installation and the windows command interpreter. I don't use SFU. As your gawk code becomes more complex it will be easier to just move it to a script file where you won't have any of these problems, POSIX shell or not. gawk -f yourscript in.txt > out.txt The program getargs and its source is available here: https://sourceforge.net/projects/getgnuwin32/files/getgnuwin32/other/getargs/ _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-30 21:33:41
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522 By: mz2ptc0 <quote>I kept thinking, What am I escaping from? If it's not too much bother, Why don't I need the escape back slashes for numerics? </quote> If you read the manual, numeric constants and string constants are treated differently. If you wanted '123' to be treated as a character string it should be enclosed in single or double quotes in the text file. Awk assumes that 123 without quotes is a decimal number. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-30 14:57:00
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522 By: reggie27 Thanks again, Ray. I'm going to get one of those Buddha statues, write "raysatiro" in magic marker on it, and light a candle in front of it. I read about the back slashes being used like this but I wasn't sure what "escape" meant in this context. I kept thinking, What am I escaping from? If it's not too much bother, Why don't I need the escape back slashes for numerics? _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-30 01:29:26
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522 By: raysatiro You need to use the backslash character to escape the quotes. gawk "{if (substr($1,1,3) == \"Sun\") print $0}" abc.txt _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-30 00:00:44
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522 By: reggie27 I just downloaded the gawk utility today to run commands in DOS on my PC. I can get a SUBSTR for numeric values to work in an IF statement, but I can't get alpha characters to work. When I run the following command: gawk "{if (substr($1,1,3) == "123") print $1}" baseball_test_file.txt > baseball_test_file1.txt, I get the correct data: 123 123xxx 123yyy. However, when I run this command: gawk "{if (substr($1,1,3) == "Sun") print $1}" baseball_test_file.txt > baseball_test_file2.txt, I get an empty file as a result. Below is my input data. I tried a bunch of different things, but I can't figure it out. Little help? 123 123xxx Fri, 4/1 at Rays W 4-1 1-0 Guthrie (1-0) Price (0-1) Sun, 4/3 at Rays W 5-1 3-0 Britton (1-0) Davis (0-1) Fri, 4/8 Rangers Postponed 5-1 Tue, 5/17 at Red Sox Postponed 19-21 Sat, 5/28 at Athletics L 2-4 24-26 Outman (1-0) Bergesen (1-6) 123yyy _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-29 13:38:56
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4549696 By: reggie27 Ray, after a bit of stumbling around, playing with single quotes and double quotes, and restarting my PC, I got everything you suggested to work. Your graphic description for changing the PATH was particularly helpful. I can't tell you how much I appreciate your help. Thanks. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4549696/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-29 06:29:03
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4549696 By: raysatiro You could call the program directly, for example if you have sed.exe in "C:\Program Files\gnustuff\bin" "C:\Program Files\gnustuff\bin\sed.exe" "s/whitesox/White Sox/g" < in.txt > out.txt You could instead add the directory where sed and its dependencies (.dll files) are located to your system PATH. Your system PATH is a semicolon separated list of directories that are searched by the system for programs and their dependencies. To see your PATH at the command prompt type echo %PATH% If sed.exe is "C:\Program Files\gnustuff\bin\sed.exe" for example, you could append C:\Program Files\gnustuff\bin to your system path. However by doing that anything else in that directory can also be searched by the system. This is not always desirable and can lead to compatibility conflicts depending on what else is there. I've uploaded a screenshot for GetGnuWin32 users that shows how to add to the path. You can find it here: [code]http://iweb.dl.sourceforge.net/project/getgnuwin32/getgnuwin32/0.6.30/HOWT O_Add_GnuWin32_To_System_Path.png[/code] _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4549696/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-29 01:00:24
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4549696 By: reggie27 I'm no PC jockey. I just use it to get other stuff done, so bear with me. I downloaded the GNUWin sed package so that I could run sed at the DOS command prompt. When I execute the sed command "sed -e 's/whitesox/White Sox/g' < baseball_test_file.txt > baseball_test_file_ja.txt", I get the message: 'sed' is not recognized as an internal or ext, operable program or batch file. The sed.exe file is in a directory path under Program Files. You'd think the system would find it. I've been looking at information about changing my "Home" values, and a whole bunch of other stuff, but I'm getting nowhere. Little help? _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4549696/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-19 06:03:05
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1335359 By: ptandler Thanks for your reply! It's a pity if recode is not maintained anymore, it's such a handy tool! A colleague pointed me at a Windows binary of recode.exe that is included in http://sourceforge.net/projects/unxutils/files/unxutils/current/ This seems to work well. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1335359/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-18 19:17:35
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1335359 By: mz2ptc0 I am not sure that `recode' is being currently maintained by anybody. One project that comes to mind if unicode representations are involved is `libunistring'. Of course, the library has to be called from a C program to be used. I did build libunistring a while ago and it was easy to install. http://www.gnu.org/software/libunistring/ _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1335359/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: SourceForge.net <no...@so...> - 2011-05-16 20:01:05
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1335359 By: ptandler Is there any news on the recode binary package? Or is there a good alternative tool as powerful as recode? Thanks, PT _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1335359/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |
From: phil c. <jsw...@ya...> - 2011-05-08 20:45:43
|
The FILE command is not detecting that this file is an mpeg, Why? What can be done? http://www.berkut13.com/videos/brakeup.mpg |
From: SourceForge.net <no...@so...> - 2011-05-07 11:34:35
|
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4515924 By: noufmks [code]Thank you very much... I appreciate your replies... You were right, the OP doesn't have permission for the directory in which I was trying to save the output file... I used another directory and it worked... [/code] _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4515924/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor |