HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - CSV file help-awk
 
Operating System - Linux
        1840180
        Members
    
    
        3857
        Online
    
    
        110162
        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
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
 
11-06-2006 11:14 PM
11-06-2006 11:14 PM
			
				
					
						
							CSV file help-awk
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi All,
I have a CSV file like
"hi","my,home",1245,"hellow",56457,...
"new",73994,"may,get",12335,..
I want to check whether each field is of predefined length(len='2 8 6 8 9')..if lenght of particular field doesnt match it should return the record and field number...Can you please help itout?
NOTE: commas may be present in the double quotes and if any of the fields(character) doesnt contain double quotes then itshud return the record and field number also..
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
I have a CSV file like
"hi","my,home",1245,"hellow",56457,...
"new",73994,"may,get",12335,..
I want to check whether each field is of predefined length(len='2 8 6 8 9')..if lenght of particular field doesnt match it should return the record and field number...Can you please help itout?
NOTE: commas may be present in the double quotes and if any of the fields(character) doesnt contain double quotes then itshud return the record and field number also..
- Tags:
 - csv
 
		2 REPLIES 2
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-07-2006 12:58 AM
11-07-2006 12:58 AM
			
				
					
						
							Re: CSV file help-awk
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						See prior discussion in:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1064324
Read it.
Read it again.
Good luck!
Hein.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1064324
Read it.
Read it again.
Good luck!
Hein.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-07-2006 01:19 AM
11-07-2006 01:19 AM
			
				
					
						
							Re: CSV file help-awk
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi,
sqlload the data onto oracle database. It will do all the length checking etc., it will also find any numeric field errors.
The sqlload will provide you with clean data on the database, and an error file with all your records detailed with error location.
		
		
	
	
	
sqlload the data onto oracle database. It will do all the length checking etc., it will also find any numeric field errors.
The sqlload will provide you with clean data on the database, and an error file with all your records detailed with error location.
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