05-07-2013
No, it is not a homework.
I tried list the file then send to tmp file, then using diff to compare. but it doesn't work
ls > tmp
diff tmp filelist
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to prompt for a response from a user to enter a path
read dest_dir?"Please Enter Directory :"
How do I do this until a valid directory is entered by the user. I can use
to check the existence of the directory. However when I try the following I cannot get it to work.
while ... (2 Replies)
Discussion started by: jerardfjay
2 Replies
2. Shell Programming and Scripting
I'm trying to write a script that identifies whether a directory of the form AWL.????????.IP exists. I have one that exists which is AWL.05301032.IP.
When I test like this: If ]
I get true, but when I test like this:
If ]
Or like this
If ]
Or any other variation of wild cards, I... (4 Replies)
Discussion started by: philplasma
4 Replies
3. UNIX for Dummies Questions & Answers
Hi.
I what to write a make file that inside a target I want to check if a directory exists.
some like:
### make
a:
if ;then
<command 1>
else
<command 2>
fi
### make end
Thanks a lot
---------------------- (2 Replies)
Discussion started by: zivsegal
2 Replies
4. Shell Programming and Scripting
Hello:
Can someone please help me figure out what is wrong here, my script does not move on to the "else" part even though there is no .ssh directory on my remote server:
$more putkey.sh
#!/bin/ksh
for server in `cat list`
do
if ; then
cat $HOME/.ssh/id_rsa.pub |ssh $server ' cat >>... (4 Replies)
Discussion started by: Sara-sh
4 Replies
5. Shell Programming and Scripting
Hey guys im trying to check if the directory exists
i get a syntax error on the elif statement iv tried using else and still same result im not sure. If the directory does not exist can i just insert mkdir /tmp/old under the elif once that part gets working
if ; then
#do nothing
elif
echo... (20 Replies)
Discussion started by: musicmancanora
20 Replies
6. Shell Programming and Scripting
cp $PATHLOGS/$DATE/*.* $TMP/logs_tmp/
cp $PATHLOGS/$DATE1/*.* $TMP/logs_tmp/
Before copying the files I have to check if the directory $DATE1 and $DATE2 exists.
If directory exists then, check if the folder contains some files.
if the file exists then, check if the file size is greater... (3 Replies)
Discussion started by: sandy1028
3 Replies
7. Shell Programming and Scripting
I want to perform SQL *Loader operation only if a file named "load.txt" exists in a directory "/home/loc/etc". Please help how to check this with a if condition. (8 Replies)
Discussion started by: vel4ever
8 Replies
8. Shell Programming and Scripting
Hi,
I am using solaris 10 OS and bash shell.just checking for small code snippet which follows below.
/export/home/vomappservers/spa/common/5.0
/export/home/vomappservers/spa/common/scripts
/export/home/vomappservers/spa/tools
/export/home/vomappservers/spa/scm5.0/SCCS... (5 Replies)
Discussion started by: muraliinfy04
5 Replies
9. Shell Programming and Scripting
Hi guys,
I am beginner trying to learn unix. So any help is welcomed.
My requirement is to check whether is a file exists in a particular directory or not.
The directory path and filename are taken dynamically with user interaction. So the program should continue only if the $filename... (1 Reply)
Discussion started by: maris_markur
1 Replies
10. UNIX for Beginners Questions & Answers
There are some files with suffix dates like abc_20032019.dat abc_17032019.dat
If at least one file exists then perform some operation else exit from execution.
Korn shell
----------------------------------
array=($inputdir/abc*.dat)
If ] ]
then
echo " file exits"
else
echo " file does... (10 Replies)
Discussion started by: Rajesh123
10 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)