Reputation
4,890
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
14 39
Newest
 Nice Answer
Impact
~1.5m people reached

Feb
12
comment Sort files by highest number in filename
@Costas: Why don't you make this an answer?
Feb
1
comment Retrieving lines from a file depending on other lines
I get an bash: !d': event not found, what am I doing wrong?
Jan
30
comment Redirecting stdout to a file you don't have write permission on
@syntaxerror: Sir, I'm sorry, I'm not a native English speaker. If you specify what is unclear to you, I could try to improve my answer. Compared with 65 upvotes for Gert, 4 doesn't seem to be that many upvotes, either, don't you think?
Dec
8
comment How to create a function that can sort an array in bash?
@StéphaneChazelas: Please provide your own answer, if you have a better solution. I'm working fine most of the time with 'echo', not 'printf' and tr, not paste. I don't like to answer questions for code which I woulnd't have written.
Dec
8
comment use find and grep to find lines that contain some string and don't contain other string from files
@schily: Why? Execplus has to be pretty new - I've never seen it before. I'm using find (GNU findutils) 4.4.2. Or do you mean -exec ... + ? Well, you can, yes. Premature optimization is the root of all evil. :)
Dec
8
comment extract blocks of text from xml file with a condition
Your example has only old ones.
Dec
6
comment How to create a function that can sort an array in bash?
If you output the result, you don't sort in place. In place means, that the original array is modified which will influence other usages of the array.
Dec
6
comment How to create a function that can sort an array in bash?
An array of what, sorted by which condition? Did you try anything yourself? Do you want to output the result? Sort in place?
Aug
7
comment How can I hide the output of command line in terminal window?
@MJA: No, behind every command.
Aug
7
comment Why do I have 4 Sets of Icons
Try to get a fifth set of icons. When you reached your goal, you'll probably know why you had 4 before. ;)
Aug
6
comment How to Remove last comma of each line on csv using linux
@yescobar1: You should update your question and add the important information about trailing spaces to your question. Questions should be answerable without reading comments.
Aug
6
comment How to Remove last comma of each line on csv using linux
Useless use of cat - or can't you specify a file for sed in Solaris?
Aug
6
comment Excel - Keep data on field that starts with
Which format is the excel file, .csv? What tools do you have to parse it, if not? Excel isn't available for Unix or Linux, is it?
Aug
6
comment How to tail a log file by time?
This will not be accurate to one minute and will fail completly if there wasn't an entry at 21:xy.
May
29
comment How to remove all the files in a directory?
@DarkHeart: With the "images/" in front of the ".*"? Can you provide a concrete example?
May
26
comment How to remove all the files in a directory?
My suggestion was to use 'rm -r images/.*' which would match 'images/..' but not 'images/../..'. The recursion can't go upwards, since 'images/../images/..' is again the same directory.
May
4
comment xfce4 netload plugin, monitor on all interfaces?
You add the plugin another time to the panel, and name them, for example, wlan0, ppp0 and eth0.
Apr
25
comment shell script to get collect pixel size of image
Don't do "cd" in scripts. You can iterate from your current directory over the files too. And don't do "ls" in scripts. In bash, you can do: for f in $f/OEBPS/image/*{png,jpeg,jpg}. A ls will bite you if you have blanks and such in fillenames.
Mar
25
comment Do we have an undo in Linux?
@Tim: Yes, I do.
Dec
29
comment Grep lines that cotain “1111-11-11” or “2382-21-20”. (Any Numbers)
Your Questions doesn't contain the less-than and greater-than signs, but the search and the answers - what role do they play?