This Docker image is intended to provide a UI that integrates command line text cut operations.
1.2K
This Docker image is intended to provide a UI that integrates command line text cut operations.
# Create sample file.
$ cat >sample.txt <<EOF
1****
*2***
**3**
***4*
****5
EOF
# Remove one line from top, bottom, left and right
$ cat sample.txt | docker run -i genzouw/trim-text -t1 -b1 -l1 -r1
2**
*3*
**4
# Same as previous example
$ docker run -i genzouw/trim-text -t1 -b1 -l1 -r1 < sample.txt
2**
*3*
**4
It is convenient to set the following aliases.
$ echo "alias tt='docker run -i genzouw/trim-text'" >> ~/.bashrc
$ alias tt='docker run -i genzouw/trim-text'
No installation is required.
You have the following options:
-t : Number of characters to trim from top-b : Number of characters to trim from bottom-l : Number of characters to trim from left-r : Number of characters to trim from rightThis software is released under the MIT License, see LICENSE.
Content type
Image
Digest
Size
3.8 MB
Last updated
over 6 years ago
docker pull genzouw/trim-text