Search Results

Search: Posts Made By: port43
1,591
Posted By port43
awk '{print (substr($0,52,5) - substr($0,59,4)) /...
awk '{print (substr($0,52,5) - substr($0,59,4)) / 100}' <yourfile>
12,640
Posted By port43
Yes, that is how you reset: trap - <value>. ...
Yes, that is how you reset: trap - <value>.

I should point out that in my example I used integer values and yours used the signal name(s); either one is valid. Here are the values I used(kill -l...
Forum: Linux 03-06-2014
2,144
Posted By port43
I think the reason it is failing is because the...
I think the reason it is failing is because the directory string is enclosed in double quotes in the variable CMD_LINE and it has to do with the way the shell sees this when you try to execute it as...
734
Posted By port43
No, it should be if [ ! -f /path/to/file ]
No, it should be if [ ! -f /path/to/file ]
9,722
Posted By port43
I tend to stay away from functions unless they...
I tend to stay away from functions unless they will be called more than once. I have the misfortune of trying to clean up after people who were "function happy" to the point that there are more...
1,256
Posted By port43
Personal preference? When I use a list it is...
Personal preference? When I use a list it is parsed imediately but I'll use an array when I want to save the values for later use. I don't think there's an easy way to reference a specific value in...
3,317
Posted By port43
I added a function to my .profile and use it all...
I added a function to my .profile and use it all the time:

function lt {
perl -we "print scalar localtime $1"
echo
}
3,948
Posted By port43
Typical PuTTY install on the PC comes with the...
Typical PuTTY install on the PC comes with the executable psftp.exe and if you double click on that, then "open <hostname>" you can ftp to/from your PC from/to <hostname>.

Type "help" at the...
3,948
Posted By port43
I have changed the hostname this way more times...
I have changed the hostname this way more times than I care to admit. :o
7,332
Posted By port43
Thank you!
Thank you!
1,375
Posted By port43
cat <file> | uniq -c | sort -nr
cat <file> | uniq -c | sort -nr
22,015
Posted By port43
An if block will work just fine in a case...
An if block will work just fine in a case statement as long as you make sure you have it formatted correctly. I did a little revamping of your code
and it executes fine.


#!/bin/ksh
#set -x...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 09:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy