Search Results

Search: Posts Made By: port43
1,576
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,569
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,134
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...
731
Posted By port43
No, it should be if [ ! -f /path/to/file ]
No, it should be if [ ! -f /path/to/file ]
9,691
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,253
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,296
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,848
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,848
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,315
Posted By port43
Thank you!
Thank you!
1,369
Posted By port43
cat <file> | uniq -c | sort -nr
cat <file> | uniq -c | sort -nr
21,965
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 05:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy