- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Removing Special characters
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
Forums
Discussions
Discussions
Discussions
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
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
02-21-2006 03:52 PM
02-21-2006 03:52 PM
Removing Special characters
My application guy is extracting a data file from a oracle database through informatica.This is a flat text file with 1lach records,I can see few special charaters in that file, can some one help me with a script in getting rid of those special character.
Sample file is attached , you can see the "$" when you say "set list" in the vi mode.
My output should be like the below for each recored in a single Line.
99167431|Web Server|5||1140004947|SIT webserver for P2P 7/22/05 Update - Support Contract (Metal Class): Bronze Transition Date: 1/1/05 Row: E 10 Rack Position: 30 # of Rack Units: 2 Server Environment: SIT San Connection: NO Data Center: WSIT
GLBA Data: NO |President and COO|Not Listed|0|KPLKY47|A358059|0|10.4.129.41|SIT.HOSTINGTEST.XYZ.NET|IBM|||Local|Network Backup|Delta Daily - Image Bi-Wkly|W2K3|Enterprise Server V-3.0|Chi,Mel|18233243|183243
9912367431|Web Server|5||11400dd04947|SIT webserver for P2P 7/22/05 Update - Support Contract (Metal Class): Bronze Transition Date: 1/1/05 Row: E 10 Rack Position: 30 # of Rack Units: 2 Server Environment: SIT San Connection: NO
Data Center: WSIT GLBA Data: NO |President and COO|Not Listed|0|KPLKY47|A358059|0|10.4.129.41|SIT.HOSTINGTEST.XYZ.NET|IBM|||Local|Network Backup|Delta Daily - Image Bi-Wkly|W2K3|Enterprise Server V-3.0|Chi,ana|143|1833
98983988|Desktop|3||1100535918|PC 300GL||||553642V|051177B|0|||IBM|Seat Count|||||||||
98980727|Desktop|3||1121873922|AT/AT COMPATIBLE||||1|1|0|||IBM||||||||Higginbotham,Gary M|u150672|U154392
.
.
.
.
Thanks in Addvance
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 03:59 PM
02-21-2006 03:59 PM
Re: Removing Special characters
Can you send your attachment in text file? I am not able to download .dat file. Also, you can achieve this by using "sed, awk or perl"
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 04:15 PM
02-21-2006 04:15 PM
Re: Removing Special characters
- Tags:
- missing attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 04:15 PM
02-21-2006 04:15 PM
Re: Removing Special characters
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1003806
Please close the duplicate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 05:29 PM
02-21-2006 05:29 PM
Re: Removing Special characters
awk '{ if ( $0 ~ /Data Center/ ) { printf "\n"$0; } if ($0 ~ /Desktop/){ printf "\n"$0"\n"; } if ( $0 ~ /Desktop/ ) { printf "\n"$0; } else { printf; }}END{printf "\n"}'
--
Muthu
- Tags:
- awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 05:40 PM
02-21-2006 05:40 PM
Re: Removing Special characters
is fine.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 10:14 PM
02-22-2006 10:14 PM
Re: Removing Special characters
- Tags:
- sqlplus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 10:17 PM
02-22-2006 10:17 PM