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

1d
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.
1d
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.
2d
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 ;)
2d
revised Search for a files that matches another file name in another folder
added 2 characters in body
2d
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.
2d
answered Search for a files that matches another file name in another folder
2d
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?
Aug
27
comment Problem with m4a files
Do you get this problem with all M4A files, or just this one?
Aug
25
answered Copying first 1000 PDF files having single, double quotes in their name to another folder
Aug
22
comment Copying first 1000 PDF files having single, double quotes in their name to another folder
I don't think this would actually help. It seems that the problem is with filenames like foo'bar and baz"bing -- where the quotes will confuse the shell. Unfortunately, I can't seem to find a way to solve this in the find documentation, so it'll probably need a different approach entirely.
Aug
22
comment when i try to download anything from terminal i have this
That seems like it could be dangerous: lock files exist for a reason.