- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script help ~
Operating System - HP-UX
1758660
Members
2430
Online
108874
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 05:15 PM
тАО07-24-2002 05:15 PM
script help ~
Hi all
who could you give me clear answer..?
see attached file..
thanks
any tips are helpful
who could you give me clear answer..?
see attached file..
thanks
any tips are helpful
Step by step
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 07:39 PM
тАО07-24-2002 07:39 PM
Re: script help ~
Do you want to generate 8000 lines of hostnames that resolve to the same IP? This can be done using a wildcard:
* IN A 10.10.10.10
Or are you looking for a way to translate /etc/hosts to the appropriate `named` zone files? I'm not at work so I don't have access to the PERL script I've created to handle our specific needs. I'll get that posted if you'd like to see it.
* IN A 10.10.10.10
Or are you looking for a way to translate /etc/hosts to the appropriate `named` zone files? I'm not at work so I don't have access to the PERL script I've created to handle our specific needs. I'll get that posted if you'd like to see it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 12:21 AM
тАО07-25-2002 12:21 AM
Re: script help ~
Sorry,
if you expect a clear answer, would you mind to utter your question clearly? ;-)
I cannot recapitulate what you're trying to achieve.
Your attachment looks like a DNS zone file to me.
Do you want to automatically create/modify such files by a script?
if you expect a clear answer, would you mind to utter your question clearly? ;-)
I cannot recapitulate what you're trying to achieve.
Your attachment looks like a DNS zone file to me.
Do you want to automatically create/modify such files by a script?
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 04:03 AM
тАО07-26-2002 04:03 AM
Re: script help ~
You have a file with
zzz
yyy
xxx
Let's call it file1.
you want "IN A 10.10.10.10" added to each line?
Ok.
Using a script.....
#!/bin/ksh
exec 3 while read LINE 0<&3
do
echo $LINE "IN A 10.10.10.10" > file2
done
3<&-
Using vi.....
vi file1
:%s/$/IN A 10.10.10.10/
:wq!
there you go.
Don't know what you WANT it for. But at least you now have a way to append that stuff in a file.
Steve
zzz
yyy
xxx
Let's call it file1.
you want "IN A 10.10.10.10" added to each line?
Ok.
Using a script.....
#!/bin/ksh
exec 3
do
echo $LINE "IN A 10.10.10.10" > file2
done
3<&-
Using vi.....
vi file1
:%s/$/IN A 10.10.10.10/
:wq!
there you go.
Don't know what you WANT it for. But at least you now have a way to append that stuff in a file.
Steve
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP