02-03-2008
File properties
Hi ,
I do have a line in my code as follows:
if [[ -z $FILE_NAME ]] ; then
...
else
...
fi
What does the -z does ? Similarly there is -s in some other part of the code. I guess there are many options like this.. Can anybody please tell what all options are available and what do they mean ?
10 More Discussions You Might Find Interesting
1. HP-UX
Hi
How can we identify the informations like Author, meta data, dependency and other information from a depot file? (1 Reply)
Discussion started by: sethumadhavan
1 Replies
2. Linux
# Timer for thread to sleep
thread.sleep =15000
# To run the thread as daemon process
thread.run = true
# Copy command
thread.cmd = C:\Program Files\Java\jdk1.5.0\bin\java CopyFile
This is .properties file. CopyFile is name of program.
is that ok. if i use cp command inplace of... (0 Replies)
Discussion started by: sari
0 Replies
3. UNIX for Dummies Questions & Answers
Can someone explain exactly how the user defined .prop files will be invoked for a given shell file (.sh file)?
Thanks,
Prakash (0 Replies)
Discussion started by: bl_123
0 Replies
4. Shell Programming and Scripting
Hi All,
I have a requirement to parse a file.
Let me clear you all on the req.
I have a job which contains multiple tasks and each task will have multiple attributes that will be in the below format. Each task will have some sequence number according to that sequence number tasks shld... (1 Reply)
Discussion started by: rajeshorpu
1 Replies
5. Shell Programming and Scripting
Hi,
i have a properties file a.prop where entry is like
PROCESS_IDX=0
Now in my shell schript i am doing like this.
#!/bin/sh
. a.prop
..............
-.......................
while read line
do
# tokenize the string by ",".
var=(`echo $line | tr ',' ' '`)
echo $PROCESS_IDX -->... (6 Replies)
Discussion started by: sailaja_80
6 Replies
6. Shell Programming and Scripting
Hi
Am new to this scripting stuff so bear with me.
I got a script made now that reads in a properties file. The properties file is in the following format:
256= Bos, Sea, FRa
128= HEL
I want to be able to read in each line of the file and split out the letter fields by the numbered field. This... (2 Replies)
Discussion started by: vsekvsek
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a .properties file that a read in some values in an .sh file but everytime I put it out on the server it fails.
If I copy and paste the values of the .properties file on my local machine to the .properties file on the server it works just fine. Someone mentioned to see if it has
dos... (3 Replies)
Discussion started by: vsekvsek
3 Replies
8. Shell Programming and Scripting
Hi Friends,
I have a requirement to parse a properties file having a key=value pairs.
i need to count the number of key value pairs in the properties file and iterate through each key-value pair. I have written the script to read the number of lines from the property file, but cannot... (2 Replies)
Discussion started by: prashdeep
2 Replies
9. Shell Programming and Scripting
I need to install a bin file in UNIX which requires user interaction for giving some information like user id , path, sid etc. All these information is stored in a properties file in the same location.
So if i give ./file.bin -f propfile.properties will it install the file taking all the... (1 Reply)
Discussion started by: coolmohere
1 Replies
10. Shell Programming and Scripting
Hi All,
I'm having a python script: test.py in /path/to/script/test.py
I'm using a properties file: test_properties.py (it is having values as dictionary{}) which is in same DIR as the script.
Sample Properties file:
params = {
'target_db' : 'a1_db'
'src_db' : ... (15 Replies)
Discussion started by: saps19
15 Replies
LEARN ABOUT SUNOS
gnome-desktop-prefs
gnome-control-center(1) User Commands gnome-control-center(1)
NAME
gnome-control-center, gnome-desktop-prefs - configure desktop preferences
SYNOPSIS
gnome-control-center [gnome-std-options] [--noshell]
DESCRIPTION
Desktop Preferences allows you to configure the GNOME desktop. If Nautilus is running, gnome-control-center will open up a new window and
display all your preference tools. If Nautilus is not running, gnome-control-center will display a simple interface allowing you to select
the preference tool to run. There are 3 categories of preference tools: Basic, Advanced, and Accessibility. Double-click on the tool that
you require and the dialog for the tool will be displayed.
OPTIONS
The following options are supported:
--noshell Do not display the Desktop Preferences in Nautilus. This is not a supported interface.
gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5).
EXAMPLES
Example 1: Launching Desktop Preferences
example% gnome-control-center
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/gnome-control-cExecutable for Desktop Preferences interface
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+------------------------------+
|Availability |SUNWgnome-desktop-preferences |
+-----------------------------+------------------------------+
|Interface stability |External |
+-----------------------------+------------------------------+
SEE ALSO
Preference Tools Manual
Latest version of the GNOME Desktop User Guide for your platform.
gnome-background-properties(1), gnome-font-properties(1), gnome-keyboard-properties(1), gnome-keybinding-properties(1), gnome-ui-proper-
ties(1), gnome-mouse-properties(1), gnome-network-preferences(1), gnome-sound-properties(1), gnome-theme-properties(1), metacity-proper-
ties(1), gnome-accessibility-keyboard-properties(1), cddb-slave2-properties(1), gnome-file-types-properties(1), gnome-panel-preferences(1),
gnome-default-applications-properties(1), gnome-session-properties(1), gnome-std-options(5)
NOTES
Written by Glynn Foster, Sun Microsystems Inc., 2003.
SunOS 5.10 2 Oct 2003 gnome-control-center(1)