11,235 reputation
12245
bio website
location
age
visits member for 2 years, 7 months
seen 32 mins ago

浪人


17h
comment What is the Install feature of gnome-font-viewer doing behind the scenes?
gnome-font-viewer just copies the font file in ~/.local/share/fonts as per font-view.c, lines 341-422. Other than that I don't see anything special in the source code.
1d
revised Sorting numbers and respective units in columns
numeric sort
2d
comment Birth is empty on ext4
Correct (I remember reading about this on vger). The 512MB limit is defined in mke2fs.c at line 1275
2d
comment Calling scripts from inside other scripts
@DewaldSwanepoel - read Glenn's answer here.
2d
comment Removing a specific line from a file
seconding @evilsoup ; though if you want to go by the book you should add the quit subcommand too: $'/Products below/d\nw\nq'
2d
comment Gnome Shell is terribly slow, while Mutter runs pretty fast
"On Mutter however, everything is smooth" - just curious... how do you run mutter without gnome-shell and vice versa ?
Mar
27
comment Restore windows boot manager in grub command line
@Sailor - I'm not familiar with EFI either... I have successfully used the arch live usb only on BIOS-based systems (link in comment under the question).
Mar
27
comment Restore windows boot manager in grub command line
See also Boot windows from grub rescue command prompt
Mar
27
reviewed Approve Restore windows boot manager in grub command line
Mar
27
comment How to make backticks accept variables as variables?
@3kstc - c'mon... you DON'T need backticks or $() for mosquitto_pub.... You simply run the command WITHOUT them. You only need them on the upper line: first_awk_variables=`tail -n1 ... where you assign the output of the command to a variable. Also, surround your variables with double quotes, as per two of the three answers here. Please do some reading on command substitution and variable expansion .
Mar
27
comment How to make backticks accept variables as variables?
Also, I advise you to get into the habit of using $(...) instead of `...`. It'll make your life much easier. Here.
Mar
27
comment How to make backticks accept variables as variables?
@3kstc - what are you talking about ? You don't need those, just run the command... Read gilles answer.
Mar
26
comment How to convert all odt files in a folder into microsoft word files ?
unoconv -f doc *.odt
Mar
26
comment Find result used in if statement
I'm not sure this could be done with -prune (if there is a way, it's definitely beyond me). This post gives some details on how -prune works.
Mar
26
comment Find result used in if statement
Some people here have no sense of humour... Anyway, clever trick, it would have never occurred to me to use read (I would have used smth like [ -z "$(find ...)" ] && echo no || echo yes)
Mar
26
answered How to delete specific lines within a certain area?
Mar
26
comment How to find all JPG files on the file system when .jpg extension is not obligatory ?
nwilder, OK but your output still doesn't list just the filenames. I'm not trying to be an ***, I'm just pointing out the weak link in your answer - which is parsing the output of find+file (I expect other people here to do the same when they spot possible problems in my answers). And no, managing filenames with newlines (or other funky chars) isn't hell but you'll have to take a different approach.
Mar
26
comment How to find all JPG files on the file system when .jpg extension is not obligatory ?
@FranklinPiat - that's better, indeed, but you're still left with a couple of problems either way because you're grepping find+file output: grep will not give you the expected output for filenames containing newlines; you'll also have to consider the fact that paths could be e.g. /dir/: image/jpeg/etc; assuming no such filenames, you still have to parse grep output again to get just the filenames.
Mar
25
revised How to list only JPEG files from root below using the command line?
fixed first one to avoid false positives if path contains /image/jpeg
Mar
25
revised How to list only JPEG files from root below using the command line?
added 4 characters in body