Reputation
422
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 6 15
Impact
~53k people reached

  • 0 posts edited
  • 0 helpful flags
  • 16 votes cast
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 How to check if pipe is empty
Feb
29
comment How to check if pipe is empty
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 How to check if pipe is empty
added example
Feb
29
revised How to check if pipe is empty
added example
Feb
29
asked How to check if pipe is empty
Feb
28
comment Use `dd` to cut file end part
tail - that's real fast. thanks for the tip
Feb
28
accepted Use `dd` to cut file end part