Completing the count of charcters in every line
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to know how to count the characters in every line in a document, then subtracting this number from a threshold represents the maximums number of characters allowed per line, then filling the gaps between the maximum number of characters and the count of characters with dashes. For example:
Unix was
originally meant
to be a
co
nvenient p
latform for progra
mmers developing software to
be run on it and on other
systems, rather than for non-
programmers.
[7][8] The system grew larger
as the operating system star
ted spreading in a
cademic circ
les, as users add
ed their own tools to th
e system and shared them wi
th colleagues.
the maximum number of characters in the lines is 28 in line#10, I want the count of characters in every line to be 28 by filling it with dashes
Unix was , .....................
originally meant , .............
to be a , ......................
co, ............................
nvenient p, ....................
latform for progra, ............
mmers developing software to, ..
be run on it and on other , ....
systems, rather than for non-,..
programmers., ..................
[7][8] The system grew larger,..
as the operating system star, ..
ted spreading in a, ............
cademic circ, ..................
les, as users add, .............
ed their own tools to th, ......
e system and shared them wi, ...
th colleagues., ................
How can I do that in bash?
thanks!
bash
add a comment |Â
up vote
0
down vote
favorite
I want to know how to count the characters in every line in a document, then subtracting this number from a threshold represents the maximums number of characters allowed per line, then filling the gaps between the maximum number of characters and the count of characters with dashes. For example:
Unix was
originally meant
to be a
co
nvenient p
latform for progra
mmers developing software to
be run on it and on other
systems, rather than for non-
programmers.
[7][8] The system grew larger
as the operating system star
ted spreading in a
cademic circ
les, as users add
ed their own tools to th
e system and shared them wi
th colleagues.
the maximum number of characters in the lines is 28 in line#10, I want the count of characters in every line to be 28 by filling it with dashes
Unix was , .....................
originally meant , .............
to be a , ......................
co, ............................
nvenient p, ....................
latform for progra, ............
mmers developing software to, ..
be run on it and on other , ....
systems, rather than for non-,..
programmers., ..................
[7][8] The system grew larger,..
as the operating system star, ..
ted spreading in a, ............
cademic circ, ..................
les, as users add, .............
ed their own tools to th, ......
e system and shared them wi, ...
th colleagues., ................
How can I do that in bash?
thanks!
bash
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to know how to count the characters in every line in a document, then subtracting this number from a threshold represents the maximums number of characters allowed per line, then filling the gaps between the maximum number of characters and the count of characters with dashes. For example:
Unix was
originally meant
to be a
co
nvenient p
latform for progra
mmers developing software to
be run on it and on other
systems, rather than for non-
programmers.
[7][8] The system grew larger
as the operating system star
ted spreading in a
cademic circ
les, as users add
ed their own tools to th
e system and shared them wi
th colleagues.
the maximum number of characters in the lines is 28 in line#10, I want the count of characters in every line to be 28 by filling it with dashes
Unix was , .....................
originally meant , .............
to be a , ......................
co, ............................
nvenient p, ....................
latform for progra, ............
mmers developing software to, ..
be run on it and on other , ....
systems, rather than for non-,..
programmers., ..................
[7][8] The system grew larger,..
as the operating system star, ..
ted spreading in a, ............
cademic circ, ..................
les, as users add, .............
ed their own tools to th, ......
e system and shared them wi, ...
th colleagues., ................
How can I do that in bash?
thanks!
bash
I want to know how to count the characters in every line in a document, then subtracting this number from a threshold represents the maximums number of characters allowed per line, then filling the gaps between the maximum number of characters and the count of characters with dashes. For example:
Unix was
originally meant
to be a
co
nvenient p
latform for progra
mmers developing software to
be run on it and on other
systems, rather than for non-
programmers.
[7][8] The system grew larger
as the operating system star
ted spreading in a
cademic circ
les, as users add
ed their own tools to th
e system and shared them wi
th colleagues.
the maximum number of characters in the lines is 28 in line#10, I want the count of characters in every line to be 28 by filling it with dashes
Unix was , .....................
originally meant , .............
to be a , ......................
co, ............................
nvenient p, ....................
latform for progra, ............
mmers developing software to, ..
be run on it and on other , ....
systems, rather than for non-,..
programmers., ..................
[7][8] The system grew larger,..
as the operating system star, ..
ted spreading in a, ............
cademic circ, ..................
les, as users add, .............
ed their own tools to th, ......
e system and shared them wi, ...
th colleagues., ................
How can I do that in bash?
thanks!
bash
bash
asked 1 min ago
Shervan
34111
34111
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475198%2fcompleting-the-count-of-charcters-in-every-line%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password