nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

how to change the format of multiple files in different directories

This is a discussion on how to change the format of multiple files in different directories within the Shell scripting forums, part of the Development/Scripting category; HI, I have a directory that has subdirectories and text files within the subdirectories. These files get written to daily. ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 06-05-2007, 04:03 AM
Junior Member
User
 
Join Date: Jun 2007
My distro: Fedora 6, Ubuntu 7.04
Posts: 1
Rep Power: 0
dustcloud4 is on a distinguished road
Default how to change the format of multiple files in different directories

HI,

I have a directory that has subdirectories and text files within the subdirectories. These files get written to daily. Each line in any particular files contains a format such as..(each file has thousands of lines with same format)

2007/06/04 18:08:28 [6023] /data/stuff.zip

I would like to either put this in a CSV or mysql format. What is the best way to change the format of these logs daily? Shell script? Using sed and set a cron job?

I would like to attempt to do this myself so I can learn as I go.

Thank you,

Dustin
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Cups is not printing text file with proper format, staircasing issue Ashish Pathak CentOS / RHEL / Fedora 1 11-18-2007 09:12 AM
How to install tar format software in RHEL 4.0 mannrj45 Linux software 8 09-26-2007 06:57 PM
Linux list directories and files raj Getting started tutorials 0 05-05-2007 02:05 AM
shell script that parses multiple log files and checks for a Anonymous Shell scripting 1 11-15-2006 10:38 PM
UNIX ls only directories (display only dirs and no files) chiku Solaris/OpenSolaris 1 10-21-2006 01:27 AM


All times are GMT +5.5. The time now is 07:31 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36