In directory /mnt/upload I have about 100 000 files (*.png) that have been created during the last six months. Now I need to move them to right folders. eg:
So the script first creates a directory with the correct name ( format +%Y%m%d) move all files in a day (but only files not directory) in to right directory.
any ideas ?
Last edited by jim mcnamara; 11-14-2014 at 04:52 PM..
Good afternoon!
I need to move a bunch of files from an FTP site to my server.
However mget *, dele * will not suffice as I cannot guarantee that new files are not uploaded between commands.
Roughly, this is what I would like to do:
(using a .netrc)
ftp somehost
bin
prompt
cd... (1 Reply)
Hello all.
I am new to this forum (and somewhat new to UNIX / LINUX - I started using ubuntu 1 year ago).:b:
I have the following problem that I have not been able to figure out how to take care of and I was wondering if anyone could help me out.:confused:
I have all of my music stored in... (7 Replies)
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
hi all,
here is the description to my problem.
input parameter: $date1
based on the date i need to select three files starting with audit.log* based on its modified date, a date before, a date after(if its exists). We need to compare the input date to modified date of the file. And then... (3 Replies)
Hi Team,
I have thousands of TIF files which are converted from PDF. Below is a sample of it.
LH9406_BLANCARAMOS_2012041812103210320001.tif
LH9406_BLANCARAMOS_2012041812103210320002.tif
LH9406_BLANCARAMOS_2012041812103210320003.tif
LH9411_ANGENIAHUTCHINSON_2012041812102510250001.tif... (9 Replies)
Hi folks,
In my application there is a job running which create a .dat file along with it zip file also at unix box location /opt/app/cvf/temp1
so in temp1 directory I have one .dat file and its zip file also.
Now since this job runs every day so if a job runs today there will be two files... (5 Replies)
I written unix script where a pdf file generates. But if the script is used by multiple people at a time it generates same pdf with two different owner names and creating a problem with permission while moving the file. is there a way where i can move the file filtering with the user? (4 Replies)
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT SUSE
ifp
IFP(1) General Commands Manual IFP(1)NAME
ifp - access iRiver iFP audio devices
SYNOPSIS
ifp command [arguments ...]
DESCRIPTION
ifp lets you manage your music on an iRiver iFP music player acting in "Manager Mode". If your player is using "UMS Mode", then you don't
need this program; it will appear as new drive when you plug it in.
This manual page documents the version of ifp included as an example application for the libifp library. The interface is intended to mimic
the ifp binary found in the ifp-line binary package.
ifp can upload or download files or directories, delete or make directories on the device, format the device, or upgrade your firmware.
COMMANDS
ls [directory]
List the files and directories on the device. The root directory is /. Directories are preceded with 'd' and other files with 'f'.
df Display total and free space on the device.
upload localfile remotefile
Copy the file named localfile to the iFP device, and name it remotefile. (This is like cp.)
upload localfile remotedir
Copy the file named localfile to the iFP device, into remotedir. (This is like cp.)
upload localdir remotedir
Copy the entire directory localdir to the device, into remotedir. This copies into a subdirectory, so upload foo / puts files from
the directory foo info /foo on the device. (This is like cp -R.) This uploads the entire directory, not just audio files.
put localfile | localdir
Upload the file or directory to the device, with the same name it has locally. If a directory is given, it is put in /.
download remotefile localfile
download remotefile localdir
download remotedir localdir
Like upload, but copies from the iFP device to your system. Some proprietary file types may not be downloaded.
get remotefile | remotedir
Like put, but copies files or directories from the device to your current working directory.
rm [-r] file
Delete (recursively) a file (or directory) on the device.
rmdir dir
Delete an empty directory on the device.
mkdir dir
Create a directory on the device.
battery
Display battery status of the device.
typestring
Display the model number of the device.
firmversion
Display the firmware revision currently on the device.
format Reformat the device's memory. This will delete all your music.
firmupdate FIRMWARE.HEX
Upload the file FIRMWARE.HEX as new firmware for the device. This will not delete your music, but may have many other detrimental
effects. Don't turn the device off or unplug it while the firmware is updating, and don't attempt to upload new firmware with a low
battery.
AUTHORS
libifp was written by Geoff Oakham, based on ifp by Yamashiro Jun. This manual page was written for Debian by Joe Wreschnig
<piman@debian.org>, but may be used by others.
May 30th, 2004 IFP(1)