12-06-2012
Quote:
Originally Posted by
redhead
Give an example of what the filenames are, is there anything that will identify the filenames?
If you are just looking for files containing a dot, you might run into problems with false positive.
---------- Post updated at 03:25 PM ---------- Previous update was at 03:25 PM ----------
Give an example of what the filenames are, is there anything that will identify the filenames?
If you are just looking for files containing a dot, you might run into problems with false positive.
An example would be: A-12345.123.jpg
These need to be changed from A-12345.123.jpg to A-12345_123.jpg
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all
i am very new to shell scripting,hope u guys can help
i need to replace,sort and append character for the file that look like this:
1007032811010001000100000001X700026930409
1007032811010001000200000002X700026930409
1007032711020001000300000003X700026930409... (2 Replies)
Discussion started by: ashikin_8119
2 Replies
2. Shell Programming and Scripting
Hello
would appreciate if somebody can post a bash script that checks if the first character of the given string is equal to, say, "a"
thnx in advance (2 Replies)
Discussion started by: ole111
2 Replies
3. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
4. Shell Programming and Scripting
Hi,
i have log like this :
Actually i want to change the time stamp, and the rule is like this :
and My script is like this :
I know the script will loop and loop again after 07:00
like this:
Can somebody help me ??
Thanks in advance.. (5 Replies)
Discussion started by: justbow
5 Replies
5. Shell Programming and Scripting
Hi Friends,
I need a sed or awk based script to replace a character(alphabet) with ' (Apostrophe). I tried to use the following two commands
1) sed -e 's/a/'/' filename
2) awk '{sub("a","'",$1);print}' filename
but both got failed.
Any help on this.
Thanks in advance.. (3 Replies)
Discussion started by: ks_reddy
3 Replies
6. Shell Programming and Scripting
Hi All,
Was wondering how I can do the following....
I have a String as follows
"ACCTRL000005022RRWDKKEEDKDD...."
This string can be in a file called tail.out or in a Variable called $VAR2
Now I have another variable called $VAR1="000004785" (9 bytes long), I need the content of... (5 Replies)
Discussion started by: mohullah
5 Replies
7. Shell Programming and Scripting
Hi I need a bash script that can search through a text file and when it finds 'FSS1206' I need to put a Letter F 100 spaces after the second instance of FSS1206
The format is the same throughout the file I need to repeat this on every time it finds the second 'FSS1206' in the file
I have... (0 Replies)
Discussion started by: firefox2k2
0 Replies
8. Shell Programming and Scripting
hi,
bash is confusing me. it looks so nice when the script is completed, but the way is sometimes very hard...
i want to replace everything between 'P/' and the next '\' with a static string. my regex can occur multiple times in the text.
i think i'm close to it....
new='zzzzz'... (4 Replies)
Discussion started by: mohorn
4 Replies
9. Shell Programming and Scripting
hi,
i've bash script thats working...
but now i need to add a line....that prompts for user input....like yes and 1 as complete install....
so here's how it looks...
$ cd 9200 (cd into directory)
$./install (hv to type ./install to run install then ask for)
----do you want to... (4 Replies)
Discussion started by: kernel11
4 Replies
10. Shell Programming and Scripting
I have a requirement as below.
In one of my column, I have data which may or may not be separted with coma always. Now I need to validate the length of these text within the coma (if available) and if the length is more than 30 characters, I need to insert a coma either at 30 characters if its... (3 Replies)
Discussion started by: aramacha
3 Replies
LEARN ABOUT DEBIAN
epinfo
EPINFO(1) User Commands EPINFO(1)
NAME
epinfo - extract technical information from digital camera generated files
SYNOPSIS
epinfo [-h] [-V] [-z] [-r] [-t] [-f fmt] [-T <TagName>] <filename> ...
DESCRIPTION
This command extracts the contents of TIFF directory of Exif files or APP12 marker from JFIF files, parses it and optionaly finds specific
data inside it. If used without -T, -r and -t options, dumps the complete block data in human readable format. With -r and -t options,
renames and changes timestamp of the files.
OPTIONS
-h This option produces a help screen of all options and commands.
-V This option prints software revision information.
-z This option sets no time-zone processing mode. Use this option if the camera's clock is set up shifted by the local timezone offset
(as it is when you set it manually to the local time).
-r Rename files, generating new name based on the time of snapshot and -f option value.
-t Set timestamp of the files to the time of snapshots.
-f timeformat
This option allows to specify the format for automatically generated image file names; the value is used as the format string for
strftime(3) function. By default, names of the format "MMDD_NNN.jpg" are generated, where MM is a month, DD is a day, and NNN is a
count starting from 001. A good starting point for the timeformat value could be "%Y_%m_%d-%H_%M_%S.jpg". If the format string con-
tains context "%%XXXd" where XXX are digits, it is taken for the count, i.e. if the file with such name is present, next count is
tried. If the format string does not contain "%%XXXd" part, the count field, if necessary, is appended at the end of the name.
A few single-character formats are used as shortcuts. "x" makes the name of seconds since the epoch in hexadecimal format (8 charac-
ters + ".jpg"), "d" - the same in decimal format (10 characters), "1" stands for default format "%m%d_%%03d.jpg", "2" stands for
"%y%m%d%%02d.jpg", "3" stands for "%Y_%m_%d-%H_%M_%S.jpg" and 4 stands for "%Y/%m/%d/%H_%M_%S.jpg". The program attempts to create
intermediate directories is necessary (and possible).
-T <TagName>
Output the value of this keyword in the information block. Note that keywords are case sensitive. TagName DateTime has special mean-
ing: if the file is Exif, it just prints the value of DateTime tag, and if the format is old APP12, it outputs the value of TimeDate
tag in the same format as Exif DateTime.
ARGUMENTS
<filename> ...
List of filenames to process.
EXAMPLES
% epinfo -f3 -rt pic00001.jpg
% epinfo -T FNumber 0512_003.jpg
OTHER NOTES
The latest version of this tool can be found at ftp://ftp.average.org/pub/photopc/; see also WWW page at http://www.average.org/digicam/.
Trademarks are properties of their respective owners.
COPYRIGHT
The program is copyrighted by Eugene G. Crosser <crosser@average.org> and freely distributable. See README file for details.
SEE ALSO
photopc(1)
PhotoPC manipulation tool 24 May 1997 EPINFO(1)