I want replace 2.6.15-25-server with 2.6.17 ?
$uname -r
2.6.15-25-server
1) mv /bin/uname /bin/uname.orig
2) put the following in the new /bin/uname:
#!/bin/sh
echo Uname (New Version)
/bin/uname.orig
:confused: (3 Replies)
I have a applicaton , when run /tmp/my_script , that will output the result to the screen ( as below ) , the output is very long ( about 1500 lines ) , I have a program ( as below ) that will show the output with function 1 > 1 , it works fine , however , the output only show page 1 of this 1500... (5 Replies)
I'm very new to writing scripts, so here is my problem...I have the following code already written (in perl)
system "rm file2";
open(FILE2, ">file2");
open(MYINPUTFILE, "file");
while(<MYINPUTFILE>) {
my($line) = $_;
chomp($line);
print file2 "$line\n";
print... (2 Replies)
<key>ExcludeSimpleHostnames</key>
<integer>0</integer>
<key>FTPPassive</key>
Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key.
I got this output code... (8 Replies)
I have a file which has following contents
usmtnz-dinfsi19
62
61
18400
18800
99.7
usmtnz-dinfsi19
62
61
18400
18800
99.7
i want the o/p to be like
date (7 Replies)
when i run the following command
db2 list tablespaces
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
State = 0x0000
Tablespace ID ... (3 Replies)
Currently, i am trying to create a simple robust script that is intended to move the contents of a given source directory to a target directory. Optionally, the script should allow to either move the whole source dir content, or dotfiles only, or visible files only. I am aware the target directory... (0 Replies)
Can anyone please let me know the meaning of output of uname -a ?
I am totally new to unix or linux and just thinking to start learning.
When I run uname -a the output I get is -
"Linux blx28ap01 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux"
I want to... (7 Replies)
Discussion started by: csrohit
7 Replies
LEARN ABOUT PHP
addcslashes
ADDCSLASHES(3) 1 ADDCSLASHES(3)addcslashes - Quote string with slashes in a C styleSYNOPSIS
string addcslashes (string $str, string $charlist)
DESCRIPTION
Returns a string with backslashes before characters that are listed in $charlist parameter.
PARAMETERS
o $str
- The string to be escaped.
o $charlist
- A list of characters to be escaped. If $charlist contains characters
,
etc., they are converted in C-like style, while
other non-alphanumeric characters with ASCII codes lower than 32 and higher than 126 converted to octal representation. When you
define a sequence of characters in the charlist argument make sure that you know what characters come between the characters that
you set as the start and end of the range.
<?php
echo addcslashes('foo[ ]', 'A..z');
// output: foo[ ]
// All upper and lower-case letters will be escaped
// ... but so will the []^_`
?>
<?php
echo addcslashes("zoo['.']", 'z..A');
// output: zoo['.']
?>
RETURN VALUES
Returns the escaped string.
CHANGELOG
+--------+---------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------+
| 5.2.5 | |
| | |
| | The escape sequences v and f were added. |
| | |
+--------+---------------------------------------------+
EXAMPLES
$charlist like "