assuming "cat" is the pattern, string (regardless length)
asdadfcat4
I need to get 4
for eirtrjkkkcat678- I'd get 678
(in b-shell)
Thanks in advance!!! (4 Replies)
Hi all
suppose i have a string "abacus sabre", i need to replace occurences 'ab' with 'cd' and i need to store this result into same string and i need to return this result from script to the calling function, where as the string is passed from calling function.
i tried like this
... (1 Reply)
hi
I have the input as follows
ABC =893
JKL = "jee"
alias PQR = 9833
alias STUVE = "kuiue"
I should be able to print as follows
ABC
JKL
alias PQR
alias STUVE
Thanks
Suresh (7 Replies)
Hi,
I have a string assinged to a varaible as below.
FILE=/var/adm/message
If $FILE is the value where it stores the path of message file.
I would like to extract the location of the file message as below
LOCATION=/var/adm
FILE may have value like /var/adm/xxxx/message
... (2 Replies)
This command:
du -s /Applications/TextMate.app
Returns an output like this:
65792 /Applications/TextMate.app
I need to delete the space and the file path in the output leaving just the number.
Thanks (2 Replies)
Hi mates,
I am doing a script in ksh. I have the following string:
/opt/one/two/four/five/myFile.txt
And I have a variable:
echo "${variable}" -> /opt/one/two/
I would like to have just the string: four/five/myFile.txt
What is the better way to do that?
Thanks in... (3 Replies)
I have a string something like "/opt/src/default.cfg" OR /opt/src/common/one
This whole string stored in an array. The problem is this string is not constant and it will keep on changing as lot of strings are stored in the array and it will be look like :-
case 1
/opt/src/default.cfg ... (8 Replies)
I have a file called file.txt
It contains strings:
ALT=someone@acme.com
TO=whoever@lalalulu.com
How could find and print the actual address after the = sign for any given instance? I need the command to print one of them - for example
someone@acme.com
But have in mind that this... (3 Replies)
i have something like this...
echo "teCertificateId" | awk -F'Id' '{ print $1 }' | awk -F'te' '{ print $2 }'
Certifica
the awk should remove 'te' only if it is present at the start of the string.. anywhere else it should ignore it.
expected output is
Certificate (7 Replies)
Hi,
I needed to extract some specific characters from a string based on user input. For example: After the script executes the user enters the following details:
Please enter the string: This is a shell script
Please enter the starting position: 11
Please enter the number of characters to be... (4 Replies)
Discussion started by: ChandanN
4 Replies
LEARN ABOUT DEBIAN
iptc
IPTC(1) [FIXME: manual] IPTC(1)NAME
iptc - Utility for viewing and modifying the contents of IPTC metadata in images.
SYNOPSIS
iptc [[-q] | [--quiet]] [[-b] | [--backup]] [[-s] | [--sort]] [[-v VALUE] | [--value=VALUE]] [[[-l] | [--list]] [[-L TAGS] |
[--list-desc=TAGS]] [[-a TAGS] | [--add=TAGS]] [[-m TAGS] | [--modify=TAGS]] [[-d TAGS] | [--delete=TAGS]] [[-p TAGS] |
[--print=TAGS]]] [--help] [--version] [file...]
DESCRIPTION
This manual page documents briefly the iptc command.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
iptc is a IPTC data editor. You can add, modify and delete ITPC metadata in images. You can also get the value of a particular tag.
-q, --quiet
Produce less verbose output.
-b, --backup
Backup any modified files.
-s, --sort
Sort tags before displaying or saving.
--help
Display an help message and exit.
--version
Display an iptc version number and exit.
-l, --list
List the name of all known tags (i.e. Caption, etc).
-L TAG, --list-desc=TAG
Print the name and description of TAG.
-a TAG, --add=TAG
Add new tag with identifier TAG.
-m TAG, --modify=TAG
Modify tag with identifier TAG (add if not present).
-v VALUE, --value=VALUE
Value for added/modified tag.
-d TAG, --delete=TAG
Delete tag with identifier TAG.
-p TAG, --print=TAG
Print value of tag with identifier TAG.
file
Files to edit.
EXAMPLES
Display the IPTC metadata contained in image.jpg: iptc image.jpg
Set caption "Foo" in all jpegs of the current dir: iptc -m Caption -v "Foo" *.jpg
Add keyword "vacation" to all jpegs: iptc -a Keywords -v "vacation" *.jpg
LICENSE
This manual page was written by Sylvain Le Gall gildor@debian.org for the Debian GNU/Linux system (but may be used by others). Permission
is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2.1 or any
later version published by the Free Software Foundation; considering as source code all the file that enable the production of this
manpage.
AUTHOR
Sylvain Le Gall <gildor at-smtp-server debian.org>
Author.
COPYRIGHT
Copyright (C) 2007 Sylvain Le Gall
[FIXME: source] Jan 17, 2007 IPTC(1)