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
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
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
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 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
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
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
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
LEARN ABOUT DEBIAN
microdc2
MICRODC(1) General Commands Manual MICRODC(1)
NAME
microdc - A command-line based Direct Connect client
SYNOPSIS
microdc [OPTION]...
DESCRIPTION
microdc is a command-line based Direct Connect client that uses the GNU Readline library for user interaction. It was developed from ground
up and does not depend on any other program. Despite the command-line user interface, microdc was designed to be user friendly and simple
to use.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`--').
-c, --config=FILE
Read configuration script from FILE rather than ~/.microdc/config.
-n, --no-config
Do not read config file on startup.
--help Show summary of options.
--version
Output version information and exit.
--filelist_refresh_interval=NUMBER
Local filelist refresh interval (in seconds). If set to zero, program runs in a special slave mode: it never updates the file list,
just checks every minute if the filelist changes, and if so - reads it. This is pretty useful if you connect to several hubs and use
same filelist.
FILES
The following files are used by microdc (~ represents the current user's home directory):
~/.microdc/config
This file is loaded on startup. It contains commands, one per line, that will be executed on startup. You can override loading of
this file with --config and --no-config.
~/.microdc/history
This is the command history file. It contains a list of commands that were typed and executed from the microdc prompt. It can safely
be removed.
REPORTING BUGS
Report bugs to <oskar@osk.mine.nu>.
AUTHOR
The author of microdc and this manual page is Oskar Liljeblad <oskar@osk.mine.nu>.
COPYRIGHT
Copyright (C) 2004, 2005 Oskar Liljeblad
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
microdc September 17, 2005 MICRODC(1)