01-20-2013
In what language, and why have you posted in the Red Hat forum?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everyone , have a nice
i would need a little help on this
i have file which contains blocks such as given below
<hgsdp:msisdn=923228719047,loc;
HLR SUBSCRIBER DATA
SUBSCRIBER IDENTITY
MSISDN IMSI STATE AUTHD
923228719047 410072110070614 CONNECTED ... (3 Replies)
Discussion started by: Dastard
3 Replies
2. Shell Programming and Scripting
Hi all !
I have a file name file1 like this :
/A
/A/1
/A/2
/B
/B/3
/B/4
/tmp/C
/tmp/C/5
/tmp/C/6
I want to write a script to take content from file2 and print out to file2 only these lines :
/A
/B
/tmp/C (12 Replies)
Discussion started by: camus
12 Replies
3. Shell Programming and Scripting
Reposting since I didnt not get any reply.
I have a problem while filtering records from a file. Can somebody help please?
For eg: Consider the below files
Record file:
0003@00000000000190@20100401@201004012010040120100401@003@... (1 Reply)
Discussion started by: gpaulose
1 Replies
4. UNIX for Dummies Questions & Answers
Hello
I have an input file which is tab delimited.In my unix script I have search for a particular pattern.If it is NOT present then I have to write in an output file.
Eg.Input file is :
123 hello 7779 hi hkjh88 hahah
678 hello 90845 ti hkjsdfh 9324
And the search string is "123... (2 Replies)
Discussion started by: akashtcs
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a file with hundreds of records.
There are four fields on each line, separated by semicolons.
Name
Height (meters)
Country
Continent (Africa,Asia,Europe,North America,Oceania,South
America,The Poles)
I need to Write the command to find display how many mountains appear... (1 Reply)
Discussion started by: erora
1 Replies
6. Shell Programming and Scripting
I have a .kml file. So I want filter the .kml to get only the tags that have this numeric codes that they are in a text file
11951
11952
74014
11964
11965
11969
11970
11971
11972
60149
74018
74023
86378
11976
11980
11983
11984
11987 (5 Replies)
Discussion started by: pcoj33
5 Replies
7. Shell Programming and Scripting
I have a main file:
...
17,466971 0,095185 17,562156 id 676
17,466971 0,096694 17,563665 id 677
17,466971 0,09816 17,565131 id 678
17,466971 0,099625 17,566596 id 679
17,466971 0,101091 17,568062 id 680
17,466971 0,016175 17,483146 id... (4 Replies)
Discussion started by: boblix
4 Replies
8. UNIX for Dummies Questions & Answers
Hi Folks,
I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file.
bash scripting is what i need.
Data.txt
Name OrderID Quantity
Sam 123 300
Jay 342 498
Kev 78 2500
Sam 420 50
Vic 10... (3 Replies)
Discussion started by: tech_frk
3 Replies
9. Shell Programming and Scripting
Not sure if this is the correct forum for this question. I have two files. file1.zip, file2
Input:
file1.zip
col1, col2 , col3
a , b , 0:0:0:0:0:c436:9346:d40b
x, y, 0:0:0:0:0:880:39f9:c9a7
m, n , 0:0:0:0:0:80c7:9161:fe00
file2.txt
col1
c4:36:93:46:d4:0b... (1 Reply)
Discussion started by: anil.v
1 Replies
10. Shell Programming and Scripting
Gents,
I am stuck at end of my process.. I got the following file (input). And I want to filter it, checking from the column 2 to the end of the file.
The condition is if in any column from cl2 to the end exist value 3, not filter, but if there is not value 3, should print all the row(output... (6 Replies)
Discussion started by: jiam912
6 Replies
LEARN ABOUT REDHAT
rhnreg_ks
RHNREG_KS(8) Red Hat Linux System Manual RHNREG_KS(8)
NAME
rhnreg_ks - a program for non interactively registering systems to Red Hat Network
SYNOPSIS
rhnreg_ks [OPTION]... [PACKAGE NAME]...
DESCRIPTION
rhnreg_ks is a utility for registering a system with the Red Hat Network. It is designed to be used in a non-interactive enviroment (a
kickstart style install, for example). All the information can be specified on the commandline or stdin.
--profilename
Specify the profilename that should be used as an identifier for the system in Red Hat Network
--username
The username to register the system with under Red Hat Network. This can be an existing Red Hat Network username, or a new username.
--password
The password associated with the username specified with the --username option. This is an unencrypted password.
--orgid
Specify an organizational id of the org to register this system under. This is optional, and only used if registered a system to an
existing Red Hat Network organization.
--orgpassword
The password assocated with the orgig specified with the --orgid option. This is an unencrypted password.
--email
The email address associated with the username specified iwth the --username option.
--serialnumber
Specify a servial number to associate with the system. This is optional, and only useful when combined with an orgid.
--contactinfo
Read contact info from standard in. The format is one entry per line, colon seperated. Valid options are reg_num, title, first_name,
last_name, company, position, address1, address2, city, state, zip, country, phone, fax, contact_email, contact_mail, contact_phone,
contact_fax, contact_special, contact_newsletter.
--nohardware
Do not probe or upload any hardware information.
--nopackages
Do not profile or upload any package information.
--force
Register the system even if it has already been registered.
--version
Show the version fo rhnreg_ks
--proxy
Specify a http proxy to use.
FILES
/etc/sysconfig/rhn/up2date
Configuration settings for up2date and rhnreg_ks
/usr/share/rhn/RHNS-CA-CERT
The ssl certificate authority file used by rhnreg_ks to validate the Red Hat Network ssl servers.
EXAMPLES
The following registers a new system to Red Hat Network.
rhnreg_ks --profilename "example_profile_name" --username "someexampleuser@example.com" --password "foobar"
The following examples registers a new system to Red Hat Network including contact info.
rhnreg_ks --profilename "example_profile_name" --username "someexampleuser@example.com" --password "foobar" --contactinfo < contactinfo
where the file "contactinfo" contains data in the format:
first_name: Billy
last_name: Bob
company: SomeCompanyName
city: Springfield
fax: 555-5555
phone: 555-5555
SEE ALSO
Configuration can be done via up2date --configure. rhnreg_ks is used to register a system to Red Hat Network. Visit <http://rhn.red-
hat.com> for access or to sign up. You can also run up2date to register a system with Red Hat Network.
Authors
Written by Adrian Likins <alikins@redhat.com>
REPORTING BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 1999-2002 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 Wed 10 April 2002 RHNREG_KS(8)