Search:
Type: Posts; User: hotleadpdx
Search:
Search took 0.02 seconds.
-
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...
-
Thanks lagdawg, that's close enough for what I'm doing. :)
-
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,...
-
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...
-
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...
-
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....
-
"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...
-
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...
-
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...
-
for file in /your/directory/*.dist
do
basefile=`basename $file .dist`
mv $file /your/directory/$basefile
done
-
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...
-
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
-
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...
-
@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...
-
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...
-
I just came across this one a few hours ago:
http://www.sparknotes.com/cs/
-
Duh - That's right. 2 to the 20th power bytes. Long day :)
-
Shouldn't that be:
( heads * cyl * sect * 512) / 1024 = disk size in MB since 1mb is 1024 bytes?
-
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`
-
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...
-
First off - I didn't go to the link, so this may be there.
<command here>
SUCCESS=$?
if [ $SUCCESS -eq 0 ]
then
-
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...
-
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.
-
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...
-
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...
|
|