43,069 reputation
653118
bio website
location Living in Marseille, France
age 34
visits member for 2 years, 3 months
seen 38 mins ago

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


2d
revised Why is coreutils sort slower than Python?
added 420 characters in body
2d
comment How to display audio visualization in VLC while playing video?
@edwardtorvalds First, that is not the proper way to talk to your fellow users, be nice. Second, this question is perfectly on topic here since it is about an "Application packaged in *nix distributions". Take the time to learn the scope of a site before telling people what to do. Third, this is completely off topic on Stack Overflow.
2d
comment How to print only certain characters?
Hi and welcome to the site. Please edit your question and 1) replace the screenshot with a copy/paste of the actual text (see here for help on formatting your post) 2) Show us the output you want. Don't describe it, give us an actual example that we can produce for you.
2d
answered Why is coreutils sort slower than Python?
2d
revised Problem installing Radeon Driver
edited tags
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
Won't that, by definition, keep the entire file in memory? I don't know Python but your language certainly suggests that it will.
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
I think the whole point for the OP is to not hold the file in memory. Otherwise, their current gawk approach is both simpler and much faster. I'm guessing this needs to work with text files that are several gigabytes in size.
Nov
24
revised Why is using a shell loop to process text considered bad practice?
Copy edit
Nov
24
revised What does PIP stand for?
No need for attribution here.
Nov
24
revised What does PIP stand for?
deleted 1 character in body; edited title
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
@StéphaneChazelas well, based on your answer here, I couldn't think of any cases where the echo might be a problem. What I had written (I added printf now) should work with all of them right? As for the while loop, why? What's wrong with while read f; do ..; done < file? Surely you're not suggesting a for loop! What's the other alternative?
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
@PM2Ring thanks, fixed.
Nov
24
revised Command line tool to “cat” pairwise expansion of all rows in a file
added 13 characters in body
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
@StéphaneChazelas lol, fair enough. Better now? What was the 4th bad practice, I could only see 3. Lack of quotes, no IFS= and no -r. Do you really consider echo instead of printf to be a problem in this context where portability doesn't seem relevant?
Nov
24
revised Command line tool to “cat” pairwise expansion of all rows in a file
added 321 characters in body
Nov
24
comment Getting transient PID from log into a PS search before it dies
On my Debian, tail -f seems to be buffered. This won't start printing until after ~350 or so lines have been added.
Nov
24
comment Getting transient PID from log into a PS search before it dies
@HaukeLaging this will be run in an endless loop. I don't know how the OP's file will be populated and it seems to be reasonable to only grab the last line. Removing the -n1 will search the last few lines if that will make you feel better. Also, please remember to be nice.
Nov
24
answered Getting transient PID from log into a PS search before it dies
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
@TomHayden basically because perl, like awk, is much faster than bash.
Nov
24
answered Command line tool to “cat” pairwise expansion of all rows in a file