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.
- Host: GitHub
- URL: https://github.com/strvdr/bashlogcorrector
- Owner: strvdr
- Created: 2024-09-24T16:14:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-24T16:43:22.000Z (over 1 year ago)
- Last Synced: 2025-03-31T16:28:11.738Z (about 1 year ago)
- Language: Shell
- Size: 502 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.