Search Results

Search: Posts Made By: chuckmg
6,005
Posted By chuckmg
Many thanks Agama! I assumed that if it worked...
Many thanks Agama! I assumed that if it worked for echo, as you suggested trying in your first message, it would work for cp. Live and learn!.

Chuck
6,005
Posted By chuckmg
This one worked
The suggestion above by Agama is the only one that I could get to give me 'almost there' results. There is still a question but I will start by showing the one that worked:

namefile
01.jpg...
2,977
Posted By chuckmg
spaces in array field
I have a file, names(i) where each entry is 'first last' name. 'cat names' is fine. But in a shell script

>for file in $(cat names)
> do
> echo $file
> done

the first and last name...
6,005
Posted By chuckmg
Agama, Not home now so can't complete the...
Agama,

Not home now so can't complete the task, but that is the solution. Also appreciate the wisdom of using echo. Many thanks!

Chuck
6,005
Posted By chuckmg
Many thanks for the quick response. I...
Many thanks for the quick response.

I misstated: the names are not in an array but in a file: names(i) 0<i<700

Chuck
6,005
Posted By chuckmg
renaming files from an array of names
I haven’t used Unix in over 25 years … and so I am at a loss for something that should be very simple. I have a lot of jpeg files (i.jpg) of students in a yearbook.. I also have an array name(i)...
Showing results 1 to 6 of 6

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