The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Parsing text from one line with shell scripts th3g0bl1n UNIX for Dummies Questions & Answers 3 10-19-2007 05:49 AM
Converting UNIX scripts to DOS Crozz Windows & DOS: Issues & Discussions 2 11-28-2006 11:33 AM
Converting a text file to a csv file primowalker Shell Programming and Scripting 4 12-06-2005 05:02 PM
Plz Help To convert xml file to text file using bourn shell scripts ram2s2001 Shell Programming and Scripting 0 11-09-2005 09:56 AM
Converting Unix text to windows mchristisen UNIX for Dummies Questions & Answers 3 06-13-2005 09:57 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 02-15-2005
Laud12345 Laud12345 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 11
Question Converting Text File into XML using Unix Shell Scripts

Hi everyone,

If someone out there could help me out with this problem. I would really appreciate it.

I am trying to convert a file into xml format using Unix shell scripts.

The file has fields with each field having a certain number of bytes, but the fields are not delimited by anything (e.g. whitespace). I need to get those fields into some sort of data structure so that I can use them to generate the XML using a simple for loop. The following is a an example of what I am looking at:

Jack Johnson 90980288Harv 9090998
Joe Joie 8989 Sed 99488


I can't use whitespace as a delimiter.


Thanks you guys very much,
I really appreciate it.
 

Bookmarks

Tags
awk, awk trim, regex, regular expressions, trim, trim awk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0