362 reputation
512
bio website
location
age
visits member for 2 years, 8 months
seen Oct 19 at 1:15

Apr
30
comment Any tool for inspecting GTK3 elements?
I just did that and thought to report, but there you are :) Patch from comment 5 works great!
Apr
30
comment How to install .tar.bz and .tar.bz2 packages?
Those are archives. You need to unpack them and see for instructions inside. Usually it's ./configure, make, make install, but I'm sure someone will provide better answer to you, with links where you can learn this very basic things before you actually try to build anything
Apr
1
comment Creating recursively sorted RAR archive
Thanks Eli for your answer, but unfortunately none of provided examples stores file sorted here. I'm also on Ubuntu. find * | sort lists files sorted but find * | sort | xargs rar ... stores files in unsorted order for some reason. I tried also -n@ (with additional sort command) which works fine as in your snippets, but again it does not store sorted files. I could provide screenshot from terminal if anyone requests it. So for me, snippet that works is the last update to my question: for d in */ ; do rar a -r archive.rar $d*.txt ; done which loops over folders and is acceptable to me
Mar
31
comment Creating recursively sorted RAR archive
Yeah, I started with gzipped tar and then wanted to update archive... rest is history, w/o even mentioning all handy rar options
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
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
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
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
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
1
comment Check if filename exist from inline command
Thanks. Marking first answer, as both are correct
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
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
28
comment Use `dd` to cut file end part
tail - that's real fast. thanks for the tip
Feb
28
comment Use `dd` to cut file end part
work fine, thanks
Feb
28
comment Use `dd` to cut file end part
I want last 1MB
Feb
24
comment Variable name from command output
Seems like great idea. I have "GNU bash, version 4.2.8" and script returns [unexpected EOF while looking for matching `"']. I'm looking for possible solutions right now...
Feb
24
comment Variable name from command output
Thanks. I guess there is no other way then exporting as environment variable? I mean I can't make local variable name from command output?