Search Results

Search: Posts Made By: hxman
15,678
Posted By hxman
Thanks for the snippet....... No, I am not using...
Thanks for the snippet....... No, I am not using Korn Shell 93, but ksh........
It works great for bash can it be modified for ksh? I will try....
15,678
Posted By hxman
Not too much luck with that code, I have never...
Not too much luck with that code, I have never used xdigit before.....
15,678
Posted By hxman
`(' unexpected.......... What is the purpose...
`(' unexpected..........

What is the purpose of the : after while?

Thanks
15,678
Posted By hxman
Checking for a valid MAC Address
I have a ksh script and would like to validate a MAC address that is input by the user:
00:14:4F:FC:00:49
example:

MAC=`/usr/bin/ckint -p "Enter MAC address"`
echo $MAC
echo " "
...
2,039
Posted By hxman
I have the following, the onlu thing I need is a...
I have the following, the onlu thing I need is a linefeed and \\\n or similar is not working.

Thanks


#!/bin/ksh
#
for LDOM in `ldm ls |grep -v ^NAME| awk '{print $1}'`
do
a=`ldm...
2,039
Posted By hxman
For Loop And Print 2 Variables
I have the following loop:

for I in `ldm ls |grep -v ^NAME| awk '{print $1}'`

do ldm ls -o network $I | echo $I | tr -s ' ' | cut -f6 -d " " | more +9

I would like the following displayed...
15,177
Posted By hxman
MAC Address Generator - Sequential
I have the following range of MAC addresses:

00:14:4F:FC:00:00 - 00:14:4F:FF:FF:FF

IS it possible to generate a fromatted list of sequential numbers (hex)?

What would be the best...
24,681
Posted By hxman
Correct, the create function is declared after...
Correct, the create function is declared after the show_menu.

---------- Post updated at 02:34 PM ---------- Previous update was at 02:05 PM ----------

I think you have to delcare the function...
24,681
Posted By hxman
Calling Function in KSH
I have a script with 2 functions
1) show_menu
2) create

Ths show_menu function works fine....... Sort of....

When I select option 2 of the menu the code does a few commands and then calls...
1,924
Posted By hxman
Replace 2 Occurances of Space (sed)
I have a large file that looks like the below output:

system SUNWxwmod X Window System kernel modules
system SUNWxwoft X Window System...
Showing results 1 to 10 of 10

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