HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- line numbering
Operating System - HP-UX
1834817
Members
3358
Online
110070
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
02-02-2001 02:03 AM
02-02-2001 02:03 AM
Thanks Dan, format is like:
1 kfhgvhgv kfjkhfhb
2 if kfjn
3 vkjnfkjvnjnk
4 lkjkfjh
.......
99 for each in
100 do
101 jgkjghk jghjjg ljfdhk;
102 done
.......
999 if adflkjh
1000 afjhkjfh
1001 kfjvhkdlfh
etc.
I have tried cut from 2nd field on but loses formatting.
Any suggestions greatly appreciated.
Ian
1 kfhgvhgv kfjkhfhb
2 if kfjn
3 vkjnfkjvnjnk
4 lkjkfjh
.......
99 for each in
100 do
101 jgkjghk jghjjg ljfdhk;
102 done
.......
999 if adflkjh
1000 afjhkjfh
1001 kfjvhkdlfh
etc.
I have tried cut from 2nd field on but loses formatting.
Any suggestions greatly appreciated.
Ian
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 02:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 02:21 AM
02-02-2001 02:21 AM
Re: line numbering
Hi !
What is mean 2nd field ?
real 2nd >
.. | awk ' { print $2 } '
or cut number >
.. | awk ' { print sustr($0,index($0," ")+1)}'
regards, Saa
What is mean 2nd field ?
real 2nd >
.. | awk ' { print $2 } '
or cut number >
.. | awk ' { print sustr($0,index($0," ")+1)}'
regards, Saa
If no problem, don't fixed it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 02:53 AM
02-02-2001 02:53 AM
Re: line numbering
Hi Ian,
sed 's/^[[:digit:]]*//' < from_file > to_file
should work as you want. It simply supresses all digits at the beginning of every line.
Best regards,
Dan
PS: As you're new in this forum, simply click on the button if you want to add some comments. Don't start a new thread as users would loose track. ;-)
sed 's/^[[:digit:]]*//' < from_file > to_file
should work as you want. It simply supresses all digits at the beginning of every line.
Best regards,
Dan
PS: As you're new in this forum, simply click on the
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP