06-10-2013
You are just a couple of clicks away:-
^H
This User Gave Thanks to wisecracker For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Could someone tell me how to delete a particular text inside an existing file without opening the file?
e.g. I have a text file called mytext.txt which contains three lines of text below and I want to delete “ ;” and delete the second line “b ;” including the carriage return.
a ;
b ;
c ;... (12 Replies)
Discussion started by: stevefox
12 Replies
2. UNIX for Dummies Questions & Answers
Hi
To delete some text in 2 files in line1 ( not complete line) in unix without opening the files.
For example: source file is like this
<?xml version="1.0"... (5 Replies)
Discussion started by: pyaranoid
5 Replies
3. Shell Programming and Scripting
I have a requirement where i have to read from a .sh file a text lying bet characters like 'SELECT' & ';'...Please help me out in this. I am new to shell scripting. (2 Replies)
Discussion started by: goutam_igate
2 Replies
4. UNIX for Dummies Questions & Answers
I have a text file that looks like this:
I want to delete the last character of first column in all rows so that my output looks like this:
Thanks a lot! (1 Reply)
Discussion started by: evelibertine
1 Replies
5. UNIX for Dummies Questions & Answers
When I use vi to see what's in the file I get this:
int add1(int x) {^M return x + 1;^M}
^Mint subtract1(int x) {^M return x - 1;^M}
^Mint double_it(int x) {^M return x * 2;^M}
^Mint halve_it(int x) {^Mreturn x / 2;^M}
^Mint main() {^M int myint;^M int result;^M ... (2 Replies)
Discussion started by: Nonito84
2 Replies
6. Red Hat
Hi,
I heard a command that can collect all RHEL 5 log in a single compress file before I forget.
Does any body know...What the command is ?
Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies
7. Shell Programming and Scripting
I have a tab delimited file of the following format
2 L a
2 G b
2 L c
2 G a
3 G a
3 G b
3 L c
4 L a
4 G a
4 G b
4 L c
4 G a
..
...
I want to count the number of G's and L's with in the first column and the third column/categories such that I would get an output file: (6 Replies)
Discussion started by: Lucky Ali
6 Replies
8. Shell Programming and Scripting
Guys,
I know that the below command will cut the 13th field from test.txt file
awk -F"|" '{print $13}' test.txt
The answer would be,
CA
CN
Ohio
If we see the 3 rd one, it has more than 2 characters. So i wanted to check this in if condition and i want to get the output if the 13th... (4 Replies)
Discussion started by: AraR87
4 Replies
9. Red Hat
Hello,
I'm trying to figure out how to display Chinese and Japanese Characters on my RHEL 6 Console. There is no more "bogl-bterm" for RHEL6, that is not supported anymore. Is there any way that I could display them?
Thank you. (2 Replies)
Discussion started by: pjeedu2247
2 Replies
10. Shell Programming and Scripting
I am using flatfile, in that flat file we are getting the junk chars
1)I21001f<82>^Me<85>!h49 Service Charge
2) I21001f‚
e...!h49 Service Charge
please tell me how to remove all junk chars in unix scripts. (1 Reply)
Discussion started by: Talari
1 Replies
UP2DATE(8) Red Hat, Inc. UP2DATE(8)
NAME
rhnsd - a program for quering the Red Hat Network for updates and information
SYNOPSIS
rhnsd [OPTION]...
DESCRIPTION
rhnsd is a daemon process that runs in the background and periodically polls the Red Hat Network to see if there are any queued actions
available. If any are queued, it runs them.
rhnsd is typically started from the init scripts in /etc/init.d/rhnsd when it's time to poll the Red Hat Network servers for available
updates and actions. The default interval is every 120 minutes. The minimum polling interval is 60 minutes.
To check for updates, rhnsd runs an external program called rhn_check. This is a small application that actually makes the network connec-
tion to Red Hat Networks.
The rhnsd daemon does not listen on any network ports, nor does it ever talk to the network directly. Any network activity is done via the
rhn_check utility.
rhnsd can be configure by editing the /etc/sysconfig/rhn/rhnsd config file. This is actually the configuration file the rhnsd init script
/etc/init.d/rhnsd uses.
-i, --interval
Specify the interval that rhnsd should wait between checking the Red Hat Network. Default is 120 minutes, the minimum is 60 minutes.
This can also be specified in /etc/sysconfig/rhn/rhnsd
-v, --verbose
output more information about what rhnsd is doing.
-f, --foreground
force the rhnds process to run in the foreground instead of automatically backgrounding itself, as it does by default.
FILES
/etc/sysconfig/rhn/rhnsd
Configuration settings for the rhnsd daemons init script.
/usr/sbin/rhn_check
The external program launched by rhnsd to connect to the Red Hat Network and retrieve any actions that have queued up.
/etc/sysconfig/rhn/systemid
A certification that authenticates the client machine to the Red Hat Network. Generated via the up2date or rhnreg_ks utility.
SEE ALSO
The rhnsd daemon is tightly coupled with Red Hat Network. Visit <http://www.redhat.com/network> for access or to sign up.
rhn_check(8), up2date(8), up2date-config(8),
AUTHORS
Written by Preston Brown <pbrown@redhat.com> and
Cristian Gafton <gafton@redhat.com>
REPORTING BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 1999, 2000 Red Hat, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
4th Berkeley Distribution Fri Feb 9 2001 UP2DATE(8)