An open API service indexing awesome lists of open source software.

https://github.com/strvdr/bashlogcorrector

Takes corrupted directory structure as input, outputs all valid log files with date format dd/yyyy.
https://github.com/strvdr/bashlogcorrector

Last synced: 9 months ago
JSON representation

Takes corrupted directory structure as input, outputs all valid log files with date format dd/yyyy.

Awesome Lists containing this project

README

          

# BashLogCorrector
Takes corrupted directory structure as input, using grep searches for valid log files, then reformats all log files in date format MM/DD/YYYY to UK Standard format, DD/MM/YYYY and outputs all valid log files in a new directory structure depending on the year and month of the log.

Usage:
bash logFileCorrector.sh ./CorruptedDirectoryStructure

To test:
bash logFileCorrector.sh ./ExampleInputs/test01_in/

Assignment completed as part of Colorado School of Mines' Systems Programming course, CS210.