I would like to have a script that would change my current working directory. However, any time I execute a 'cd' command in a script, it holds only for the life of that script -- the working directory on exit is the same as when the script was initiated. Is it possible to have the script return... (3 Replies)
:confused:
Hi All,
This script is not working. I want to change the directory as per users selection in current shell. Looks like it is spawning sub-shell internally.
I have used
. changedir.sh
source changedir.sh
./changedire.sh
But did not work. Currently shell directory remain the... (4 Replies)
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,
I am trying to change the directory in my script, & want to check if the directory is present or not .
Ex:
cd /home/xyz/temp/logs
if the logs directory is not present i want to show the error in script instead of shell script error.
Can anybody please help me on the same
Thx in... (2 Replies)
HI,
I need to change the working directory by using the shell script
/Export/home/user_name
I have to go one step back like
/Export/home
Please help on this.:confused: (3 Replies)
Hi All,
I am using the awk command to replace ',' by '\t' (tabs) in a csv file. I would like to apply this to all .csv files in a directory and create .txt files with the tabs.
How would I do this in a script?
I have the following script called "csvtabs":
awk 'BEGIN {
FS... (4 Replies)
Hello,
I must change files and dirs name which contains che "?" char, I try this:
rename 's/?/-/' *.*
nothing, what's the problem?
thanks (14 Replies)
Discussion started by: ionral
14 Replies
LEARN ABOUT PHP
tidy_get_head
TIDY_GET_HEAD(3) 1 TIDY_GET_HEAD(3)tidy::head - Returns atidyNodeobject starting from the <head> tag of the tidy parse tree
Object oriented style
SYNOPSIS
tidyNode tidy::head (void )
DESCRIPTION
Procedural style
tidyNode tidy_get_head (tidy $object)
Returns a tidyNode object starting from the <head> tag of the tidy parse tree.
PARAMETERS
o $object
- The Tidy object.
RETURN VALUES
Returns the tidyNode object.
EXAMPLES
Example #1
tidy_get_head(3) example
<?php
$html = '
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);
$head = $tidy->head();
echo $head->value;
?>
The above example will output:
<head>
<title>test</title>
</head>
NOTES
Note
This function is only available with Zend Engine 2 (PHP >= 5.0.0).
SEE ALSO tidy.body(3), tidy.html(3).
PHP Documentation Group TIDY_GET_HEAD(3)