10-09-2013
You could also use either "|" or "\\" as a sed limiter,
actualy "," would be possible too - but not in this case.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
what is the simple way to do the following :
i would search in a crontab file for specific string of characters (ex: toto.ksh) and only on this line change the beginning as follows :
00 23 * * 0
with
00 23 * * 3
or maybe 2 changes:
with
10 23 * * 3
thanks in advance
Christian (7 Replies)
Discussion started by: Nicol
7 Replies
2. Shell Programming and Scripting
Hi there,
may someone easily help me on this :
I want to insert a text in a specific line number like :
linenumb2start=`cat memory_map.dld | nl -ba | egrep -i "label" | cut -f1`
line2insert=`expr $linenumb2start + 2`
and now I need to replace something like {} with {comment} at... (8 Replies)
Discussion started by: homefp
8 Replies
3. Shell Programming and Scripting
Hi,
I would like to get rid of all comment in an xml file by grep or sed command:
The content seem like this:
<!-- ab cd
ef gh
ij kl -->
Anyone can help?
Thanks and Regards (3 Replies)
Discussion started by: RonLii
3 Replies
4. Shell Programming and Scripting
I'm trying to write a script to help automate some VERY tedious manual tasks.
I have groups of fairly large XML files (~3mb+) that I need to edit.
I need to look through the files and parse the XML looking for a certain flag contained in a field. If I find this flag (an integer value) I need... (4 Replies)
Discussion started by: J-Hon
4 Replies
5. Shell Programming and Scripting
I am running a script remotely to do the following
1. Kill all processes by a user
2. Uninstall certain packages
3. FTP over a new file
4. Kill a ldap process that is not allowing my /devdsk/c0t0d0s7 slice to un-mount
5. Unmount /h
6. comment out the slice in vfstab
7. newfs the... (9 Replies)
Discussion started by: deaconf19
9 Replies
6. Shell Programming and Scripting
I have around 25 hosts and each hosts has 4 instance of jboss and 4 different ip attached to it . I need to make some changes to the startup scripts. Any tips appreciated. I have total of 100 instances which bind to 100 different ip address based on instance name.
For example
File1
... (1 Reply)
Discussion started by: gubbu
1 Replies
7. Shell Programming and Scripting
I have a requirement where I want to add a comment '#' in my crontab, run a process, than remove the '#' I added.
Example cron
#5,10 * * * * ls -lt /tmp
10,5 * * * * ls -lt /var
I would like to be able use sed or awk to add a '#' at the begining of each
line. After the command... (4 Replies)
Discussion started by: BeefStu
4 Replies
8. Shell Programming and Scripting
Good afternoon all,
I'm hoping my newbie question can help bolster someone's street_cred.sh today.
I'm trying to "fingerprint" SQL on its way into the rdbms for a benchmarking process (so I can tie the resource allocation back to the process more precisely).
To do this, I'm essentially... (4 Replies)
Discussion started by: toeharp
4 Replies
9. Shell Programming and Scripting
My first comment on every file contains the license message. I want to replace with a new license message. I used the below sed script, which replaces all comments. What is the modification or any other method with awk script for the below to edit only the first comment(license message)?
#sed -f... (1 Reply)
Discussion started by: vpshastry
1 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm looking to expand the following command:
INACTIVE_KERNELS=$(python -mplatform | grep -qi red && rpm -qa | grep '^kernel-' |grep -vE `uname -r` | paste -sd \; || echo "Not Red Hat Server")
Currently this command will check if my server is RedHat server using the grep -qi... (6 Replies)
Discussion started by: greavette
6 Replies
LEARN ABOUT PHP
session_cache_limiter
SESSION_CACHE_LIMITER(3) 1 SESSION_CACHE_LIMITER(3)
session_cache_limiter - Get and/or set the current cache limiter
SYNOPSIS
string session_cache_limiter ([string $cache_limiter])
DESCRIPTION
session_cache_limiter(3) returns the name of the current cache limiter.
The cache limiter defines which cache control HTTP headers are sent to the client. These headers determine the rules by which the page
content may be cached by the client and intermediate proxies. Setting the cache limiter to nocache disallows any client/proxy caching. A
value of public permits caching by proxies and the client, whereas private disallows caching by proxies and permits the client to cache the
contents.
In private mode, the Expire header sent to the client may cause confusion for some browsers, including Mozilla. You can avoid this problem
by using private_no_expire mode. The Expire header is never sent to the client in this mode.
Setting the cache limiter to '' will turn off automatic sending of cache headers entirely.
The cache limiter is reset to the default value stored in session.cache_limiter at request startup time. Thus, you need to call ses-
sion_cache_limiter(3) for every request (and before session_start(3) is called).
PARAMETERS
o $cache_limiter
- If $cache_limiter is specified, the name of the current cache limiter is changed to the new value.
Possible values
+------------------+------------------------------------------------------------------------------------------------------------------------------------+
| Value | |
| | |
| | Headers sent |
| | |
+------------------+------------------------------------------------------------------------------------------------------------------------------------+
| | |
| public | |
| | |
| | |
| | |
| | Expires: (sometime in the future, according session.cache_expire) |
| | Cache-Control: public, max-age=(sometime in the future, according to session.cache_expire) |
| | Last-Modified: (the timestamp of when the session was last saved) |
| | |
| | |
|private_no_expire | |
| | |
| | |
| | |
| | Cache-Control: private, max-age=(session.cache_expire in the future), pre-check=(session.cache_expire in the future) |
| | Last-Modified: (the timestamp of when the session was last saved) |
| | |
| | |
| private | |
| | |
| | |
| | |
| | Expires: Thu, 19 Nov 1981 08:52:00 GMT |
| | Cache-Control: private, max-age=(session.cache_expire in the future), pre-check=(session.cache_expire in the future) |
| | Last-Modified: (the timestamp of when the session was last saved) |
| | |
| | |
| nocache | |
| | |
| | |
| | |
| | Expires: Thu, 19 Nov 1981 08:52:00 GMT |
| | Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 |
| | Pragma: no-cache |
| | |
+------------------+------------------------------------------------------------------------------------------------------------------------------------+
RETURN VALUES
Returns the name of the current cache limiter.
EXAMPLES
Example #1
session_cache_limiter(3) example
<?php
/* set the cache limiter to 'private' */
session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
echo "The cache limiter is now set to $cache_limiter<br />";
?>
SEE ALSO
session.cache_limiter.
PHP Documentation Group SESSION_CACHE_LIMITER(3)