Jump to content

Shell Script Help

Recommended Posts



I have one tar.Z file. I have to run shell script daily as it is required to update the database.


    sales_ yyyymmdd_hhmi.csv (5 MB - 20 MB)
    purchase_ yyyymmdd_hhmi.xml (650 MB - 950 MB)

I have made small part of XML file. There are 4 parts. There is PHP Script which is working but i need to change each time file like PART1.xml, PART2.xml etc. 


Things to do:


1) Extract tar.Z file and Read CSV and XML file.

2) Read whole XML file automatically.


I hope i am clear. Thanks in advanced for your time and input.


Link to comment
Share on other sites

Where are you stuck? 


echo "##########"
echo $1
echo "##########"
cd customer
for i in *-*.php
  echo $i
  php $i $1

I need something like this. This is just REFERENCE. It is not working.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.