https://github.com/aalopez76/bash-analyzer
Bash-based CLI tool for analyzing and auditing CSV and TSV datasets.
https://github.com/aalopez76/bash-analyzer
cli-app csv-files shell-scripts tsv-files
Last synced: 10 months ago
JSON representation
Bash-based CLI tool for analyzing and auditing CSV and TSV datasets.
- Host: GitHub
- URL: https://github.com/aalopez76/bash-analyzer
- Owner: aalopez76
- Created: 2025-05-08T04:31:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-12T04:11:32.000Z (11 months ago)
- Last Synced: 2025-08-12T06:21:48.045Z (11 months ago)
- Topics: cli-app, csv-files, shell-scripts, tsv-files
- Language: Shell
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bash Data Analyzer
This Bash-based tool provides a robust command-line interface for analyzing CSV/TSV datasets. Inspired by the original `bash-data-analysis-tool` project, this fork modernizes the UI and enhances functionality for practical applications in data auditing, inspection, and filtering tasks often required in data operations or technical support environments.
## Key Features
* **Interactive Menu** using `whiptail`
* **Function Scan Mode**
* Detects file structure
* Inspects headers and delimiters
* Counts rows and columns
* Displays content previews (head/tail) with adjustable line limits
* Reports similarity between files based on content hash comparison
* **Search & Filter Mode**
* Search with regular expressions (globally or by column)
* Extract rows/columns under custom conditions (multi-column filtering)
* Sort data based on a specific column
* List unique values of any column

## Requirements
* Bash (Bourne Again SHell)
* `awk`
* `whiptail`
* `sort`, `uniq`, `head`, `tail`, `wc`
* Compatible with most Unix-based environments (tested on Linux)
## Usage
1. **Clone this repository:**
```bash
git clone https://github.com/aalopez76/bash-data-analyzer.git
```
2. **Navigate to the directory:**
```bash
cd bash-data-analyzer
```
3. **Provide your CSV/TSV file:**
Place your file in `data_sets/` or configure the tool to accept custom paths.
4. **Run the main tool:**
```bash
./app.sh
```
5. **Interact with the menu:**
Follow the on-screen interface to:
* Scan and inspect files (via `file-scan.sh`)
* Filter, sort, search, and explore column values (via `search.sh`)
6. **Review results:**
Output files are saved in the `output/` folder and logs are kept in `history/`.
---
## License
MIT License