Sponsored Content
Top Forums Shell Programming and Scripting How to check if a file exists in a directory? Post 302588521 by jayan_jay on Monday 9th of January 2012 08:06:03 AM
Old 01-09-2012
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check if directory exists

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

how to check if masked directory exists?

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

How can I check if directory exists in a makefile

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

my scripts does not check if directory exists

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

check if a directory exists if not make it

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

check if directory and file exists

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

how to check if a directory exists or not.if not need to create it

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

8. Shell Programming and Scripting

How to check if the file exists in directory?

Hi Gurus, I have a requests to find if all the file in the filelist exist in certain directory. example: my filelist abc def ddd cde afg how can I find these 5 files exists at director /home/abc Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies

9. Shell Programming and Scripting

Check whether file exists in directory

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

Check that at least one file exists in the directory.

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
k3d(1)							      General Commands Manual							    k3d(1)

NAME
k3d - 3D modeling and animation system SYNOPSIS
k3d [options] DESCRIPTION
K-3D is a free (as in freedom) 3D modeling, animation, and rendering system for GNU/Linux and Win32. K-3D features a robust, object-ori- ented plugin architecture and is capable of producing motion-picture-quality output when paired with a RenderMan Interface compliant render engine such as Aqsis. Please visit http://www.k-3d.org for more information. OPTIONS
--add-path [path] Prepends a filesystem path to the PATH environment variable. --color Color-codes log messages based on their priority. Requires an ANSI color-capable terminal. --disable-gl-extension [extension] Disables the given OpenGL extension. --exit Exits the program (useful after running scripts in batch mode). -h, --help Prints this help information and exits. --log-level [level] Specifies the minimum message priority to log (valid values are "warning", "information", or "debug"). --options [path] Overrides the filepath for storing user options (this overrides both defaults and the K3D_OPTIONS_PATH environment variable, below). --plugins [path] Overrides the path(s) for loading plugin libraries (this overrides both defaults and the K3D_PLUGIN_PATHS environment variable, below). Multiple colon-delimited paths are allowed. Use "&" as a synonym for the default paths. --script [file] Play the given script after startup (use - for stdin). --shadercache [path] Overrides the path where compiled shaders will be cached (this overrides both defaults and the K3D_SHADER_CACHE_PATH environment variable, below). --share [path] Overrides the path for loading shared data files (this overrides both defaults and the K3D_SHARE_PATH environment variable, below). --show-process Prints the process name next to log messages. --show-timestamps Prints timestamps next to log messages. --syslog Logs messages to syslog. -u, --ui [ui path] Specifies the path to a user interface plugin (this overrides both the default and the K3D_USER_INTERFACE_PATH environment variable, below). As a special-case the string "none" can be used as a synonym for the Null (no gui) User Interface. -H, --user-interface-help Prints a user-interface specific help message and exits. --version Prints program version information and exits. USER INTERFACE OPTIONS
--batch Operate in batch (no user intervention) mode. -n, --new Creates a new document after startup. --no-custom-layouts Disable custom user interface layouts (useful when playing-back recorded tutorials, which rely on the default layout). --no-splash Disables the startup splash screen. -o, --open [file] Opens the given file after startup. --show-tutorials Opens the tutorials menu immediately following startup. --tutorials [path] Overrides the path for loading interactive tutorials (this overrides both defaults and the K3D_TUTORIALS_PATH environment variable, below). ENVIRONMENT VARIABLES
K3D_EXTRA_OPTIONS Provides additional options that are appended to the command-line at startup. Note that unlike other K-3D environment variables, options specified via K3D_EXTRA_OPTIONS will override options specified on the command line. K3D_OPTIONS_PATH Overrides the path for storing user options (this overrides the default, but can be overridden by the --options option, above). K3D_PLUGIN_PATHS Overrides the path(s) for loading plugin libraries (this overrides the default, but can be overridden by the --plugins option, above). Multiple colon-delimited paths are allowed. Use "&" as a synonym for the default paths. K3D_SHADER_CACHE_PATH Overrides the path where compiled shaders are cached (this overrides the default, but can be overridden by the --shadercache option, above). K3D_SHARE_PATH Overrides the path for loading shared data files (this overrides the default, but can be overridden by the --share option, above). K3D_USER_INTERFACE_PATH Overrides the path to the user interface plugin (this overrides the default, but can be overridden by the --ui option, above). AUTHORS
Written by Timothy M. Shead <tshead@k-3d.com>, and many others. REPORTING BUGS
Report bugs to <k3d-development@lists.sourceforge.net> COPYRIGHT
Copyright (c) 1995-2010, Timothy M. Shead. All Rights Reserved. This software is licensed under the terms of the GNU General Public License; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
The K-3D Home Page: http://www.k-3d.org K-3D Version 0.8.0.2 June 2010 k3d(1)
All times are GMT -4. The time now is 01:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy