Hi unix people, i'm really a newbie and i've created a small bash to process some picture with ImageMagick.
I have just some issue and i think this script, if we can help me to correct in right way, could be useful!
Basically i have a Eyefi Card who puts files into a folder called "picture"
(sorry i must use cygwin cause last version EyeFi does'nt work under linux environemet)
i need take only the last 25 pictures from that,rename and put in a separate folder (i don't know how to do it so i put on same )
after i process the dimension, add the watermark and copy on different folder.
here the code:
my biggest problem is: how i can exctract only the pictures and not the other files inside the folder? (often my watermark is taked as picture...and processed also if it's in a separate folder)
and how can i put only the last 25 files on a separate folder?
Thank you very much, really apreciate any help.... and hope my script could be interesting to someone else who use EyeFi card
If you expect different image file types within the Pictures folder, and the watermark - i assume it is 'back.png') - in the same location, you will run into issues.
I'd rather suggest to put the watermark file outside the working path, and refer to it via a variable.
Another issue is, at one time your refer to *.jpg another time to *.JPG
To limit the find output, you must define a filter like -name *.jpg
Dear Team,
i have one question related to automation of adding new users based on txt file.
Here we go:
I have data.txt file which shows:
bang
dang
benc
One by one, after pressing enter. And now, I need scirpt which will add those users with home directory hidden within the file... (7 Replies)
I am trying to run this small script but I got some errors
#!/bin/sh
set event_list = "17 20 21"
for event in `($event_list)`
echo Evento $event - Tarro
end
Thank you so much!!! (2 Replies)
Hi All,
I am new to Unix scripting, I have requirement where I need to read the key value pair from config file.
Sample Config file:
Key(File Pattern) Value(File Directory location)
test /Users/Bkumar/Downloads/testdir
prod ... (1 Reply)
Hi,
I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
# ls -l
total 10
-rw-r--r-- 1 dummy2 other 140 Jun 19 21:37 local.cshrc
-rw-r--r-- 1 dummy2 other 136 Jun 19 21:37 local.cshrc~
-rw-r--r-- 1 dummy2 other 157 Jun 19 21:37 local.login
-rw-r--r-- 1 dummy2 other 178 Jun 19 21:37 local.profile... (6 Replies)
Hi all,
Have to generate an xml having information related to files in the directory
Suppose i have file
file1.xml (datafile)
file2.xml (datafile)
file3.xml (metafile)
Now i need to generate an xml in the format >>
<?xml version="1.0" encoding="UTF-8"?>
<AuditFile Version="2.0">... (8 Replies)
Hi,
I'm having problems with the "cd" command in bash not changing directories. From what I've read, I've gathered that scripts are child processes and can't change the directory of their parent process. How do I get around this problem?
Thanks,
Eric (2 Replies)
I'm getting the following errors when I try to write a script to unzip some zip files. When I use the free trial copy of the commerical winzip program, however, they work fine. When I use -l or -t on unzip it indicates no errors. When I use the -o switch interactively from the bash command line it... (1 Reply)
Hi. I'm really a newbie trying to make my new Mac (OS 10.3) run some science programs under the X11 environment.
I have been trying to install GDE2.2. In short, after several attempts I came to the URL http://www.mutatedmonkeys.com/factslog/archives/000830.html. And I thought that was my lucky... (0 Replies)