unexpand
Convert spaces to tabs. More information: <https://www.gnu.org/software/coreutils/unexpand>.
Install
- All systems
-
curl cmd.cat/unexpand.sh
- Debian
-
apt-get install coreutils
- Ubuntu
-
apt-get install coreutils
- Alpine
-
apk add coreutils
- Arch Linux
-
pacman -S coreutils
- Kali Linux
-
apt-get install coreutils
- CentOS
-
yum install coreutils
- Fedora
-
dnf install coreutils
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install coreutils
- OS X
-
brew install coreutils
- Raspbian
-
apt-get install coreutils
- Dockerfile
- dockerfile.run/unexpand
- Docker
-
docker run cmd.cat/unexpand unexpand
powered by Commando
Convert spaces to tabs. More information: <https://www.gnu.org/software/coreutils/unexpand>.
-
Convert blanks in each file to tabs, writing to `stdout`:
unexpand path/to/file
-
Convert blanks to tabs, reading from `stdout`:
unexpand
-
Convert all blanks, instead of just initial blanks:
unexpand -a path/to/file
-
Convert only leading sequences of blanks (overrides -a):
unexpand --first-only path/to/file
-
Have tabs a certain number of characters apart, not 8 (enables -a):
unexpand -t number path/to/file
© tl;dr; authors and contributors