Search Results

Search: Posts Made By: jrdnoland1
4,034
Posted By jrdnoland1
Thanks, I'm using sco unix; I did try grep -c "$a...
Thanks, I'm using sco unix; I did try grep -c "$a $b$" filename. That seemed to work.
4,034
Posted By jrdnoland1
finding exact characters
I want to grep from a file an exact character match.
I tried grep -c "$a $b" $file
where a=6 and b=2
the problem is that I get: 6 2 and 6 20
I just need a count of the occurrence.
I'm using...
5,545
Posted By jrdnoland1
Adding Elapsed time
I'm using the Bourne shell and trying to write a script that will add all the time that any particular user has been on the network for.

I've used last-h | grep "username" | cut -c 58-62 to get...
3,580
Posted By jrdnoland1
Thanks...Perderabo You're an amazing resource!!!
Thanks...Perderabo
You're an amazing resource!!!
3,580
Posted By jrdnoland1
while [[ $response = [Yy]* ]] doesn't work...
while [[ $response = [Yy]* ]]

doesn't work for me--but I'm using the Bourne shell.
3,580
Posted By jrdnoland1
Using metacharacters in loops
Is there a way to use metacharacters in a loop or in an if[ ].
I want to allow a user to enter Y, y, Yes, yes, Yah, etc...
in a loop I tried:

read response
while [ "$response" = "[Yy]*" ]...
15,816
Posted By jrdnoland1
finding valid users
Thanks for the replies:
/etc/passwd does contain all the registered users but it is very difficult to pull out their names. Any thoughts???

I also tried logins ---- this doesn't work on my system
15,816
Posted By jrdnoland1
Finding valid users
Is there a way to determine the names of valid system users? I know that last, finger, and who will give you the names of users who have accessed the system and / or those who are currently logged...
11,326
Posted By jrdnoland1
screen display
Thanks for the input guys! This is what I ended up doing at it seems to work, still need to test it a little more.

scr_fill=`cat filename | wc -l`
LC=10
LnCnt=$LC

while [ $scr_fill -gt $LC ]...
11,326
Posted By jrdnoland1
controlling screen display
That's not quite what I had in mind. I need to show only 10 lines at a time. more and / or less seem to write to the whole screen and then scroll by the specified number of lines. I can't even erase...
11,326
Posted By jrdnoland1
controlling screen display
How can I control the screen output when trying to read a large file onto the screen x number of lines at a time. I'm trying to use this is a bourne shell script. I want to display 10 lines of a...
Showing results 1 to 11 of 11

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