![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| sed Problem in Shellscript | urukai | Shell Programming and Scripting | 5 | 08-08-2008 07:14 AM |
| Need help with shellscript | jigarlakhani | Shell Programming and Scripting | 2 | 11-22-2007 08:28 AM |
| Another shellscript question | jigarlakhani | Shell Programming and Scripting | 18 | 11-30-2005 10:50 AM |
| XMLfile parsher | jacost | Shell Programming and Scripting | 2 | 10-01-2004 06:44 PM |
| ftp in Shellscript | ggowrish | UNIX for Advanced & Expert Users | 3 | 06-11-2004 09:09 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Reply to Frans
ok frans ... please tell me to generate xml file directly
---------- Post updated at 07:09 AM ---------- Previous update was at 07:01 AM ---------- thanks frans ... its working ... ---------- Post updated at 07:35 AM ---------- Previous update was at 07:09 AM ---------- Quote:
This is not showing me any input .. plzz tell me the command to execute this awk file also where to see the output |
|
|||||
|
a bash script Code:
{ J=1
echo '<data>'
while read LINE
do
VAR=( $LINE )
echo '<Field'$J' name="'${VAR[0]}'"><\Field'$J'>'
for I in 1 2 3
do echo '<OtherField name="'${VAR[$I]}'"><\Otherfield>'
done
echo '<\Field>'
done < InputFile1
echo '<\data>'
} > OutputFile.xml
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|