The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-28-2008
kim187 kim187 is offline
Registered User
 

Join Date: Apr 2008
Posts: 8
shell script ` ` need help if in the right place

> #!/bin/bash
>
>
> echo "please enter your login ID"
>
> read login_id
>
>
> while[ $login_id -ne `grep $login_id /etc/passwd | cut -f1 -d:`

prompts for any users login_id and returns the value of
that users HOME directory and full name

my question is are the backticks in the right place?

thanks

for any help

airmax_sk@yahoo.com

Last edited by kim187; 04-28-2008 at 08:15 PM. Reason: changee
Reply With Quote
Forum Sponsor