06-26-2013
Move file using a file list
Hello, I have a text file name "filelist" which stores the file names of the files I want to move (the file names does not include the directory).
Each of the name is in 1 line, and all the file are in directory: /cluster/home/input (along with other unrelated files). I want to move all the files that are listed in the "filelist" to another direcoty: /cluster/home/bad.
I am a newbie so practically I dont know much about this, please help me out
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need some help with a unix script to mv image files to subdirectories based on the 1st character of the filename. See example below...
/images/main
1191.jpg
9999.jpg
A101.jpg
A102.jpg
B201.jpg
c333.jpg
...
Z999.jpg
I would like to move to the following:
... (11 Replies)
Discussion started by: srdconsulting
11 Replies
2. Shell Programming and Scripting
Hi,
I need to get multiple files from an ftp server. Once the files have been downloaded, I need to move them to a different directory on the ftp server. I don't know of a command that would enable me to get a file and then move it (assuming I don't know the exact file name) within ftp. I think... (10 Replies)
Discussion started by: bbabr
10 Replies
3. Shell Programming and Scripting
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)
Discussion started by: marcozd
7 Replies
4. Shell Programming and Scripting
Ok in my bash script i have 5 options to create a simple html script. I need to create a temporary file and whatever the user types will be stored in that file using html codes. And then I have another option in which that temporary file will be moved to the public_html directory in which the user... (19 Replies)
Discussion started by: gangsta
19 Replies
5. Shell Programming and Scripting
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
6. Shell Programming and Scripting
Hi
my requirement is that i want pull the bad records from input file and move those records in to a seperate file.
that file has to be sent via email..
any suggentions please (1 Reply)
Discussion started by: sxk4999
1 Replies
7. Shell Programming and Scripting
Hi,
Anybody help me to write a Shell Script
Get the latest file from the file list based on created and then move to the target directory.
Tried with the following script: got error.
A=$(ls -1dt $(find "cveit/local_ftp/reflash-parts" -type f -daystart -mtime -$dateoffset) | head... (2 Replies)
Discussion started by: saravan_an
2 Replies
8. Shell Programming and Scripting
Dears,
I have a listfile contains list of files path.
i need to read the line of the listfile
mv the file to other directory
and update the listfile by deleting the lines of the listfile.
#!/bin/bash
target=/fstest/INVESTIG/Sadiq/TEST_ARCH
while read -r line || ];
do
mv $line... (19 Replies)
Discussion started by: sadique.manzar
19 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I just want to move the file from one path to another using .sh file in EBS oracle apps.
I have written in .prog but i need in .sh (file.sh)
XXC_SAMPLE_FILE.prog
#!/bin/bash
# XXC_SAMPLE_FILE.prog
DATE_TIME=`date | awk {' print $1"_"$2"_"$3"_"$4 '}`
echo "parse_parms"
... (4 Replies)
Discussion started by: Mist123
4 Replies
10. UNIX for Beginners Questions & Answers
Good morning, i need your help please
I need to move a .TXT file greater or igual 355 MB and its correspondent .LST file in a non recursive way
The operating system is:
uname -a
SunOS server01c 5.10 Generic_144488-01 sun4u sparc SUNW,SPARC-Enterprise
For example:
rw-r--r-- 1 xptol ... (8 Replies)
Discussion started by: alexcol
8 Replies
LEARN ABOUT DEBIAN
buildtorrent
BUILDTORRENT(1) User Commands BUILDTORRENT(1)
NAME
buildtorrent - a torrent file creation program.
SYNOPSIS
buildtorrent [OPTIONS] -a announceurl input output
buildtorrent [OPTIONS] -a announceurl -f filelist -n name output
DESCRIPTION
buildtorrent is a torrent file creation program. Given an announce url and an input file or directory, buildtorrent generates an output
.torrent file that can be used by torrent clients.
OPTIONS
-a announce, --announce=url
Announce URL (required).
-f filelist, --filelist=filelist
A text file (or - for standard input) containing a list of files to add to the output torrent file, together with the path to use
inside the torrent. One file is given per line, use / as path separator for the torrent path, use | to separate the filesystem path
from the torrent path. Backslash can be used to escape newlines and | characters inside names. For example:
/data/files/linux.iso|bin/linux.iso
/data/files/linux.txt|doc/linux.txt
Using this option requires that the --name option be used.
-n name, --name=name
Specify the name for the torrent. Usage of this option is required when the --filelist option is used, in which case it specifies
the name of the torrent directory. Usage without a file list overrides the name of the directory or file given on the command line.
-A announces, --announcelist=announces
Additional announce URL list. Use , to separate outer level lists, and | to separate inner level items; for example:
a,b1|b2,c
-w webseeds, --webseeds=webseeds
Additional WebSeed URL list. Use , to separate items; for example:
a,b,c
-l length, --piecelength=length
Piece length in bytes (default 262144).
-L length, --piecesize=size
Use 2^size as piece length (default 18) (overrides -l ).
-c comment, --comment=comment
User comment (omitted by default).
-p private, --private=private
Private flag (either 0 or 1).
-D, --nodate
Omit the creation date field.
-C, --nocreator
Omit the created by field.
-m, --md5sum
Add an md5sum field for each file.
-s, --show
Show generated torrent structure.
-S, --showall
Show generated torrent structure, including piece data.
-q, --quiet
Quiet operation with reduced output.
-V, --version
Show the version string.
-h, --help
Show a help screen with brief usage information.
AUTHORS
Claude Heiland-Allen (claudiusmaximus@goto10.org)
SEE ALSO
createtorrent(1), mktorrent(1)
http://wiki.theory.org/BitTorrentSpecification
http://bittorrent.org/beps/bep_0012.html
http://www.getright.com/seedtorrent.html
0.8 January 2010 BUILDTORRENT(1)