Reputation
Next tag badge:
98/100 score
38/20 answers
Badges
20 153 313
Newest
 Nice Answer
Impact
~5.2m people reached

Aug
12
comment Print man pages with fixed width
Yes the terminal not functional is from less because TERM is not set. I meant env -i LANG=it_IT.UTF-8 man apropos > output (or | head).
Aug
12
comment Print man pages with fixed width
Do you get those errors when you run man apropos? Or is it that you did groff -Tascii instead of groff -Tutf8?
Aug
12
comment Print man pages with fixed width
I can't reproduce Ubuntu 14.04 with that same Italian man page with that same locale. Maybe something special in your environment. Do you get the error with env -i LANG=it_IT.UTF-8 man apropos?
Aug
12
answered How to do nothing forever in an elegant way?
Aug
12
revised How to do nothing forever in an elegant way?
added 624 characters in body
Aug
12
comment How to do nothing forever in an elegant way?
@a3nm, if you do read alone, it will read from stdin. So if it's the terminal, it will read what you type until you press enter.
Aug
11
comment How to execute a for loop in bash as a string
Note that (cd /dir2 && ln -sf -- ../dir1/* .) may not work if /dir2 itself is a symlink.
Aug
11
revised How do I use cut to separate by multiple whitespace?
rolled back to a previous revision
Aug
11
revised How do I use cut to separate by multiple whitespace?
tr -s is the usual way there.
Aug
11
comment How to execute a for loop in bash as a string
It should be noted that it won't create links to the files in /dir1 inside /dir2, for which it should be ln -s /dir1/* /dir2/ (hard to tell what the OP wants)
Aug
11
revised How to execute a for loop in bash as a string
missing --.
Aug
11
answered How can I search for a file with fixed name length using ls?
Aug
11
answered How to do nothing forever in an elegant way?
Aug
11
comment Print man pages with fixed width
What's the output of locale? and locale charmap?
Aug
11
revised Print man pages with fixed width
added 426 characters in body
Aug
11
comment Print man pages with fixed width
Try COLUMNS=60 < /dev/null man apropos | head. Looks like on Ubuntu 14.04, it doesn't trust COLUMNS if stdin is a terminal (and gets the width from the terminal device).
Aug
11
comment Print man pages with fixed width
I can't reproduce your input code errors 195 168 could be è in UTF-8. Is the man page in English? What's your man implementation? What's your locale?
Aug
11
answered Print man pages with fixed width
Aug
11
revised Replacing a character at a random position using sed?
added 406 characters in body
Aug
11
comment Replacing a character at a random position using sed?
Note that it may replace newline characters.