Hi Friends,
I have a log file as below
siteid = HYD
spc = 100
rset = RS_D_M
siteid = DEL
spc = 200
rset = RS_K_L
siteid = DEL2
spc = 210
rset = RS_D_M
Now I need a output like column wise as below.
siteid SPC rset
HYD 100 RS_D_M (2 Replies)
hello,
I have output from a command and I need to filter some info out of that. I tried awk command but I can not grep what I am looking for:
Following is the output and I need to capture "disabled" for each volume from first column and report:
# vol status
Volume State ... (2 Replies)
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Hi,
Is there a function in awk or sed which will check the case of the columns.
If my column 8 is in lower case then I want to change my column 10 data in lower case and vice versa.
I know in awk we have tolower and toupper functions but can we manipulate the data based on the case ??
... (3 Replies)
Hello Experts,
File contains 10 columns with | delimeter. 1,3,4,5,7,9 columns are required columns means it should contains values.
i need those records, rest of it will contain or not contain data.
test1.txt:
a@a.com|a|b|c|d|e|f|g|h|i
|a|b|c|d|e|f|g|h|i
b@b.com|a||c|d|e|f|g|h|i... (7 Replies)
Hi,
I have a file with 6 columns. I want to check if column 1 and 2 fall between column 5 and 6 I want to call them as "TRUE_genes" if not then call them as "FALSE_genes". I can do it for checking one column but how to mention about two columns.
file1
110371373... (1 Reply)
Hi All,
I need help for below scenario :
I have a principals.xml_24092012backup file :
cat principals.xml_24092012backup
</user>
<user username="eramire" password="2D393C01720749256303D204826A374D9AE9ABABBF8A">
<roleMapping rolename="VIEW_EVERYTHING"/>
</user>
... (2 Replies)
Any good way to check if code has the required output
# /sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts
net.ipv4.icmp_echo_ignore_broadcasts = 1
/sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts | grep "= 1"
net.ipv4.icmp_echo_ignore_broadcasts = 1
What I can think of is above, and it... (16 Replies)
Hi All,
i am trying to print required multiple columns dynamically from a fie.
But i am able to print only one column at a time.
i am new to shell script, please help me on this issue.
i am using below script
awk -v COLT=$1 '
NR==1 {
for (i=1; i<=NF; i++) {
... (2 Replies)
Discussion started by: balu1234
2 Replies
LEARN ABOUT PHP
get_included_files
GET_INCLUDED_FILES(3) 1 GET_INCLUDED_FILES(3)get_included_files - Returns an array with the names of included or required filesSYNOPSIS
array get_included_files (void )
DESCRIPTION
Gets the names of all files that have been included using include(3), include_once(3), require(3) or require_once(3).
RETURN VALUES
Returns an array of the names of all files.
The script originally called is considered an "included file," so it will be listed together with the files referenced by include(3) and
family.
Files that are included or required multiple times only show up once in the returned array.
EXAMPLES
Example #1
get_included_files(3) example
<?php
// This file is abc.php
include 'test1.php';
include_once 'test2.php';
require 'test3.php';
require_once 'test4.php';
$included_files = get_included_files();
foreach ($included_files as $filename) {
echo "$filename
";
}
?>
The above example will output:
abc.php
test1.php
test2.php
test3.php
test4.php
NOTES
Note
Files included using the auto_prepend_file configuration directive are not included in the returned array.
SEE ALSO include(3), include_once(3), require(3), require_once(3), get_required_files(3).
PHP Documentation Group GET_INCLUDED_FILES(3)