Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
I have several files that are being generated every 20 minutes. Each file contains 2 columns. The 1st column is Text, 2nd column is Data.
I would like to generate one single file from all these files as follows:
One instance of 1st column Text, followed by 2nd column Data separated by... (5 Replies)
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Hi All,
Please help i have written an ksh script, where i am actually take count of lines in one file and want to update this count to 2nd field of a new file and apend the this into an existing file.
Note the below script is in for loop
-------- I am apending few records in a file... (7 Replies)
Hi Gurus,
I have file content sample:
,5113955056,,TAgent-Suspend
,5119418233,,TAgent-Suspend
,5102119078,,TAgent-Suspend
filenames 120229H5_suspend, 120229H6_unsuspend
I receive those files one of directory /home/temp/
I need following:
1. Backup first /home/temp/ file to... (5 Replies)
I have following entries file abc.txt
abc83.out.remote TRUE
abc84.out.remote TRUE
abc85.out.remote TRUE
abc86.out.remote TRUE
Please help me, how do i toggle the entries listed in 2nd column based on the search patterns (abcxx)
abcxx, i can get... (14 Replies)
I have a csv file formatted like this:
2014-08-21 18:06:26,A,B,12345,123,C,1232,26/08/14 18:07and I'm trying to change it to MM/DD/YYYY HH:MM for both occurances.
I have got this:
awk -F, 'NR <=1 {print;next}{"date +%d/%m/%Y\" \"%H:%m -d\""$1 "\""| getline dte;$1=dte}1' OFS="," test.csvThis... (6 Replies)
hi
I have 2 file with more than 10 columns for both
1st file
apple,0,0,0......
orange,1,2,3.....
mango,2,4,5.....
2nd file
apple,2,3,4,5,6,7...
orange,2,3,4,5,6,8...
watermerlon,2,3,4,5,6,abc...
mango,5,6,7,4,6,def.... (1 Reply)
Discussion started by: tententen
1 Replies
LEARN ABOUT PHP
proc_get_status
PROC_GET_STATUS(3) 1 PROC_GET_STATUS(3)proc_get_status - Get information about a process opened byproc_open(3)SYNOPSIS
array proc_get_status (resource $process)
DESCRIPTION proc_get_status(3) fetches data about a process opened using proc_open(3).
PARAMETERS
o $process
- The proc_open(3) resource that will be evaluated.
RETURN VALUES
An array of collected information on success, and FALSE on failure. The returned array contains the following elements:
+---------+--------------------------------------+---+
|element | | |
| | | |
| | type | |
| | | |
| | description | |
| | | |
+---------+--------------------------------------+---+
|command | | |
| | | |
| | | |
| | string | |
| | | |
| | The command string that was passed | |
| | to proc_open(3). | |
| | | |
| pid | | |
| | | |
| | | |
| | int | |
| | | |
| | process id | |
| | | |
|running | | |
| | | |
| | | |
| | bool | |
| | | |
| | | |
| | TRUE if the process is still run- | |
| | ning, FALSE if it has terminated. | |
| | | |
|signaled | | |
| | | |
| | | |
| | bool | |
| | | |
| | | |
| | TRUE if the child process has been | |
| | terminated by an uncaught signal. | |
| | Always set to FALSE on Windows. | |
| | | |
|stopped | | |
| | | |
| | | |
| | bool | |
| | | |
| | | |
| | TRUE if the child process has been | |
| | stopped by a signal. Always set to | |
| | FALSE on Windows. | |
| | | |
|exitcode | | |
| | | |
| | | |
| | int | |
| | | |
| | The exit code returned by the | |
| | process (which is only meaningful if | |
| | running is FALSE). Only first call | |
| | of this function return real value, | |
| | next calls return -1. | |
| | | |
|termsig | | |
| | | |
| | | |
| | int | |
| | | |
| | The number of the signal that | |
| | caused the child process to termi- | |
| | nate its execution (only meaningful | |
| | if signaled is TRUE). | |
| | | |
|stopsig | | |
| | | |
| | | |
| | int | |
| | | |
| | The number of the signal that | |
| | caused the child process to stop its | |
| | execution (only meaningful if | |
| | stopped is TRUE). | |
| | | |
+---------+--------------------------------------+---+
SEE ALSO proc_open(3).
PHP Documentation Group PROC_GET_STATUS(3)