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.
Clone repository
git clone https://github.com/Shammanik/linefeed.gitGo to the directory
cd linefeed/Add execution for file
chmod +x linefeed.shAnd use the script
./linefeed "one two three"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.txtIf 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.txtKey -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.txtAttention! For ; don't forget use \
./linefeed.sh -s \; file.txtLast key -h show you basic help message
./linefeed.sh -hOf course You can combine keys
./linefeed.sh -s : -o output.txt file.txt