06-05-2007
use vi
7,10s/RW/|RW|/
7,10s/9999/|9999/
save and quit
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hello!
How I can increase or decrease predefined pipe buffer size?
System FreeBSD 4.9 and RedHat Linux 9.0
Thanks! (1 Reply)
Discussion started by: Jus
1 Replies
2. Shell Programming and Scripting
Hi,
Can the cd command be invoked using pipes???
My actual question is slightly different. I am trying to run an executable from different folders and the path of these folders are obtained dynamically from the front end. Is there a way in which i can actually run the executable... (2 Replies)
Discussion started by: Sinbad
2 Replies
3. Programming
Extremely need to understand some aspects of pipes realization. The main question is in which memory are pipes placed? (13 Replies)
Discussion started by: pranki
13 Replies
4. Shell Programming and Scripting
can we use pipes to redirect the output of any command to grep .....
like i wanted to write this script about checking the online status of a certain user so ...can i send the output of who to grep directly using pipes...
one way was this :
who > temp
grep $uname temp
i was wondering if... (4 Replies)
Discussion started by: evergreen_cool
4 Replies
5. Shell Programming and Scripting
Hello,
I have a program which opens a pipe for communication using file handle and forks 5 child processes.
@waitlist = (1,2,3,4,5);
foreach $item (@waitlist) {
pipe *{$item},RETHAND;
unless ($pid = fork()) {
# Child process
print RETHAND... (1 Reply)
Discussion started by: the_learner
1 Replies
6. Shell Programming and Scripting
Hello,
I am writing a script to remove multiples pipes (|) from a file. It needs to look like this data|data|data
instead of data|||data||data||||data
I have found the correct sed command to do this, but I need to do it in a loop and a for loop has not worked for me. It needs to be done on... (3 Replies)
Discussion started by: TL56
3 Replies
7. Programming
Hello all, I am trying to learn more about programming Unix pipes in C.
I have created a pipe that does od -bc < myfile | head
Now, I am trying to create od -bc < myfile | head | wc
Here is my code, and I know I might be off, thats why I am here so I can get some clarification.
#include... (1 Reply)
Discussion started by: petrca
1 Replies
8. Shell Programming and Scripting
ls --color=always -laX | awk '{print $1, $3, $4, $2, $8}'
|sort -k 1,1 -k 9,9r
they work separately... but i don't know how to combine this to work.
thx! (1 Reply)
Discussion started by: surreal7z
1 Replies
9. Shell Programming and Scripting
Hey,
Well, we're starting scripting next week for my class, and I have my command done, but I don't actually understand what the meaning is, so I was just wondering if someone could "translate" this in to words so that I might be able to do this better...
command1 | command2 | command3... (5 Replies)
Discussion started by: sso
5 Replies
10. Shell Programming and Scripting
Hello all,
I have a file like this
AA||
BB||
CC||
I want to remove the pipelines (||) from the last occurrance of them in file.
that means after removal my file should be like this
AA||
BB||
CC
how can we achieve this? (2 Replies)
Discussion started by: nnani
2 Replies
LEARN ABOUT DEBIAN
approx
APPROX(8) System Manager's Manual APPROX(8)
NAME
approx - proxy server for Debian archive files
SYNOPSIS
approx [OPTION]...
DESCRIPTION
approx responds to HTTP requests made by apt-get(8). It maintains a cache of Debian archive files that have been previously downloaded, so
that it can respond with a local copy when possible. If a file not in the cache is requested, approx will download it from a remote Debian
repository and deliver the contents to the client, simultaneously caching it for future use.
Over time, the approx server cache will grow to contain multiple, unneeded versions of Debian packages. The approx-gc(8) program removes
these from the cache.
OPTIONS
-c file, --config file
Specify an additional configuration file. May be used multiple times.
USAGE
approx is invoked by inetd(8).
EXAMPLES
Suppose that a client machine's /etc/apt/sources.list file contains the following lines:
deb http://apt:9999/debian testing main
deb http://apt:9999/security testing/updates main
deb-src http://apt:9999/debian unstable main
In this example, apt is the hostname of the approx server machine on the local network. Each distribution, such as "debian" or "security",
is mapped to a remote repository in the approx server's configuration file.
For example, the approx.conf file on the approx server might contain the lines
debian http://ftp.debian.org/debian
security http://security.debian.org
The mapping scheme is very simple. If the approx.conf file contains the line
repository http://remote-host/initial/path
then any request to the approx server of the form
http://approx-server/repository/rest/of/URL
is rewritten to
http://remote-host/initial/path/rest/of/URL
when there is a "cache miss", and that file is cached as
/var/cache/approx/repository/rest/of/URL
(Note that the repository name on the left-hand side is not included in the rewritten URL unless it is explicitly mentioned in the right-
hand side's initial path.)
FILES
/etc/approx/approx.conf
Configuration file for approx and related programs.
/var/cache/approx
Default cache directory for archive files.
SEE ALSO
approx.conf(5), inetd(8), approx-import(8), approx-gc(8), apt-get(8), sources.list(5)
AUTHOR
Eric Cooper <ecc@cmu.edu>
May 2011 APPROX(8)