Hi
I have a requirement where i need to convert the xml in various lines into a single line and then split the file so that the file contains only 1000 records each.
searching this forum, i found a command which converts the xml in various line
into a single line, but i have trouble using that in the shell script, as the script
reads the parameters variables as commands..
below is the command i found
below is the script i prepared, its aborting with
can someone help me on this?
thanks
MJ
Last edited by Don Cragun; 03-31-2014 at 11:09 PM..
Reason: Add CODE tags.
for second step of splitting the file and renaming, i have modified the code like below
what i'm trying to do is, after i created the single line xml file, i'm splitting that file each
containing 1000 records, by assigning the prefix($5), (this is working fine)
after i splitted the files, i need to rename all the splitted file with $5 and concatinating timestamp and and a individual sequencer number, like below
file2_201401312231_1
this is the part which is not working, can you please help
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Hi I have two scripts one is Expect and other is shell.
I want to merge Expect code in to Shell script so that i can run it using only one script. Can somebody help me out ?
Order to execute: Run Expect_install.sh first and then when installation completes run runTests.sh shell script.
... (1 Reply)
Hi ,
Please excuse me for opening a new thread i am unable to find out the syntax error
in my if else condition inside for loop in awk command ,
my actual aim is to print formatted html td tag when if condition (True) having string as "failed",
could anyone please advise what is the right... (2 Replies)
Hai,
I need to search a variable inside a file using awk in AIX.
for ex:
file.txt
one
two
three
four
five
i need to get the lines with two
awk '/two/ {print}' file.txt
But i need to change the two as a variable since it would be changed on runtime..i tried like below..nothing give... (3 Replies)
Hi all,
I have the following snippet of code..
#!/bin/sh
echo "run perl script............"
#Run the verification script
perl bill_ver
echo " perl script completed....."
echo "rename files......"
#Remove from all file in the directories test, test1, test2, test3
for f in... (3 Replies)
Hi,
I have an HTML form through which I get some text as input. i need to run a shell script say script.sh inside a perl-cgi script named main_cgi.sh on the form input.
I want to write the contents of the form in a file and then perform some command line operations like grep, cat on the text... (2 Replies)
HI!
Iam running two scripts in my unix server
First script is Splitting a file containing 300 records each with .tmp extension
for eg Z_PRICE_NEW.tmp
Second script is converting .tmp to.txt
for file in Z_PRICE_NEW_2*.tmp ; do mv $file `echo $file |sed 's/\(.*\.\)tmp/\1txt/'`;done
... (1 Reply)
Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)