1,770 reputation
415
bio website
location
age
visits member for 1 year, 10 months
seen 7 hours ago

2d
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
Sep
28
comment Search for a files that matches another file name in another folder
I'll come back and explain it all tomorrow (it's a wee bit past my bed time right now). To be getting on with, it might be worth your while reading this, simce I think that's the most unusual thing I've used here.
Sep
28
answered Search for a files that matches another file name in another folder
Sep
28
awarded  Nice Answer
Sep
25
comment How to display random jokes from www.icndb.com in your terminal?
If you add ?escape=javascript to the end of the url (according to the api's webpage), then it won't use html entities (though you might need to trim a few backslashes).
Sep
21
comment Installation error from terminal and ubuntu software center
Deleting system files is very dangerous. While it might sometimes be the best course of action, it certainly shouldn't be a first resort.
Sep
21
comment Which video cutting software runs under Linux/Wine
What do you mean by 'better'? What have you tried, and what was the problem with what you tried so far?
Sep
8
answered How can I repeat the content of a file n times?
Sep
7
comment Bash script for multiple tabs program running
If this is something you need to do regularly, it might be worth your while to have a look at tmux or gnu screen.
Aug
30
comment Are there cases where vi is the only option?
Surely, if you're using Ubuntu then you already have an operating system, so emacs would be redundant :v
Aug
28
awarded  Nice Answer
Aug
27
revised Are there cases where vi is the only option?
added 46 characters in body
Aug
27
answered Are there cases where vi is the only option?