I am using AIX and ksh.
I need to display the contents of a file that has a pid (process id). Because the file is open, it doesn't have the line feed or new line, so for some reason if I do this:
`cat $pid` , where $pid is the name of the fully qualified file, it displays
test3.sh: 426110:... (1 Reply)
Hi,
I'm struggling to write a script to do the following,
-will go through each line in the file
-in a specific character positions, changes
the value to a new value
-These character positions are fixed througout the file
-----------------------
e.g.: file1.sh will have the following 3... (4 Replies)
Hi all
I am searching for a pattern in a file .
The file content is in a single line.If am doing a grep or sed for the a particular pattern am getting whole file.
I want the result in different lines.
attaching the file for reference
search pattern "/xxxxxx/hhhh/tttttttt/sss/" and... (4 Replies)
I want a script that will move everything beyond a certain line number or beyond a certain content word into another file.
For example, if file A has this:
first line
second line
third line
forth line
fifth line
sixth line
I want to run a script that will move everything beyond the third... (4 Replies)
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Hi Guys,
I have a big file like this. It has cache group line ( the bold lines ) and then followed by 10 status lines showing either Compelte or Failed. This pattern repeats several time. We can assume all the status lines have either Complete or Failed status for that Cache Group line.
I... (13 Replies)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Hi, I am trying to use an awk command to replace specific character positions on a line beginning with 80 with contents of another file.
The line beginning with 80 in file1 is as follows:
I want to replace the 000000000178800 (positions 34 - 49) on this file with the contents of... (2 Replies)
I've got a file that looks like this (spaces before first entries intentional):
12345650-000005000GL140227 ANNUAL HELC FEE EN
22345650-000005000GL140227 ANNUAL HELC FEE EN
32345650-000005000GL140227 ANNUAL HELC FEE EN
I want to read through the file line by line,... (6 Replies)
GEARMANWORKER(3) 1 GEARMANWORKER(3)The GearmanWorker classINTRODUCTION CLASS SYNOPSIS
GearmanWorker
GearmanWorker
Methods
o public bool GearmanWorker::addFunction (string $function_name, callable $function, [mixed &$context], [int $timeout])
o public bool GearmanWorker::addOptions (int $option)
o public bool GearmanWorker::addServer ([string $host = 127.0.0.1], [int $port = 4730])
o public bool GearmanWorker::addServers (string $servers = 127.0.0.1:4730)
o public void GearmanWorker::clone (void )
o public GearmanWorker::__construct (void )
o public bool GearmanWorker::echo (string $workload)
o public string GearmanWorker::error (void )
o public int GearmanWorker::getErrno (void )
o public int GearmanWorker::options (void )
o public bool GearmanWorker::register (string $function_name, [int $timeout])
o public bool GearmanWorker::removeOptions (int $option)
o public int GearmanWorker::returnCode (void )
o public bool GearmanWorker::setId (string $id)
o public bool GearmanWorker::setOptions (int $option)
o public bool GearmanWorker::setTimeout (int $timeout)
o public int GearmanWorker::timeout (void )
o public bool GearmanWorker::unregister (string $function_name)
o public bool GearmanWorker::unregisterAll (void )
o public bool GearmanWorker::wait (void )
o public bool GearmanWorker::work (void )
PHP Documentation Group GEARMANWORKER(3)