Search Results

Search: Posts Made By: mglenney
3,756
Posted By mglenney
Ok. I was looking at the "Useless use of cat"...
Ok. I was looking at the "Useless use of cat" section at the top but I think you're referring to the section about using backticks. According to that my second example above would be the best...
3,756
Posted By mglenney
Because most of the time I can figure out how to...
Because most of the time I can figure out how to do something I just don't necessarily know the best way to do it. I know it could also be done like this:

while read i; do cp 1.jpg $i; done <...
3,756
Posted By mglenney
if names are in file called "filenames": for...
if names are in file called "filenames":

for i in `cat filenames`; do cp 1.jpg $i; done

MG
Showing results 1 to 3 of 3

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