Search Results

Search: Posts Made By: apzombie
3,839
Posted By apzombie
Thank you so much for your help, that ended up...
Thank you so much for your help, that ended up being exactly what I needed. Also, I was being pretty stupid and only editing the second grep line, so that could definitely have had something to do...
3,839
Posted By apzombie
How would I go about doing that.. wouldn't that...
How would I go about doing that.. wouldn't that mess up my whole loop?
Because if I drop the cut and the grep and just have ^$userName:, ill have no output for my loop to go off of?
Here's...
3,839
Posted By apzombie
right now I'm just stuck on the grep issue.. I've...
right now I'm just stuck on the grep issue.. I've tried everything -w, -x, -x ^'$userName\$', -w ^$userName\$, ^$userName$@, ^$userName\$@, ^$userName$*

Any clues as to what I could use? If user...
3,839
Posted By apzombie
Alright so I pretty much have the script working,...
Alright so I pretty much have the script working, it's not exactly how the teacher wants. It doesn't loop the whole bash shell list and the Enter username parts. But like you said, I am running...
3,839
Posted By apzombie
could I just put something like echo "Enter your...
could I just put something like echo "Enter your username: "
read userName
cut -d: -f1 /etc/passwd | grep $userName > /dev/null
OUT=$?
while [ $OUT -eq 0 ]
do
echo "The user $userName already...
3,839
Posted By apzombie
Scripting Help.
Sorry about the first post, here's one using the template, the code has changed a little bit. I got the Shell error loop working, but not the way it's supposed to be. It's supposed to repost the list...
1,544
Posted By apzombie
Scripting Help
Hey I'm new here, and I really need some help asap! This assignment is due at midnight tonight, and I'm really having a hard time with it. Basically here's the assignment:
Task
Write a shell script...
Showing results 1 to 7 of 7

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