Reputation
11,730
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 24 46
Newest
 Necromancer
Impact
~473k people reached

4h
comment Gnome suggests me to open external HDDs with Anjuta.
Try with: xdg-mime default org.gnome.Nautilus.desktop inode/directory
16h
comment Need to obtain Awk output in specific sequence
With printf: awk 'NR==1{printf "%s", $0};NR>1{printf ",%s", $0};END{print ""}'
1d
comment Log both stdin and stdout of program
There's a similar question here
1d
reviewed Approve insert value from reference file
1d
comment How to pad a file to a desired size?
Correct. In this case truncate -s +262144 largerfile.txt would also be fast.
1d
revised Why can't I pipe to ack?
formatting
1d
comment Remove/Disable hot corner
As of gnome-shell 3.12 all the js and css files are wrapped up in resources and included in the gnome-shell binary (/usr/lib64/gnome-shell/libgnome-shell.so) so this won't work for newer versions of gnome-shell.
1d
revised How to pad a file to a desired size?
added 127 characters in body
1d
answered How to pad a file to a desired size?
1d
revised Convert underscore to PascalCase, ie UpperCamelCase
added 520 characters in body
2d
comment replace `while` with more suitable function so looping would wait for each process to end
Why are you using find * (asterisk) ? Why do you need the -r with rm to remove a file ? And while..read is the worst option... Try something like: find . \( -name '*avi' -o -name .... \) -exec sh -c 'ffmpeg -i "$0" "${0%.*}.mkv" && rm -f "$0"' {} \;
2d
comment udev not running rule at boot?
What if you use last rule... something like: KERNEL=="mmcblk[0-9]", SYMLINK+="sdcard-%k", OPTIONS="last_rule" ?
2d
comment replacing multi line string with another multi line string using sed
How many empty lines between // copyright and package ... ? One or two ? Your example has one empty line in between but you're saying you want to replace // copyright\n\npackage.* which means two empty lines in between...
2d
answered What is udev “urbnum”?
Apr
15
comment Replace string with contents of a file using sed
@RobinWinslow - you could use any of the working solutions here (you will just have to slightly adjust the code to replace the pattern instead of appending after pattern).
Apr
15
comment How to batch resize all images in a folder (including subfolders)?
find . -name "*.jpg" -exec mogrify -resize 820x {} + will do them all; if you don't want to process the "less than 820px" ones, there are some options here.
Apr
15
comment Convert underscore to PascalCase, ie UpperCamelCase
Speaking of perl, there's also a perl module String::CamelCase that "camelizes" underscored text.
Apr
15
answered Convert underscore to PascalCase, ie UpperCamelCase
Apr
15
comment Does less have a feature like tail --follow=name (-F)
Well, some more searching reveals it's already been asked and answered here so I'll leave it as a comment. You can always upvote the answer there.
Apr
14
comment Does less have a feature like tail --follow=name (-F)
You could try with less --follow-name or less --follow-name +F