The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 10-13-2008
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361
Quote:
Originally Posted by llsmr777 View Post
Ok so I changed it but after it asks me it only moved one file?

What did you change it to?
Quote:
Should I not be using a case statement to perform the move?

A case statement cannot move anything. You use mv to do the move.
Quote:
I am using it to ask the user if the list is correct.

How are you using it? We're not mind readers.
Quote:
I thought that inside the case statement I should put what shoudl be carried out if the user says no.

...and what should be carried out when the use says yes.
Quote:
Sounds like maybe I shouldn't be using case

Yes, you should use case.
Quote:
or put that somewhere else in the script?

Isn't that what I suggested?