01-24-2007
filelist=`ls directory| grep ilvs_trace`
for q in $filelist
do
echo "file found" $q
done
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to check for the existence of a file using the 'test' and the file existence options.
When trying to check for a file with a space in between e.g 'Team List', it gives the following error.
learn1: line 3: test: `Team: binary operator expected
I am pasting my code below as... (7 Replies)
Discussion started by: igandu
7 Replies
2. Shell Programming and Scripting
Hi All,
I have a requirement where in i need to check for existence of a file and later execute some pmcmd commands related to informatica. I tried many ways but was unsuccessful could you please throw some light. Below are the sample codes i wrote.
Example 1:
#!/bin/ksh... (4 Replies)
Discussion started by: Ariean
4 Replies
3. Shell Programming and Scripting
Hi,
I want to check multiple files exist or not in a single if statement in korn Shell:confused:.
Please help me
Thanks (1 Reply)
Discussion started by: lathish
1 Replies
4. Shell Programming and Scripting
I want to check the files in particular directory are more that 0 Bytes i.e, Non zero byte file. The script should print a msg if all the files in that directory are empty( 0 Byte). (2 Replies)
Discussion started by: lathish
2 Replies
5. Shell Programming and Scripting
Hi,
I am trying to check the existence of a file, from a list of possible filenames:
status-A
status-B
status-C
before retrieving the last modified datetime using ls, I want to check it exists or ls will throw an error.
So I have tried this:
if ; then
ls status-*
fi
But the if... (3 Replies)
Discussion started by: LostInTheWoods
3 Replies
6. Shell Programming and Scripting
Hi
Can any body say me the reason for below error
ssh -o 'StrictHostKeyChecking no' user@client ' && print "1"'
I am getting error as "Missing ]":wall: (6 Replies)
Discussion started by: ramesh12621
6 Replies
7. Shell Programming and Scripting
Hi,
I need to check whether a particular file exists ot not using awk.
Can anyone help me please?
For Example:script that i am using:
awk '{filename =$NF;
rc=(system("test -r filename")) print $rc;}' "$1"
is not working.
Here I am passing a text file as input whose last word contains a... (6 Replies)
Discussion started by: manish007
6 Replies
8. Shell Programming and Scripting
Hi am trying to write a script which find the existence of a file from a find command output and perform a task if the file exists. Help me out with the correct syntax . Am trying with the following one but unable to get the output.
if
then <some tasks>
else
echo "file not exists"
fi (5 Replies)
Discussion started by: rogerben
5 Replies
9. Shell Programming and Scripting
Hi,
I have written a script to validate the data file by referreing to the configurtion file. And moving the validated good records and bad records into HDFS.
Suppose after 15 mins if i receive one more data fie,then after validation the good and bad records shold be stored in hadoop with the... (8 Replies)
Discussion started by: shree11
8 Replies
10. Shell Programming and Scripting
Hello,
I have a directory where sometimes appear a certain file name - and I'd like to be notified by email when that happens... so what command or script I may use?
e.g. if there's a file named "adam" in the directory named "dir1" then send a mail to "abc@abc.com".. it needs to permanently... (5 Replies)
Discussion started by: netrom
5 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)