Reputation
1,899
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 16
Newest
 Yearling
Impact
~175k people reached

Mar
17
comment copy to clipboard current path from console with no mouse
@micgeronimo you could use one of either xclip -o | xargs cd or cd $(xclip -o)
Mar
15
comment How can I add a backslash before all spaces of a file?
Bash's printf builtin has functionality similar to quotemeta -- printf '%q\n' "$line" should do it IIRC.
Dec
12
comment How to delete part of a name of 195 diffrent files in one folder?
I think something like rename 's/\[[^]]\]//' * would be slightly faster (but not to any extent noticeable with just 200 files). Also, it shpuld probably be noted that the -n flag tells rename to just report what it will do; to actually rename the files, you need to get rid of the -n.
Dec
5
awarded  Yearling
Nov
27
comment How to (using GUI) empty a flash drive's trash without emptying the computer's?
Children are able to pick things up pretty quickly, and housewives and grandmas are smarter than you give them credit for. I think this is about as simple as this task can be made, without changing file manager things drastically.
Nov
16
comment Which is best audio video converter on Linux?
For ffmpeg, at least, there is a pretty comprehensive compilation guide on the ffmpeg wiki.
Nov
14
awarded  Nice Answer
Nov
12
comment Unable to edit using vi
By default, Ubuntu only has vim-tiny (a stripped-down version of Vim that doesn't have any of the advanced features that make Vim and iMproved Vi), which IIRC doesn't come with vimtutor. You need to do sudo apt-get install vim-gtk in order to get access to the tutor.
Nov
9
comment Convert all .ape files to .flac in different subfolders
@tigerjack89 with find .. -exec, {} expands to the /path/to/file. So, let's say you have a file at ~/file/path/example.ape: the command in this answer would expand to avconv -i ~/file/path/example.ape ~/file/path/example.ape.flac. Here's the relevant documentation.
Nov
9
comment Convert all .ape files to .flac in different subfolders
I don't think there's any need for the * at the end of path/to-MainDirectory/*, but otherwise this is the correct answer.
Nov
9
comment Convert all .ape files to .flac in different subfolders
This won't work; avconv can't take input files from STDIN like that.
Oct
29
comment Can I recover a deleted file?
Probably not a good idea to alias basic commands like rm (it seems like it could encourage bad habits) -- better to use something like alias del='trash-put', I think.
Oct
23
comment Text editor with multi-pattern search and replace at once?
You can also chain a bunch of commands using |, for example: :%s/foo/bar/g | %s/brown/fox/g | %s/lorum/ipsun/g. Or put the commands one line at a time in a file and use :source commandfile.vim to run the commands. Or create a macro...
Oct
14
answered Lame - How to re-encode all 320kbps mp3 to 192kbps mp3
Oct
2
answered Deleting column in vim
Oct
1
comment For loop with unix find
find /home/family/Music -name '*.m4a' -exec sh -c 'ffmpeg -i "$0" -acodec libvorbis -aq 6 -vn -ac 2 "${0%.m4a}.ogg"' '{}' \; will fix the filename issue.
Sep
29
comment Delete files and folders with specific name from a certain directory
You should only use sudo when you really mean it, and there's no need for it here.
Sep
29
comment How to combine multiple text files into one text file ordered by date created?
@muru -- more than that, *nix systems typically don't store creation time at all, so it's actually impossible to retrieve such information. Stuart: have these files been modified at all since they were created? If not, you could sort them by mtime.
Sep
28
comment Search for a files that matches another file name in another folder
It's what's knpwm as a glob: basically * means 'any number of any characters'. *_code_c* will expand into a list of all the files that match the pattern 'any number of any characters, followed by "_code_c", followed by any number of any characters'. The 'for f in' bit (called a 'for loop') loops over that list and performs all the actions between 'do' and 'done' for each file in the list, individually. I hope that all makes sense ;)
Sep
28
revised Search for a files that matches another file name in another folder
added 2 characters in body