The example you posted which I bolded is the way I would do it.ausvirgo wrote:for i in `ls *.deb`; do undeb $i; shift; done
doesn't work on my puppy (Yes, I know I'm not in 4.21).
for i in *.deb; do undeb $i; done
works (quotes around "*.deb" seem to be optional).
1) *.deb does the job and is a conventional way of specifying your
filespecs.
2) "*.deb" is as you noted optional. Except if your .deb packages
have spaces in them and perhaps weird characters. A .deb package
shouldn't have spaces or weird characters. My way is - not to quote.
The reason is I want the script to bomb out to alert me there is a
filename I want to change.
3) About the shift in the first example. The "for loop" does its own
shifting.
It may be.ausvirgo wrote: for i in `ls *.deb`; do echo $i; shift; done
returns "ls zynaddsubfx_2.2.1-2.1_i386.deb" instead of
"zynaddsubfx_2.2.1-2.1_i386.deb"
presumably the "ls" is the problem.
It is not my post to edit. And it isn't my topic. I simply make a lot ofausvirgo wrote:You might want to edit the original post, as this is
a stumbling block in following your tutorial.
I'll try to provide more feedback as I go through the tutorial.
posts. Personally, I appreciate the feedback, regardless of who's post
it is.
~