Jump to content

theYinYeti

Members
  • Posts

    2151
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by theYinYeti

  1. It does. It should be faster with 2 procs, than with 1, but not twice faster.
  2. Search for information/tips/tricks, either here or on the web, about package vsound.
  3. Thanks! That's a good thing to know :)
  4. cat file | awk '{print $2}' | grep -E '^.{19}A' | wc -l where you replace A with the letter you want, and 19 with the number of columns before the one interesting you (here, the column of interest is the 20th). cat file | awk '{print $2}' | sed 's/^.{19}(.).*$/1/' | sort | uniq -c where you replace 19 with the number of columns before the one interesting you (here, the column of interest is the 20th). If you've got multiple files you want to process simultaneously, just add them to the cat command: cat file1 file2 file3 ... fileN | awk ... If the files don't only contains lines such as you describe, but also lines with differents formats or comments, you can make a filter by writing the following code just before 'awk' on the command line grep -E '^[^[:space:]]+[[:space:]]+[[:alnum:]-]{60}[[:space:]]*$' | That's all assuming that interesting lines begin with at least one non-space character, those characters being followed by at least one space, then the 60 character (either letters, or digits, or -), optionnaly followed by space characters until the end of the line. You can also make a script: #!/bin/bash # first parameter: the column number # next parameter(s): the file(s) COLN=$(( $1 - 1 )) shift cat $* | grep -E '^[^[:space:]]+[[:space:]]+[[:alnum:]-]{60}[[:space:]]*$' | awk '{print $2}' | sed "s/^.{$COLN}(.).*$/1/" | sort | uniq -c Yves.
  5. You should use fetchmail to retrieve mail from a distant storage (typically your ISP). Then you do as you want: - either direct access to /var/spool/mail/<user> with a capable mail client, - or install a POP3 server, - or install a IMAP server. Yves.
  6. Could you please tell me what is the command to add a directory full of RPMs into the URPMI database? Yves.
  7. I have difficulties understanding what you want. Is it: "I want to do a search on column N. What letters are there in this Nth column? How many times each?" or "I want to do a search on column N. Show me the lines with letter <X> in this Nth column." or "I want to do a search on column N. How many lines are there with letter <X> in this Nth column?" or "I want to do a search for the letter <X>. What column numbers contain this letter?" or "I want to do a search for the letter <X>. Show me any line, one column of which contains this letter." The only thing I understand is that you absolutely don't care for anything before the series of - and letters. Is that OK? Yves.
  8. Do you mean that all drives are "full" if you try saving as .DOC, but they are "not any more" if you save as .RTF :shock: :?: That would be MS-quality
  9. Here's how I almost automatically retrieved all my messages from the old boards, at club-nihil.net: Connect to the club-nihil site, and follow the "My posts" link. Save the index(es) of your posts in as many files as needed. For me, that was: 1search.php.html, 2search.php.html, 3search.php.html, 4search.php.html, 5search.php.html, 6search.php.html, 7search.php.html Open those files with a Regular-Expressions-enabled text-editor. For all of those files: - replace text 'http://www.club-nihil.net/mub/' with '' (nothing) - replace text 'http://club-nihil.net/mub/' with '' (nothing) - replace regular expression 'href="([^"]*)"' with 'nhref="http://www.club-nihil.net/mub/1"n' I suppose you can do all that with `grep -E` but I'm not sure grep understands the n for carriage returns... Save all changes. You'll obtain files with only absolute URL paths, and each href line alone on its line. Then with a shell, do that: grep -h '^href="[^"]*"$' *search.php* | sed -e 's/&/&/' -e 's/&highlight=/&start=0/' | grep -E "viewtopic.php?t=[[:digit:]]+&start=" | sort -u | sed -e 's/^href="//' -e 's/"$//' > topics.txt (only one line!) The result is a text file with the URLs of all pages to save. Now you just have to get them with wget: wget -i topics.txt -w 1 -E In the end, wget tells you how many files were downloaded. You can check that all files are OK with this command, which should give the same number (that is: if you moved the indexes from start somewhere else, else they'll get counted): grep '<html' * | wc -l I hope this helps. Yves. Edit: I added in bold some code I previously forgot to type.
  10. I'm not sure at all. Besides, it may not work with nested folders. Anyway, you should be able to just share your folders between both apps. Try doing something like that: cd $HOME tar czf KMail-backup.tar.gz Mail tar czf MozMail-backup.tar.gz .mozilla/location/for/mail/files rm -rf Mail ln -s .mozilla/location/for/mail/files Mail In case you do something wrong, you still have your backups. Just replace ".mozilla/location/for/mail/files" with the real place, for example: ".mozilla/obd03k5j.slt/Mail/Local Folders" Yves.
  11. If you do something bad with your gnome-desktop, and you want to re-initialize your gnome config from the start, without deleting the whole user, just do that in a terminal window: cd $HOME rm -rf .gnome* Yves.
  12. theYinYeti

    VI editor

    VI tutorial for beginners: http://www.troubleshooters.com/lpm/200212/200212.htm
  13. All interested in the topic should read this: http://www.freedesktop.org/standards/clipboards.txt Yves.
  14. Search the boards for words "laptop" "old"... You may find something.
  15. theYinYeti

    Login manager

    KDM (default), GDM (my choice), XDM (very simple)
  16. The problem with XDM is that there is no button to halt or reboot the machine, or to restart the X server (the last two are really optional). Yves.
  17. I posted that on old club-nihil board: ---------------------------------------------------------------------------------- From old MUO/mub: ----------------------------------------- That's a lot of interesting questions :-) 1- Every Unix administrators have their way of managing applications. But there are basic rules: Normally, "standard" application (read: RPM in the case of Mandrake Linux) go in /...). Vendor (proprietary) applications should go in /opt...). Applications compiled and installed by the administrator himself (root) should go in /usr/local is a good idea, though I personally do it differently. 2- You say that you compile and install, and that your executables are still in /usr/local/src? Strange... Most programs out there can be compiled in 2 or 3 steps: step 1: ./configure (with options sometimes) step 2: make step 3: make install (optional, always as root) If the program you compile requires that you do this 3rd step, then most probably the executable will end in /usr/local/bin. 3- NOOO!!! <.°-) No registry. There are usually two situations: A) If you did not use the "make install" step, then all your files are still in the directory where you built the program. If you remove the directory, then all's gone. For those programs, I suggest you place a little script in /usr/local/bin#!/bin/sh cd /usr/local/src/your_prog/src ./myProg[/code] (adapt to the name of your directory and the name of your executable). Of course, if you delete the your_prog directory, you'll have to also delete the myProg.sh script by hand. B) I you *did* use the "make install" step, then most probably your files are scattered accross /usr/local. That should not be any problem, because most of those programs come with a "make uninstall" command. For this reason, never delete the sources directory (unless you archived it first, eg. with tar and gzip). Unfortunately, some programs supply a "make install" command, but do not supply the "make uninstall" command. That's very dirty. If you want to avoid those programs, then check the Makefile file for the presence of a uninstall: rule before any "make install". If you still want to install those dirty programs, you've got two choice: keep note of what's installed and where, or create the uninstall: rule in the Makefile file yourself. Not easy. 4- By default, any application you install for Unix (and therefore Linux) is multi-user, if it simply is accessible (and executable) by the users you want to be able to use the application. Open/Star-Office are bad examples of how an application should behave on Unix. Bad bad. Of course, for administrative reasons, and if you can do that, it's best to install applications under the root login, in a shared place, such as /usr/local. Because if you install in your home directory, you'll have to ensure that all users who should have access to the application can access it but not to your whole home directory. So back to Open/Star-Office: install it with the "/net" parameter, as root. Then each user will run the setup so that personal preferences are stored in their home directory. ----------------------------------------- UPDATE: if you install a program you compiled yourself, and this program provides a "make install" command, but not a "make uninstall" command, you should use the checkinstall package, which will transform a "make install"-type of install into a RPM, so the program will be as easy to uninstall as any RPM package. Actually, you can use "checkinstall" instead of "make install" for every program you compile from source. I do so. I hope this helps ---------------------------------------------------------------------------------- Yves.
  18. Maybe try this: telnet X.X.X.X | tee trace.txt but this will only capture output, not input (if it works).
  19. What do you mean? Do you mean that Endeavour can do the toolbar/panel, and the desktop icons, like Rox does?
  20. I do remember it. I liked it too, but on Atari ;-) not PC (I never ever owned Windows: I went direct from Atari to Linux).You can still play Battle Chess with an Atari emulator. It works. Yves.
  21. The most obvious answer is that the "network" service is not running. See if it is, in Mandrake Control Center. Else it may be because of a too high security level... I doubt it.
  22. Also, I've read that BabyChess (http://user.cs.tu-berlin.de/~kunegis/babychess/) is good.
  23. There must be an error... It's not in French (it doesn't matter) and there is nothing about removables (cdrom...).
  24. For 3D, GlChess seems to be the best, and it uses good chess-engines as a back-end. Unfortunately, this program offers close to nothing to configure from the GUI, and does nothing else than basic chess (no training...). For a good GUI, I've heard that Knights and eboard are good. I never tried them.
×
×
  • Create New...