https://github.com/felipefacundes/test_file_type
The test_file_type script is a versatile and multilingual utility designed to analyze and report detailed information about a given file. This tool can identify various file types, including directories, symbolic links, pipes, character/block devices, sockets, and regular files.
https://github.com/felipefacundes/test_file_type
file files shell shell-script shell-scripts shellscript test test-file test-files tests
Last synced: about 2 months ago
JSON representation
The test_file_type script is a versatile and multilingual utility designed to analyze and report detailed information about a given file. This tool can identify various file types, including directories, symbolic links, pipes, character/block devices, sockets, and regular files.
- Host: GitHub
- URL: https://github.com/felipefacundes/test_file_type
- Owner: felipefacundes
- License: gpl-3.0
- Created: 2025-01-22T19:55:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-24T13:49:31.000Z (12 months ago)
- Last Synced: 2025-03-02T07:39:21.327Z (11 months ago)
- Topics: file, files, shell, shell-script, shell-scripts, shellscript, test, test-file, test-files, tests
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test_file_type
The `test_file_type` script is a versatile and multilingual utility designed to analyze and report detailed information about a given file. This tool can identify various file types, including directories, symbolic links, pipes, character/block devices, sockets, and regular files. It also provides specific details for images, audio, video, PDFs, and compressed files. Additionally, this script is part of the [shell_utils](https://github.com/felipefacundes/shell_utils) framework, one of the most comprehensive collections of scripts and utilities for user facilitation.
## Features
- **Multilingual Support**: Messages are provided in English, Portuguese, French, and German based on system language.
- **Detailed File Analysis**:
- Identifies file types such as directories, symbolic links, and pipes.
- Extracts metadata for media files (images, audio, video).
- Counts pages for PDF documents.
- Calculates uncompressed sizes for compressed files.
- **Integration**: Functions seamlessly within the `shell_utils` framework, enhancing user productivity.
## Installation
Clone the repository to get started:
```bash
git clone https://github.com/felipefacundes/test_file_type
```
Navigate to the `test_file_type` script location:
```bash
cd test_file_type
```
## Usage
Run the script by passing a file path as an argument:
```bash
./test_file_type
```
### Example
```bash
./test_file_type example.pdf
```
## Requirements
Some advanced features may require the following tools to be installed:
- `file`
- `identify` (ImageMagick)
- `ffprobe` (FFmpeg)
- `mediainfo`
- `pdfinfo`
## Contributing
Contributions are welcome! Feel free to fork the repository and submit pull requests. For issues or suggestions, please use the GitHub issue tracker.
---
Explore more scripts and utilities in the [shell_utils](https://github.com/felipefacundes/shell_utils) framework.
## License
This script is licensed under the GPLv3. See the LICENSE file in the [shell_utils repository](https://github.com/felipefacundes/shell_utils) for details.
## Credits
Developed by Felipe Facundes as part of the shell_utils framework.