Sponsored Content
Full Discussion: Iptc utility syntax question
Special Forums UNIX Desktop Questions & Answers Iptc utility syntax question Post 302313105 by SilversleevesX on Monday 4th of May 2009 07:17:05 PM
Old 05-04-2009
Iptc utility syntax question

I just found and installed David Moore's libiptcdata with its iptc command-line utility. It's about the latter that my question is based.

The usage syntax is : iptc [OPTIONS] [FILE]...
where -m requires an IPTC field name, and -v is the value to assign or modify in that field. This value is a string bounded in double quotes. The thing I'm curious about (and as this little toy was written in 2005 I doubt Mr Moore is at his same email address as the one posted on his SourceForge manual page shows) is as follows:

How would one safely punctuate the value string, say, for a Caption or Special Instructions?

I've already tried an exclamation point, whereupon my bash shell reminded me that's a command in that shell (it noticed it even as it was in dbl-quotes). I suspect, then, that an alternate means of punctuation would have to be used. Having never installed or made any use of anything like this, I'm guessing it would either be the hex corresponding to the punctuation mark one wanted to represent, joined to the rest of the string by ampersand/s, or else an ampersand and another string containing the PM.
I suppose, also, that a hint or clue as to why would be in the C++ code in which this was written. Problem is, I don't know C++ well enough to know what to look for.

Could someone familiar with C++ coding download the libfiles (etc) and try to glean what the safer syntax would be to punctuate these strings [hex or &-signs between strings]?

Thanks for giving this a read.

BZT
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk syntax question

Hi there could someone explain what is happening in the following function/statement for me, im just a little confused code = 'BEGIN{FS=","} { printf ("%-11s,%s%s%s,%07.2f,%14s,%-3s\n",$1,substr($2,9,2),substr($2,6,2),substr($ 2,3,2),$9,$10,$12) } this function is called later in the... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

2. Shell Programming and Scripting

Question on Find Utility

Hi Guys, Do you know how can I find files with modificatioin time less than 30 MINUTES using the find utility? Or if u have any other mechanism to find it using script, I'll appreciate it. Thanks! (5 Replies)
Discussion started by: marlonus999
5 Replies

3. UNIX for Dummies Questions & Answers

Piping syntax question

There are are lots of examples of piping output FROM the 'ls' command TO another command, but how does one pipe output TO the 'ls -l' command? For example, use 'which' to find a file, then use 'ls -l' to view the permissions, groups, etc. in a single step: which <filename> | ls -l returns... (4 Replies)
Discussion started by: johne1
4 Replies

4. UNIX for Advanced & Expert Users

SNMP syntax question

Hello, I need to create an snmp.comf file that defines 2 IPs to the same community string. Do I need to have 2 community strings with the same name and diff't IPs? Or should I have 1 string and list the IPs? (comma seperated?) Example: rocommunity EC_8000_RO arguments EC_8000_RO... (2 Replies)
Discussion started by: felbvts
2 Replies

5. Shell Programming and Scripting

Question about syntax error

first of all.. sorry about all the question bombing.. im bored atm so im currently playing around with sh scripting hehe s = `expr ls -s Documents | grep Music | awk '{ print $1 }' ` t = `expr $t + $s` it give syntax error s not found t not found lol... any idea why? (7 Replies)
Discussion started by: Nick1097
7 Replies

6. Programming

Perl syntax question

Hallo everybody, I have a following problem - I'm doing a map funciont to fill in a HTML table and I want to use some radiobutton groups. Unfortunatelly, they are grouped by names, so I have to add some "counter" that will divide one row from another, and I'm using CGI.pm for generating the... (3 Replies)
Discussion started by: duskos
3 Replies

7. UNIX for Dummies Questions & Answers

Make Utility Question

Hello, I'm a recent convert to UNIX and I'm attempting to understand exactly how the make utility is working under the hood. Now, I understand that each rule has a target, dependencies, and update command, but the thing I'm confused about is exactly how the utility is determining when to... (1 Reply)
Discussion started by: kramer_102
1 Replies

8. Shell Programming and Scripting

Question regarding quotation syntax

Hey guys, my first post on UNIX Forums(much overdue IMO)! I've got this bit of code that doesn't seem to be working correctly for an Android app I'm working on: "screen -S gmod1 -p 0 -X stuff " & "" & command.text & "`echo -ne '\015'`""" Basically it types command.text(variable determined... (4 Replies)
Discussion started by: stingwraith
4 Replies
ACPIHELP(1)						      General Commands Manual						       ACPIHELP(1)

NAME
acpihelp - ACPI help utility SYNOPSIS
acpihelp <option>... [<name-prefix>|<hex-value>] DESCRIPTION
This manual page briefly documents the acpihelp command. The option list is taken from the acpihelp interactive help. acpihelp provides descriptive text for AML and ASL keywords, methods, and opcodes. Much more detailed documentation may be found at http://www.acpica.org/documentation/. If neither a <name-prefix> or a <hex-value> is provided, acpihelp will do the logical equivalent of a "display all." A default search (that is, a search with no options) and a <name-prefix> can mean two different things: (1) if <name-prefix> does not start with an underscore, find ASL operator names, or (2) if <name-prefix> does start with an underscore, find ASL predefined method names. OPTIONS
ACPI Names and Symbols -k [<name-prefix>] Find/Display ASL non-operator keyword(s) -m [<name-prefix>] Find/Display AML opcode name(s) -p [<name-prefix>] Find/Display ASL predefined method name(s) -s [<name-prefix>] Find/Display ASL operator name(s) ACPI Values -e [<hex-value>] Decode ACPICA exception code -i Display known ACPI Device IDs (_HID) -i [<hex-value>] Decode hex AML opcode AUTHOR
acpihelp was written by Robert Moore <robert.moore@intel.com>. This manual page was written by Al Stone <ahs3@redhat.com> for the Fedora project (but may be used by others). January 23, 2013 ACPIHELP(1)
All times are GMT -4. The time now is 05:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy