#!/bin/bash
#
# Converts archives with extension xul and xml for txt
# Author: Marcio Junior Vieira
# XULWareHouse Project 
#
# use ./xul2txt in your directory of files.

DIR=$PWD

FILESXUL=`ls $DIR/*.xul | cut -d. -f1`

for FILE in $FILESXUL
 do
  cp "$FILE.xul" "$FILE.txt"  -v
 done 

# XML Files for TXT Files

FILESXUL=`ls $DIR/*.xml | cut -d. -f1`

for FILE in $FILESXUL
 do
  cp "$FILE.xml" "$FILE.xml.txt"  -v
 done 


