547 reputation
521
bio website
location
age
visits member for 2 years, 4 months
seen 19 hours ago

Shyy erny anzr - Naqernf Rvonpu


Jan
7
revised extract line from same string
even more complex (unfortunately, but it needs to be logical and false positives must be safely excluded)
Jan
7
comment extract line from same string
@IlarioFerrocino The more complex solution (2nd line) does take tabulators into account.
Jan
7
revised extract line from same string
even more complex (unfortunately, but it needs to be logical and false positives must be safely excluded)
Jan
7
answered extract line from same string
Jan
6
comment Linux cut command with -f1
... but defining fields separated by a certain character. To give another example, -d\! would look for ! per line and from each ! starting, cut would define a new field. Also note the important - which can be used for field names: -f2- will mean "from field #2 to end of line", which can be invaluable when amount of fields per line is expected to vary.
Jan
6
comment What is the meaning of the directory specified by '//'?
cd / should do the trick as well. No need to double the slash.
Jan
2
comment Why using cat on binary files messed up the terminal and how?
@Joshua And what's the difference between a lone reset and a reset between Ctrl-J keypresses? I can't see any (nor any reason to go the more complicated way)
Dec
27
answered Error when running TMUX under CYGWIN
Dec
19
awarded  Enthusiast
Dec
16
comment Create a binary input file from hdparm's --read-sector option
Well, this is just what I wasn't sure about two weeks ago.
Dec
16
revised arithmetic wiki excerpt
added 213 characters in body
Dec
16
wiki created arithmetic excerpt
Dec
16
suggested approved edit on arithmetic tag wiki excerpt
Dec
16
comment Create a binary input file from hdparm's --read-sector option
Well, the most important thing to me was, that in the hdparm manual (I read it thoroughly several times), there was something explained about hdparm using an extremely low-level approach to read sectors when using --read-sector. So frankly, I wasn't sure (or better: much too skeptical) about whether ddrescue would use a likewise low-level approach or one or more tiers higher. Needless to say that the lowest tier was just good enough to get something useable out of those few corrupt sectors.
Dec
15
comment Flash plugin up to date but Firefox keeps telling me that I have the old version
"Simple script"? I beg to differ. :P I think that for f in $(ps -C firefox -o user=); do will work perfectly enough :) Moreover, when I use your line, I find out that first line is the grep itself, and the firefox line I want is in line #2. So if you do want to go the complicated way, make sure you insert a | grep -v grep somewhere as well.
Dec
15
comment Read-only file system error while accessing the files on Ubuntu
This question is impossible to answer sensibly without knowing what file system it is about you're trying to create your testFolder on. Consider that also NTFS partitions can be accessed from a Linux-type system...
Dec
15
revised Calculate and divide by total with AWK
if we calculate, divide etc. we're doing arithmetic operations. there is already a tag for it afair
Dec
15
comment awk separate columns of 3
@Arcege nit: $ awk -f whatever.awk is not necessary if the shebang #! has already specified /bin/awk -f. In your case, $ ./splitnum.awk filename will work a treat. The gain is: less typing effort.
Dec
15
suggested approved edit on Calculate and divide by total with AWK
Dec
15
comment Calculate and divide by total with AWK
Thanks, very interesting stuff. But do not even think of using this in C! As awk's printf syntax is pretty alike to the C syntax, this looks sooo darn tempting. But C, in contrary, will show itself obdurate here once more (just had to test it! :)) warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’. Trying to run that program even resulted in a segfault...!---So what this post is supposed to say is: don't assume that what you can do in awk would be possible in C as well. awk is WAY more liberal in that respect.