Sponsored Content
Full Discussion: Help make script much easier
Top Forums Shell Programming and Scripting Help make script much easier Post 102292 by GCTEII on Friday 17th of March 2006 01:27:56 AM
Old 03-17-2006
Help make script much easier

Quote:
filelist=`ls *.log`
for file in ${filelist}
do
line=${file}:${line}
done
Is there any method to realise this in one command?
Thanks in advance
 

7 More Discussions You Might Find Interesting

1. Cybersecurity

Dancing a samba is easier :(

Hello everybody, I am trying to get a suse linux computer ( 7.2 ) to show me my home directory under windows. I got samba started, and I can see the linux computer under windows, but when I try to open it, I get a login box. That is not so bad :) but I can't log on. I am using windows 2000 and I... (5 Replies)
Discussion started by: Micky
5 Replies

2. Programming

make script

I need to write a make script to install a C module in a UNIX environment.It should install the sources, build the libraries and install them and also install the info pages on the system. Can this script be general enough to also install on windows, windows dll, windows help file's etc. Any... (3 Replies)
Discussion started by: cherio
3 Replies

3. Shell Programming and Scripting

how to run script? call other script? su to another user? make a cron?

Good morning. I am searching for "how-to"'s for some particular questions: 1. How to write a script in HP-UX 11. 2. How to schedule a script. 3. How to "call" scripts from the original script. 4. How to su to another user from within a script. This is the basics of what the... (15 Replies)
Discussion started by: instant000
15 Replies

4. What is on Your Mind?

Easier solution to transfer blu-ray and DVD to iPad

Easier solution to transfer blu-ray and DVD to iPad with just one mouse click Because of its 9.7-inch 1024×768 high resolution multi-touch screen, iPad is convenient and comfortable for users to read newspapers, magazines, books, view photos, experience the web, touch emails, and watch any... (0 Replies)
Discussion started by: Molica
0 Replies

5. UNIX for Dummies Questions & Answers

SSH - please make my life easier

I know this is probably a really stupid question, with a really stupidly simple answer. So I've got a Mac, and I have to do a bunch of work via SSH on a Solaris workstation owned by my university. I've already got keys set up, and my ~/.ssh/config file set up as follows: Host prime ... (6 Replies)
Discussion started by: oboewan
6 Replies

6. UNIX for Dummies Questions & Answers

An easier way to move character from field to a new line

Hi ! Is there a more convenient way to do the following: When, in $2, there is more then one letter (separated by ","), it returns the letter on the second position to a new line in $2 with the same content in $1 and $3 as the line this letter comes from. infile: aaaaa A,B 1,2,3,4,5... (6 Replies)
Discussion started by: lucasvs
6 Replies

7. Shell Programming and Scripting

Consolidate several lines of a CSV file with firewall rules, in order to parse them easier?

Consolidate several lines of a CSV file with firewall rules Hi guys. I have a CSV file, which I created using an HTML export from a Check Point firewall policy. Each rule is represented as several lines, in some cases. That occurs when a rule has several address sources, destinations or... (4 Replies)
Discussion started by: starriol
4 Replies
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)
All times are GMT -4. The time now is 01:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy