- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tab delimited file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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-11-2007 11:59 PM
тАО07-11-2007 11:59 PM
tab delimited file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2007 12:24 AM
тАО07-12-2007 12:24 AM
Re: tab delimited file
in perl
# perl -e 'print "one\ttab\n"'
or using printf
# printf "two\t\ttabs\n"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2007 01:30 AM
тАО07-12-2007 01:30 AM
Re: tab delimited file
SELECT n.ip_hostname, i.snmp_ifphysaddr, o.ip_status
FROM nnm_nodes n, nnm_interfaces i, nnm_objects o
WHERE i.node_id = o.ovw_id
AND o.topo_id = n.topo_id
ORDER BY n.ip_hostname, i.snmp_ifphysaddr;
then i run
/OV/opt/OV/bin/ovdwquery -file maccaddr > /tmp/hpstats/host2mac
to get the data, where would i put the t option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2007 01:33 AM
тАО07-12-2007 01:33 AM
Re: tab delimited file
-t Write the output in TAB-separated format (default behavior).
So you should have to. I suppose you can try:
/OV/opt/OV/bin/ovdwquery -t -file maccaddr > /tmp/hpstats/host2mac
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2007 11:07 PM
тАО07-12-2007 11:07 PM
Re: tab delimited file
cat /tmp/hpstats/host2mac | sed 's/ / /g' > /tmp/hpstats/host2macV2
Within the 'sed' part, the space between the '/'s is literally a space character. The space between the second set of '/'s is a tab character. Therefore, when using this command line, make sure you hit the TAB key at this point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2007 11:26 PM
тАО07-12-2007 11:26 PM
Re: tab delimited file
/OV/opt/OV/bin/ovdwquery -t -file maccaddr > /home/b009021/host2mac
sleep 5
grep cvt host2mac | egrep "2$|3$" > /tmp/cvt/macaddr
sleep 5
mv /tmp/cvt/macaddr /tmp/cvt/$(date +%Y)$(date +%m)$(date +%d).macaddr
sleep 10
/usr/bin/chown -R b06xob /tmp/cvt/*.macaddr