hello,
i have a listing (let say ABC) consists of the below:
:
public database link
public synonym
role
rollback segment
:
when i run the below for loop,
for i in `more ABC`
do
echo "$i"
done
it gives me,
:
public
database (4 Replies)
Suppose that you want to mostly not echo commands inside your script during execution (e.g. to not bog the user down with details that they do not care about) but that there is the occaisional script line that you would like to echo before you execute it.
Is there an elegant way to achieve this?... (3 Replies)
I have script like
echo -n FINISHED FEXP: ${TABLE2EXP}
echo $STATUS
I want the output of both the echo statement in one line
How can i do this (3 Replies)
Hello,
I'm writing some bash scripts and I'm trying to get an echo command and the output of another command to display on the same line. For example:
I want to run
echo "Operating System: " unameand have it displayed as
Operating System: Darwin
Thanks for your help! (7 Replies)
Hi,
I try to write script and echo two command at the same line .
echo "A"
echo "B"
How can I pipe above two command at the same line in text file .
So, in the output text file , you can see below ???
A B
not
A
B
Any sugggestion ??? (4 Replies)
Hello,
I have a very basic script
#!/usr/bin/ksh
while
print ' '
print ' 1. View Command History '
print ' 2. List files in current Directory '
read opt'?Enter Option> ' ;do
if ;then
fc -l
fi
#
if ;then
ls -la
I want to... (10 Replies)
Hi ,
This might sound little familar to you guys, but am struck with something.
i have an IF conditioned loop which will determine a variable to get used in the later part of the script.
if ;
then
if ;
then
Var_name="This is first line.This is second line.This is... (11 Replies)
Hi,
i am witing a function in a shell script which will echo the file name and witre in to the new line, but i dont get expected results. The below is my code
#!/bin/bash
DATE=$1
myview(){
base_name=$1
echo -ne "${base_name}${DATE}">> /path/to/file/txt
}
myview sample3030
myview... (5 Replies)
RUNKIT_FUNCTION_REDEFINE(3) 1 RUNKIT_FUNCTION_REDEFINE(3)runkit_function_redefine - Replace a function definition with a new implementationSYNOPSIS
bool runkit_function_redefine (string $funcname, string $arglist, string $code)
DESCRIPTION
Note
By default, only userspace functions may be removed, renamed, or modified. In order to override internal functions, you must enable
the runkit.internal_override setting in php.ini.
PARAMETERS
o $funcname
- Name of function to redefine
o $arglist
- New list of arguments to be accepted by function
o $code
- New code implementation
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
A runkit_function_redefine(3) example
<?php
function testme() {
echo "Original Testme Implementation
";
}
testme();
runkit_function_redefine('testme','','echo "New Testme Implementation
";');
testme();
?>
The above example will output:
Original Testme Implementation
New Testme Implementation
SEE ALSO runkit_function_add(3), runkit_function_copy(3), runkit_function_rename(3), runkit_function_remove(3).
PHP Documentation Group RUNKIT_FUNCTION_REDEFINE(3)