- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- text file manipulation
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
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
тАО06-25-2007 11:55 AM
тАО06-25-2007 11:55 AM
Now i have a file B with pager numbers for users lised in file A. I have to replace the phone numbers with corresponding pagers numbers.
How can i implement this .Please help . I really appreciated all your help
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 01:14 PM
тАО06-25-2007 01:14 PM
Re: text file manipulation
if you would exhibit a few lines from each
file, and what you would like to see in the
resulting file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 03:14 PM
тАО06-25-2007 03:14 PM
Re: text file manipulation
marks:8975:Mark:Sam:mark.sam@urs.com:781-829-0010:active::
marks1:8975:Mark:Sam:mark.sam@urs.com:781-829-0010:active:user name changed for marks:
stevew:8978:Steve:watt:steve.watt@urs.com:480-888-2342:active:
Here is an example entry from file B
marks1 260800121
stevew 670234123
Trying to replace phone numbers in file A with pager number in file B for each user
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 04:26 PM
тАО06-25-2007 04:26 PM
Re: text file manipulation
# cat fileA
marks:8975:Mark:Sam:mark.sam@urs.com:781-829-0010:active::
marks1:8975:Mark:Sam:mark.sam@urs.com:781-829-0010:active:user name changed for marks:
stevew:8978:Steve:watt:steve.watt@urs.com:480-888-2342:active:
# sed 's/ /:/g' fileB | sort -t: -k1,1 > fileB
# cat fileB
marks1:260800121
stevew:670234123
# join -t: -j1 1 -o 1.1 1.2 1.3 1.4 1.5 2.2 1.7 1.8 fileA fileB