Skip to content
ShammanikPublic

About

Script that separates words by lines

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

linefeed

LineFeed - is a script that divide big line or file into one word per line.

It is useful for programms or scripts that read only one word per line.

Installation

Clone repository

git clone https://github.com/Shammanik/linefeed.git

Go to the directory

cd linefeed/

Add execution for file

chmod +x linefeed.sh

And use the script

./linefeed "one two three"

Usage

Script could accept string of words in one sentence or file and output it in terminal.

For string use this

./linefeed.sh "one two three"

For file use this. But in file must be words

./linefeed.sh file.txt

If You want save output in file use key -o output.txt, if file exist script ask You what do with it.

Attention! Use keys before string or file with words.

./linefeed.sh -o output.txt "one two three"

Or if You use file

./linefeed.sh -o output.txt file.txt

Key -s change separator. By default scpipt devides by spaces, but, fot example, -s : change separator to :.

You can use any kinds of seperators (Even letters).

./linefeed.sh -s : file.txt

Attention! For ; don't forget use \

./linefeed.sh -s \; file.txt

Last key -h show you basic help message

./linefeed.sh -h

Of course You can combine keys

./linefeed.sh -s : -o output.txt file.txt

Thanks

About

Script that separates words by lines

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages