Sponsored Content
Top Forums Shell Programming and Scripting Trying to do a bit of automation... but nooooo. Post 302422230 by curleb on Monday 17th of May 2010 10:39:17 PM
Old 05-17-2010
I'm not blessed with wget (or even curl) although I'd venture a guess that this is mostly a shell parsing issue at its root. I'd figure you'd want to remove the spaces, then you'd run into the fact that there's more than one such line...

Here's the contents of that file from your alternate site:
Code:
Begin4
Title: Wine
Version: 1.1.44
Entered-date: 2010-05-07
Description: Wine is an Open Source implementation of the Windows API on top of X and Unix.
Keywords: wine, windows, win32, emulation
Author: wine-devel@winehq.org (the Wine development team)
Maintained-by: julliard@winehq.org (Alexandre Julliard)
Primary-site: ftp://ibiblio.org /pub/linux/system/emulators/wine
	wine-1.1.44.tar.bz2
	wine-1.1.44.diff.bz2
Alternate-site: http://prdownloads.sourceforge.net wine
Platforms: Linux, FreeBSD, NetBSD, Solaris, MacOS/X
Copying-policy: LGPL
End

Two .bz2 files, each preceded with a longer whitespace segment. I'm not so familiar with wget, as I'd said, so I don't know if it would handle them as a glob/array, or as a single result (which might be where you're inferring a newline). Assuming it doesn't like globs, you'd have to devise a loop to handle multiple bogeys...and then you'd also need to eliminate that space at the beginning.

This would likely work to eliminate the extraneous spaces:

Code:
$ cat Edit4
Begin4
Title: Wine
Version: 1.1.44
Entered-date: 2010-05-07
Description: Wine is an Open Source implementation of the Windows API on top of X and Unix.
Keywords: wine, windows, win32, emulation
Author: wine-devel@winehq.org (the Wine development team)
Maintained-by: julliard@winehq.org (Alexandre Julliard)
Primary-site: ftp://ibiblio.org /pub/linux/system/emulators/wine
        wine-1.1.44.tar.bz2
        wine-1.1.44.diff.bz2
Alternate-site: http://prdownloads.sourceforge.net wine
Platforms: Linux, FreeBSD, NetBSD, Solaris, MacOS/X
Copying-policy: LGPL
End
$ grep bz2 Edit4
        wine-1.1.44.tar.bz2
        wine-1.1.44.diff.bz2
$ grep bz2 Edit4 |sed "s/[\t ]//g"
wine-1.1.44.tar.bz2
wine-1.1.44.diff.bz2

This kills the cat and leaves at least a few more cycles out of the overhead. But this now leaves you with the exercise of figuring out wget's preference on this result.

HTH
 

4 More Discussions You Might Find Interesting

1. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies

2. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

3. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

4. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies
WINESERVER(1)							  Windows on Unix						     WINESERVER(1)

NAME
wineserver - the Wine server SYNOPSIS
wineserver [options] DESCRIPTION
wineserver is a daemon process that provides to Wine roughly the same services that the Windows kernel provides on Windows. wineserver is normally launched automatically when starting wine(1), so you shouldn't have to worry about it. In some cases however, it can be useful to start wineserver explicitly with different options, as explained below. OPTIONS
-d[n], --debug[=n] Set the debug level to n. 0 means no debugging information, 1 is the normal level, and 2 is for extra verbose debugging. If n is not specified, the default is 1. The debug output will be sent to stderr. wine(1) will automatically set the debug level when start- ing wineserver if the +server option is set in the WINEDEBUG variable. -f, --foreground Make the server remain in the foreground for easier debugging, for instance when running it under a debugger. -h, --help Display a help message. -k[n], --kill[=n] Kill the currently running wineserver, optionally by sending signal n. If no signal is specified, sends a SIGINT first and then a SIGKILL. The instance of wineserver that is killed is selected based on the WINEPREFIX environment variable. -p[n], --persistent[=n] Specify the wineserver persistence delay, i.e. the amount of time that the server will keep running when all client processes have terminated. This avoids the cost of shutting down and starting again when programs are launched in quick succession. The timeout n is in seconds, the default value is 3 seconds. If n is not specified, the server stays around forever. -v, --version Display version information and exit. -w, --wait Wait until the currently running wineserver terminates. ENVIRONMENT VARIABLES
WINEPREFIX If set, the content of this variable is taken as the name of the directory where wineserver stores its data (the default is $HOME/.wine). All wine processes using the same wineserver (i.e.: same user) share certain things like registry, shared memory and kernel objects. By setting WINEPREFIX to different values for different Wine processes, it is possible to run a number of truly independent Wine sessions. WINESERVER Specifies the path and name of the wineserver binary that will be launched automatically by wine. If not set, wine will try to load /usr/bin/wineserver, and if this doesn't exist it will then look for a file named wineserver in the path and in a few other likely locations. FILES
~/.wine Directory containing user specific data managed by wine. /tmp/.wine-uid The directory containing the server Unix socket and the lock file. These files are created in a subdirectory generated from the WINEPREFIX directory device and inode numbers. AUTHORS
The original author of wineserver is Alexandre Julliard. Many other people have contributed new features and bug fixes. Please check the file Changelog in the Wine distribution for the complete details. BUGS
If you find a bug, please submit a bug report at http://bugs.winehq.org. <http://bugs.winehq.org> AVAILABILITY
wineserver is part of the Wine distribution, which is available through WineHQ, the Wine development headquarters, at http://www.winehq.org/. <http://www.winehq.org/> SEE ALSO
wine(1). Wine 1.2-rc6 October 2005 WINESERVER(1)
All times are GMT -4. The time now is 07:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy