1,050 reputation
312
bio website
location
age
visits member for 1 year, 4 months
seen 13 hours ago

Mar
30
comment What does Vi stand for?
It should probably be noted that while it is excellent (once you know how to use it), vi/vim takes some effort to learn. It can be overwhelming the first time you have to use it; if you're not editing plain text files regularly, it's probably better to use (in the terminal) nano or (in the GUI) gedit (which lack the advanced features, flexibility and efficiency of vim, but are much more new-user-friendly).
Mar
29
awarded  Civic Duty
Feb
26
comment Change newline character in gedit
It doesn't answer the question, but it is possible to get gedit (and most Linux programs) on Windows, which would mean that you wouldn't need to worry about line endings.
Feb
25
answered Nano save to stdout (or an inline editor for terminal)
Feb
11
awarded  Caucus
Feb
9
answered What can I do with Terminal?
Feb
4
comment LibreOffice, LibreOffice Impress and LibreOffice Calc are not opening on projector
Do other programs work fine with the projector? IIRC (and I may not be), projectors show up as a separate monitor by default, so you have to drag and drop things from your notebook's screen to the projector.
Jan
28
comment Text editor to handle extremly large files
It sounds like this is some sort of log file, so it's likely that you can achieve your underlying task with standard command-line tools rather than a text editor. When you say you want to search and remove duplicates, what do you mean exactly? Maybe post a few illustrative lines from your text file. These tools (sort, uniq, maybe sed or grep) are generally better suited for large-scale tasks like this. Otherwise... loath as I am to say it (being a vimmer), if you're turned off by vim's general weirdness then your best bet probably is emacs, as @souravc wrote.
Jan
4
answered Writing a bash script to copy all files between user specified directories!
Dec
23
comment Find directory and delete it's content but not itself
shopt is the command to set options within bash -- shopt -s globstar sets (turns on) the globstar option. When this is set, ** acts as a recursive glob -- so **/*.foo would search for every *.foo in the current directory and within all subdirectories. dotglob is another shell option, which makes globs match files beginning with a dot (which are hidden by default). I normally leave shopt -s globstar extglob in my ~/.bashrc (extglob being another useful shell option).
Dec
23
answered Find directory and delete it's content but not itself
Dec
23
comment VIM not working
You are using an outdated version of Ubuntu, I wouldn't be surprised if it's impossible to install any software from the software centre. Upgrade to a recent version of Ubuntu.
Dec
14
answered vim struggles when copy-pasting large blocks of text in from an external window
Dec
10
comment Does terminal have quickedit mode?
Guake is awesome, but I don't see how this answers the question.
Dec
10
awarded  Custodian
Dec
10
reviewed Approve suggested edit on Does terminal have quickedit mode?
Dec
10
answered Does terminal have quickedit mode?
Dec
8
comment How can I prepend a random letter/number to the beginning of each filename?
According to the man page, mpg123 has a --random option, which will play the songs randomly and never stop. Alternatively, it looks like you could use a combination of --shuffle and --loop 0 to get what you want (I think these will each give you different behaviour: --random will select a random file every time; --shuffle/--loop 0 will create a random list once, at the beginning, and then loop through that list infinitely. Unless I'm misinterpreting the --loop option. You'll have to test it yourself).
Dec
8
comment How can I prepend a random letter/number to the beginning of each filename?
May I ask why you want to do this? There may be a better way to accomplish your underlying goal depending on what it is (possibly involving shuf and process substitution).
Dec
8
comment How can I prepend a random letter/number to the beginning of each filename?
@wilf I hope it didn't come across as argumentative, it wasn't meant to. I do think it's important to spread good scripting practices like quoting variables, though.