Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/niksingh710/center-align

This is a bash written script to align stdoutput to terminal center
https://github.com/niksingh710/center-align

Last synced: 19 days ago
JSON representation

This is a bash written script to align stdoutput to terminal center

Awesome Lists containing this project

README

        


center-align

Simple bash scrip to align stdout in center of the terminal

[![License](https://img.shields.io/github/license/niksingh710/center-align?color=blue)](LICENSE)





[![GitHub repo size](https://img.shields.io/github/repo-size/niksingh710/center-align)](https://github.com/niksingh710/center-align)
[![GitHub last commit](https://img.shields.io/github/last-commit/niksingh710/center-align)](https://github.com/niksingh710/center-align/commits/master)
[![GitHub issues](https://img.shields.io/github/issues/niksingh710/center-align)](https://github.com/niksingh710/center-align/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/niksingh710/center-align)](https://github.com/niksingh710/center-align/pulls)

[![GitHub stars](https://img.shields.io/github/stars/niksingh710/center-align?style=social)](https://github.com/niksingh710/center-align/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/niksingh710/center-align?style=social)](https://github.com/niksingh710/center-align/network/members)

```bash
This command will take input from pipe (stdout) and will center that data in terminal

flags:
-h, --help: show this help
-a, --all: will center every line individually (Horizontal center)

usage:
command | center-align
command | center-align -a
```

## Installation

```
sudo make install
```

### AUR

```
yay -S center-align
```

[AUR](https://aur.archlinux.org/packages/center-align)

## Uninstall

```
sudo make uninstall
```

### AUR

```
yay -Rns center-align
```

# Check

![image](https://user-images.githubusercontent.com/60490474/232287874-ddf82867-cec6-4c2f-96e2-367ca5f44658.png)

Fun Command to give a try:

```
watch -n1 -t "date +%A%n%x%n%X | figlet | center-align -a"
```

![image](https://user-images.githubusercontent.com/60490474/232287938-a7e18d34-4f39-4f0c-bdde-0f30baa920eb.png)