Re: adding text to JPEGs, in bulk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17Sep2006 18:48, Tim <ignored_mailbox@xxxxxxxxxxxx> wrote:
| On Fri, 2006-09-15 at 14:28 -0400, Amadeus W. M. wrote:
| > for file in *.jpg
| > do
| >         outputname=`basename $file .jpg`_out.jpg
| >         convert [drawing command] $file $outputname
| > done
| 
| Does adding files to the same directory it's reading from change how the
| "for files in" function works?

Not on the first loop - the *.jpg is evaluated before the loop runs.
Next time of course there are more files.

| > You can do this directly at the prompt, or you can save it in
| > a bash script.
| 
| I've not figured out how to do multi-line commands at the command line.

Just type them. You will find an incomplete command (eg just the first
line from the "for" loop above) will get you the shell's "secondary
prompt", indicating more is needed. When you've entered the "done"
it will run.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Success in software development depends on making a carefully planned
series of small mistakes in order to avoid making unplanned large
mistakes.       - Steve McConnell, _Software Project Survival Guide_

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux