Split a physical X display into two virtual displays?

I just purchased a TripleHead2Go and configured it using OSX. What this box does is simply take 1-3 multiple external monitors and combine their signal into one single resolution. I’m using two external 1920×1080 displays with it, bringing my display size to 3940×1080, alongside my laptop’s regular display of 1920×1200. My laptop is running FGLRX 8.95 with Catalyst 12.3, the video card is an AMD Radeon HD 6700M. Here’s what I’m looking at, presently:

Is there any alternative to grep’s -A -B -C switches (to print few lines before and after )?

grep -A 2 -B 3 prints 2 lines after the grep string and prints 3 lines before. grep -C 3 prints 3 Lines before and 3 lines after Unfortunately, the grep I’m using does not support these options. Are there any alternative commands or script available to simulate this? Using sed/awk/perl/shell scripts? Answers: Thank you … Read more

Which application should I blame for compulsively creating a directory again and again?

There’s an application on my system which keeps creating an empty ~/Desktop directory again and again. I can’t stand capital letters in my home, nor I can stand this “desktop” thingy. So, as picky as I am, I remove the directory each time I see it. I’d really like to know which application is responsible for that (probably some application I won’t use so often¹).

using tee to output intermediate results to stdout instead of files

I know that to capture a pipeline’s contents at an intermediate stage of processing, we use tee as ls /bin /usr/bin | sort | uniq | tee abc.txt | grep out , but what if i don’t want to redirect the contents after uniq to abc.txt but to screen(through stdout, ofcourse) so that as an end result , i’ll have on screen, the intermediate contents after uniq as well as the contents after grep.