Search Results

Search: Posts Made By: stepnkev
2,635
Posted By stepnkev
while loop question
while [ $dev_num ]
do
print What is the next device number to be added to $dgroup?
print Press \<Enter\> if there are no more devices to be added.
read dev_num
...
8,461
Posted By stepnkev
Help with if statement in ksh script
I need a way to grep for a string in a file and if it finds it, to print set a variable to "Yes", if it doesn't find the string in a file to set the variable to "No". I plan on using these variables...
6,343
Posted By stepnkev
Well, the script is coming along, but I'm stuck...
Well, the script is coming along, but I'm stuck here and sure there is a simple answer. The entire updated script is pasted just below followed by the output it currently gives with my notes what I...
6,343
Posted By stepnkev
Thanks. That worked! Now there is something I...
Thanks. That worked! Now there is something I want to add to the program. Anytime inside the for loop if CTRL-C is pressed, I want the program to run a function prompting the user to either continue...
6,343
Posted By stepnkev
ksh Script help
I'm new to programming and need some help with the syntax. I am receiving a syntax error when running this script.

syntax error at line 25 : `}' unexpected

Thanks.


#!/bin/ksh

umask 002...
1,901
Posted By stepnkev
I remembered the command I was looking for. cut...
I remembered the command I was looking for. cut -c :)
1,901
Posted By stepnkev
Simple Question
If given some output such as:

"I'm having a senior moment"

How do you print the last six characters to the screen?

I'm thinking with awk or sed but can't remember how.
Showing results 1 to 7 of 7

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