34,661 reputation
43899
bio website
location Living in Marseille, France
age 33
visits member for 2 years
seen 1 hour 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


2h
revised Is there a downside to deleting all of the broken symbolic links in a system?
edited tags
3h
comment Script to ssh and run a command doesn't work
What happens if you use one of the servers manually and run sshpass -p password root@server histname ?
3h
answered ionCube shell script gives error
4h
revised ionCube shell script gives error
Fixed formatting and removed thanks. Thanks are implied and not needed on the SE sites.
5h
comment Why *not* parse `ls`?
@mikeserv and godlygeek, I have moved this comment thread to chat. Please don't have long discussions like this in the comments, that's what chat is for.
5h
comment Why *not* parse `ls`?
Comments are not for extended discussion; this conversation has been moved to chat.
17h
comment Obtain values of a section of a file
@G-Man true. I had originally written awk -F= '{print $2}' which does the same thing but I felt that $NF was simpler in this case.
1d
answered Display ZSH brace expansion
1d
comment Add text to end of every line
@SurveySon the syntax is different for BSD (the -i needs a value which you are giving it with '') but the function is the same. If it's still not working, you probably have something strange in the input file or in whatever you are actually using instead of <@string>.
1d
comment Calling a function which calls another function with a for loop
@shiva if you insist on doing it this way, see Use a variable reference "inside" another variable and creating variable using variable value as part of new variable name.
1d
answered Add text to end of every line
1d
comment Obtain values of a section of a file
@Networker yeah. It's a full programming language, there are some very very complex programs written in awk. One of the first gene prediction algorithms for example.
1d
comment Calling a function which calls another function with a for loop
@shiva you really don't want to. What's the point of naming your variables that way? It might be possible with some very hard to read syntax but seriously, don't. That's precisely what arrays are for.
1d
revised How can I pass a filename containing percent signs (%) as a parameter to a shell script in cron?
edited title
1d
comment Obtain values of a section of a file
Note that cat file | grep foo is pointless. It's known as a "useless use of cat". You can always do grep foo file instead.
1d
answered Obtain values of a section of a file
1d
revised Calling a function which calls another function with a for loop
edited title
1d
answered Calling a function which calls another function with a for loop
1d
revised Calling a function which calls another function with a for loop
Fixed grammar
1d
revised Handling comma in string values in a CSV file
added 261 characters in body