12,656 reputation
12037
bio website
location
age 31
visits member for 4 years, 4 months
seen 38 mins ago

Aug
31
revised Unable to install python 2.7.6
Tagging.
Aug
21
answered Is there a way to display a countdown or stopwatch timer in a terminal?
Aug
21
revised Bash Script to repeat every word in a line?
Fix the spelling error that was used to adhere to the exact formulation of the question, but since the question in itself has been corrected it just looked silly. Also reword the earlier addition a bit.
Aug
19
comment Run python script on server over ssh session in the background persistantly
Look at GNU Screen, tmux, dtach, or similar programs.
Aug
12
comment Need to source bash_profile each time
Are you sure you are starting Bash and not some alternative shell (tcsh, zsh, …)? You can e.g. grep for your username in /etc/passwd to see your settings.
Aug
3
comment How do I move files out of nested subdirectories into another folder in ubuntu? (Trying to strip off many subfolders)
@pabouk: I meant to try it with find in combination with -exec echo {} + or -print0 | xargs -0 echo, but I was unclear. find will never deliver file name arguments in a form that can be misinterpreted as switches, since find will always prepend the file names with the path. In the case of files in the base directory, it will prepend ./, so the -- protection does not actually do anything here.
Aug
2
comment How do I move files out of nested subdirectories into another folder in ubuntu? (Trying to strip off many subfolders)
Neither xargs nor -exec + have issues with file names starting with - — just try it out with e.g. echo and see. Regarding portability, the -t switch to mv is a GNU extension anyway, and if the user has GNU mv, it most likely has GNU find and xargs (at least vice versa would be equally probable, so there would be no net gain in portability). I agree with the conclusion that -exec + usually is a more straightforward solution than -print0 | xargs -0, though.
Jul
19
revised Test if a package is installed in APT
Add syntax highlighting.
Jul
15
awarded  Custodian
Jul
15
reviewed No Action Needed How do I remove English (US) from Windows 8.1?
Jul
15
revised Byobu versus gnu screen versus tmux
Improved language.
Jun
18
revised How to tell apt that dependencies are resolved manually?
Added link to TeX.SX.
Jun
2
awarded  Custodian
Jun
2
reviewed No Action Needed Find all MKV files and remove all subtitles
May
27
comment LaTeX creates some long lines (longer than 'linewidth')
I can add that the situation where a line is not fully filled up is analogously called an "underfull hbox".
May
27
comment LaTeX creates some long lines (longer than 'linewidth')
@BaharS: Either the hint, or if you do not want it hyphenated, reword the sentence. The hyphenation algorithm in LaTeX is advanced and tries hard to work around these issues, so if it happens, it is for a reason. As a corollary, these kinds of rewordings are the very last thing one should do to avoid doubling the work in case one adds more information to the sentence anyway. If one is OK with hyphenation, the \- trick is alright. If the same word occurs in many places, one can add the hyphenation pattern once and for all with e.g. `\hyphenation{ex-em-pli-fy}, typically given in the preamble.
May
27
answered LaTeX creates some long lines (longer than 'linewidth')
May
27
comment script to delete duplicate files using md5
If you properly indent your code it will be easier to read. Remove the space after h= on line 22 and after s= on line 29. Use $((b+a)) instead of expr to add $a and $b. Use e.g. for f in "$directory/*" instead of parsing ls output. Quote your variables. No need to mix between [ = ] and [ == ] — do you know the difference? Edit: I see that l0b0 was thinking along the same lines :-) .
May
15
awarded  Good Answer
Apr
29
answered Find particular file from extension from particular directory