I have a file that will sometimes contain a pattern. The pattern is this:
W/D FRM CHK 00
I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. (1 Reply)
I have a file that will sometimes contain a pattern. The pattern is this:
FRM CHK 0000
I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. (4 Replies)
#!/usr/bin/perl
use Shell;
open THEFILE, "C:\galileo_integration.txt" || die "Couldnt open the file!";
@wholeThing = <THEFILE>;
close THEFILE;
foreach $line (@wholeThing){
if ($line =~ m/\\0$/){
@nextThing = $line;
if ($line =~ s/\\0/\\LATEST/g){
@otherThing =... (2 Replies)
Hi,
I have created one shell script in which it will count number of "~" tilda charactors from each line of the file.But the problem is that i need to count each line count individually, that means. if line one contains 14 "~"s and line two contains 15 "~"s then it should give an error msg.each... (3 Replies)
Hi,
I have got the below requirement. please suggest.
I have a file like,
Processing Item is:
/data/ing/cfg2/abc.txt
/data/ing/cfg3/bgc.txt
Processing Item is:
/data/cmd/for2/ght.txt
/data/kernal/config.klgt.txt
I want to process the above file to get the output file like,
... (5 Replies)
I have a directory of files, each with a variable (though small) number of lines. I would like to go through each line in each file, and print the:
-file name
-line number
-number of matches to the pattern /comp/ for each line.
Two example files:
cat... (4 Replies)
I am trying to combine lines with these conditions:
1. First line starts with text of "libname VALUE db2 datasrc" where VALUE can be any text.
2. If condition1 is met then continue to combine lines through a line that ends with a semicolon.
3. Ignore case when matching patterns and remove any... (5 Replies)
Hello,
I have been working on Awk/sed one liner which counts the number of occurrences of '|' in pipe separated lines of file and delete the line from files if count exceeds "17".
i.e need to get records having exact 17 pipe separated fields(no more or less)
currently i have below :
awk... (1 Reply)
XFINDPROXY(1) General Commands Manual XFINDPROXY(1)NAME
xfindproxy - locate proxy services
SYNOPSIS
xfindproxy -manager managerAddr -name serviceName -server serverAddr [-auth] [-host hostAddr] [-options opts]
DESCRIPTION
xfindproxy is a program used to locate available proxy services. It utilizes the Proxy Management Protocol to communicate with a proxy
manager. The proxy manager keeps track of all available proxy services, starts new proxies when necessary, and makes sure that proxies are
shared whenever possible.
The -manager argument is required, and it specifies the network address of the proxy manager. The format of the address is a standard ICE
network id (for example, "tcp/blah.x.org:6500").
The -name argument is required, and it specifies the name of the desired proxy service (for example, "LBX"). The name is case insensitive.
The -server argument is also required, and it specifies the address of the target server. The format of the address is specific to the
proxy service specified with the -name argument. For example, for a proxy service of "LBX", the address would be an X display address
(e.g, "blah.x.org:0").
The -auth argument is optional. If specified, xfindproxy will read 2 lines from standard input. The first line is an authoriza-
tion/authentication name. The second line is the authorization/authentication data in hex format (the same format used by xauth). xfind-
proxy will pass this auth data to the proxy, and in most cases, will be used by the proxy to authorize/authenticate itself to the target
server.
The -host argument is optional. If xfindproxy starts a new proxy service, it will pass the host specified. The proxy may choose to
restrict all connections to this host. In the event that xfindproxy locates an already existing proxy, the host will be passed, but the
semantics of how the proxy uses this host are undefined.
The -options argument is optional. If xfindproxy starts a new proxy service, it will pass any options specified. The semantics of the
options are specific to each proxy server and are not defined here. In the event that xfindproxy locates an already existing proxy, the
options will be passed, but the semantics of how the proxy uses these options are undefined.
If xfindproxy is successful in obtaining a proxy address, it will print it to stdout. The format of the proxy address is specific to the
proxy service being used. For example, for a proxy service of "LBX", the proxy address would be the X display address of the proxy (e.g,
"blah.x.org:63").
If xfindproxy is unsuccessful in obtaining a proxy address, it will print an error to stderr.
SEE ALSO
proxymngr (1), Proxy Management Protocol spec V1.0
AUTHOR
Ralph Mor, X Consortium
X Version 11 xfindproxy 1.0.1 XFINDPROXY(1)