Reputation
467
Top tag
Next privilege 500 Rep.
Access review queues
Badges
4 6 16
Impact
~60k people reached

  • 0 posts edited
  • 0 helpful flags
  • 16 votes cast
Mar
31
comment Creating recursively sorted RAR archive
Yes, I do, as I pipe uncompressed output to stdout with rar p. BTW unrar -v switch you mention, does not do anything here - did you test it?
Mar
30
asked Creating recursively sorted RAR archive
Mar
24
accepted diff - output line-numbers
Mar
24
comment diff - output line-numbers
Just great! Thanks :) I tried to guess from help listing, but w/o success, and thought I misread it. Then I made what I wanted with Python (difflib module with indexed files per line in list object) only that I couldn't use diff <(pipe buffer1) <(pipe buffer2) with Python, like I planed with diff. Now you saved me :)
Mar
23
asked diff - output line-numbers
Mar
3
comment make grep output without trailing newline
ah tr... interesting, works both on LF and CRLF files. I would think \010\013 for some reason, and also \f\r works correctly. About the result: I don't actually put the output in variable but as variable enclosed in $() in pattern for grep match - some pipe | grep -o " $(...) ". Thanks for comments
Mar
3
accepted make grep output without trailing newline
Mar
3
comment make grep output without trailing newline
Thanks Chris for your effort and correct answer. I still haven't got to awk, as to know the syntax, what I should, should not... but your explanation makes it simple in this case. Cheers
Mar
3
comment make grep output without trailing newline
OK, this time it does it good - output last word in a line if that line satisfies some pattern condition - don't know, maybe it's clear to me because I have this problem, and then hard to explain as non-native english speaker. Anyhow, I'll wait a bit more if someone addresses this with grep/sed solution instead awk (which I don't understand), and if not I'll use it. Thanks
Mar
3
awarded  Commentator
Mar
3
comment make grep output without trailing newline
:) Now it doesn't look elegant any more and it is still no good
Mar
3
comment make grep output without trailing newline
Thanks, it looks elegant but unfortunately CRLF is still inside X
Mar
3
asked make grep output without trailing newline
Mar
1
accepted Check if filename exist from inline command
Mar
1
comment Check if filename exist from inline command
Thanks. Marking first answer, as both are correct
Mar
1
asked Check if filename exist from inline command
Mar
1
comment Opensuse 11.4 very slow on 8 GB RAM i5 processor
Is Eclipse your only performance problem? I had similar issue (with PyDev) when I found out that it indexes myriad modules in system's Python library path. Then I removed this folders in preferences. So it doesn't matter you have high-end machine if it needs to access HD to infinity
Feb
29
accepted Check if pipe is empty and run a command on the data if it isn't
Feb
29
comment Check if pipe is empty and run a command on the data if it isn't
OK, thanks. I'll use temp file. I found in the meantime there is ifne command from moreutils deb package that does exactly that, but it's not on my system.
Feb
29
revised Check if pipe is empty and run a command on the data if it isn't
added example