Search Results - JustLinux Forums


Search:

Type: Posts; User: hotleadpdx

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    18
    Views
    3,419

    I would agree that picking the flavour of the...

    I would agree that picking the flavour of the month in distros isn't "literacy," anymore than finding the most difficult distro to install makes for a literate Linux user. Granted, you gain knowledge...
  2. Replies
    4
    Views
    794

    Thanks lagdawg, that's close enough for what I'm...

    Thanks lagdawg, that's close enough for what I'm doing. :)
  3. Replies
    4
    Views
    794

    Odd that didn't work for me. I'm running this...

    Odd that didn't work for me.

    I'm running this on HP-UX perl v5.6.1 (Built for PA-RISC1.1)

    Using printf "%x\n", hex(T);

    I get a value of 0 (zero).

    I then removed the new line after %x,...
  4. Replies
    4
    Views
    794

    Perl question

    After searching on Google (and finding some answers close, but not quite) I decided I'd throw this question out.

    I have some perl code that gathers three single characters (alpha-numerics) from a...
  5. Replies
    28
    Views
    2,775

    Re: Windows Vs. Linux

    I believe you meant to say that DOS was copied from Unix, and tweaked to work on a PC. From there, several GUI shells were created before Windows was created. So - DOS (which was fairly stable if a...
  6. Replies
    4
    Views
    775

    I'm guessing that the original input file has the...

    I'm guessing that the original input file has the ^M in it as well?

    ^M indicates file formatted using carriage return / line feed (CR/LF) to terminate the lines, instead of line feed (LF) only....
  7. Replies
    278
    Views
    666,090

    "Useless Uses of Cat" :) How amusing :) Where's...

    "Useless Uses of Cat" :) How amusing :) Where's the list kept? Using cat is a bad habit of mine from working with compressed files all day (zcat $file | blah blah...). But! If there's a sed command...
  8. Replies
    278
    Views
    666,090

    Though this doesn't really fit into the...

    Though this doesn't really fit into the programming challenge I'd use sed to accomplish this:

    cat $file |sed 's/[TAB]/[3SPACES/' > $newfile

    Sometimes the best programming is using the tools...
  9. Replies
    4
    Views
    775

    Easy enough: check out the man page on grep...

    Easy enough:

    check out the man page on grep (specifically -e). Using grep -e you can look for multiple items in a single file so your command would be:




    cat $file |grep -e <first> -e...
  10. Replies
    6
    Views
    912

    for file in /your/directory/*.dist do...

    for file in /your/directory/*.dist
    do
    basefile=`basename $file .dist`
    mv $file /your/directory/$basefile
    done
  11. Replies
    163
    Views
    32,069

    Nothing is hackproof. If you believe that you're...

    Nothing is hackproof. If you believe that you're going to be blindsided when you get hacked. A properly configured linux router / firewall makes it more difficult to hack, but not impossible. The...
  12. Another way to do this is: for i in `ls -1...

    Another way to do this is:



    for i in `ls -1 *.bmp`
    do
    basefile=`basename $i .bmp` # removes the .bmp extension
    bmptoppm $i > $basefile.ppm
    done
  13. Replies
    28
    Views
    2,434

    Poll: Linux 3D Graphics Programming Advanced Linux 3D...

    Linux 3D Graphics Programming
    Advanced Linux 3D Graphics Programming
    Linux Sendmail Administration
    RH Linux 7.2 Bible
    RH Linux 7.2 Unleashed
    Linux in a nutshell
    X Windows system User's Guide...
  14. Replies
    8
    Views
    850

    @bwkaz - awk uses $1 to mean the first field of...

    @bwkaz - awk uses $1 to mean the first field of the line awk is parsing rather than the first argument to the shell script.

    The base format for an awk command from the command line (or from...
  15. Replies
    8
    Views
    892

    I could see the above system for 3D graphics...

    I could see the above system for 3D graphics applications or games, but for anything else, it's pretty much overkill. Considering that the average user won't use even ½ of the resources present on a...
  16. Thread: c++

    by hotleadpdx
    Replies
    2
    Views
    828

    I just came across this one a few hours ago: ...

    I just came across this one a few hours ago:

    http://www.sparknotes.com/cs/
  17. Replies
    20
    Views
    6,189

    Duh - That's right. 2 to the 20th power bytes....

    Duh - That's right. 2 to the 20th power bytes. Long day :)
  18. Replies
    20
    Views
    6,189

    Shouldn't that be: ( heads * cyl * sect * 512)...

    Shouldn't that be:

    ( heads * cyl * sect * 512) / 1024 = disk size in MB since 1mb is 1024 bytes?
  19. Replies
    7
    Views
    816

    JamesD - Read the man page on wc - pay...

    JamesD -

    Read the man page on wc - pay attention to "without a filename, wc counts standard input."

    A hint as to what you're doing wrong -



    $bytes=`wc -c < $i`
  20. Thread: Cron?

    by hotleadpdx
    Replies
    8
    Views
    970

    One way to check that it's running (in case your...

    One way to check that it's running (in case your e-mail isn't working right) is:



    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/tmp/crontab.16136 installed on Wed Apr 9...
  21. Replies
    24
    Views
    1,263

    First off - I didn't go to the link, so this may...

    First off - I didn't go to the link, so this may be there.




    <command here>
    SUCCESS=$?

    if [ $SUCCESS -eq 0 ]
    then
  22. Also - the battery isn't difficult to change in...

    Also - the battery isn't difficult to change in most computers. If you open the case up and look around on the motherboard, you should see what looks like a large watch battery (usually a CR2024...
  23. Replies
    31
    Views
    2,361

    On the boot floppy for Windows, copy the...

    On the boot floppy for Windows, copy the command.com from A: to C: and then reboot without the boot floppy. If you're command.com is dead on C:, the A: copy should work fine.
  24. Replies
    15
    Views
    1,312

    Or you can script it so you can do it the lazy...

    Or you can script it so you can do it the lazy way and still get an output file you want:



    #!/bin/ksh
    # Shell script to compile C++ programs using input source
    # of <program>.cpp and output...
  25. maxthree, Correct me if I'm wrong, but it...

    maxthree,

    Correct me if I'm wrong, but it sounds like you want to do the following:

    From this line (or similar lines):
    bra 26 1 connected H.F4 no call active verify this port !!!!

    Take...
Results 1 to 25 of 52
Page 1 of 3 1 2 3