Sponsored Content
Top Forums Shell Programming and Scripting Numeric calculation in shell scripting Post 302793671 by Scrutinizer on Saturday 13th of April 2013 03:23:21 AM
Old 04-13-2013
Yes that is a good point. In my experience CDE used to be installed by default, so it was there unless the administration team had made a conscious choice to uninstall it / not to install it , but it appears it has become optional in HP-UX 11.31, so there CDE would need to be installed first..

Last edited by Scrutinizer; 04-13-2013 at 05:01 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

2. Shell Programming and Scripting

Perl code to differentiate numeric and non-numeric input

Hi All, Is there any code in Perl which can differentiate between numeric and non-numeric input? (11 Replies)
Discussion started by: Raynon
11 Replies

3. Shell Programming and Scripting

Need help in shell script to trim numeric values

Hello I am currently working on a shell script which actually needs to pull some file from a server , The filenames will have the extension with date/time stamp , i need to trim that and name it to proper format Example : xyz_20091108_22142365.gzip i need to remove the... (5 Replies)
Discussion started by: ranga27
5 Replies

4. Shell Programming and Scripting

Arithmetic calculation on real numbers in Bourne Shell Script

I am begining to learn bourne shell and as a practice I have written a script which when given the purchase price and percentage of discount calculates the savings. I somehow cannot figure out why my script fails to do arthimatic calculation on real numbers. Could anyone look at the script... (5 Replies)
Discussion started by: Tirmazi
5 Replies

5. Shell Programming and Scripting

calculation using awk or shell script in between the numbers

file A E969K D223L E400L E34L file B predicted 3 1 250 251 500 501 1000 The output should be E969K 501 1000 D223L 1 250 E400L 251 500 E34L 1 250 I tried in this way (1 Reply)
Discussion started by: cdfd123
1 Replies

6. UNIX for Dummies Questions & Answers

Find and Replace random numeric value with non-numeric value

Can someone tell me how to change the first column in a very large 17k line file from a random 10 digit numeric value to a non numeric value. The format of lines in the file is: 1702938475,SNU022,201004 the first 10 numbers always begin with 170 (6 Replies)
Discussion started by: Bahf1s
6 Replies

7. Shell Programming and Scripting

KSH SHELL: problem calculation number of lines inside compressed file

Hi Gurus, I am working with a korn shell script to simplify some operations of calculation number of lines inside compressed file. The called function (inside a cycle) is the following: ######################################### # F.ne: CheckCount #########################################... (3 Replies)
Discussion started by: GERMANICO
3 Replies

8. Shell Programming and Scripting

Modulo calculation in shell script

hi i am writing a progrm to print the even numbers and the code which i am following is as follows #!/usr/bin/bash echo "enter a number a" read a if then echo "the number is even" else echo "the number is odd" fi ~ what is the mistake i am doing ...please tell me (3 Replies)
Discussion started by: harjinder
3 Replies

9. Shell Programming and Scripting

Math calculation over shell

Hi I am trying to calculate the rate at which something is happening. I have 2 files- a1 and b1. I want to calculate something like this ((wc -l a1)/(wc -l a1 + wc -l b1))*100 over a loop for different a and b. Is this possible, help me out fellas. Thanks a lot :) (5 Replies)
Discussion started by: jamie_123
5 Replies

10. Shell Programming and Scripting

How to do simple date (time) calculation in shell script?

Hi, I'm looking for a way to do a simple math calc during a shell script as a means of logging how long a particular task takes. For example... STARTTIME=whenever this script starts ./path/to/command.sh >>logfile.log TOTALTIME=<time at this stage of the script after above command... (7 Replies)
Discussion started by: nbsparks
7 Replies
dtfilsys(file formats)													    dtfilsys(file formats)

NAME
dtfilsys -- CDE file system; directory tree structure DESCRIPTION
The CDE file system is divided into three parts: the root system, /usr/dt, the configuration directory, /etc/dt, and the temporary direc- tory, /var/dt. The root system, /usr/dt, is a read-only directory. It contains all the files that comprise the CDE. The configuration directory, /etc/dt, is the directory CDE applications will search to locate configuration files that have been modified by the system administrator. Default versions of these configuration files are typically located in /usr/dt. The temporary directory, /var/dt, contains temporary information or information that varies in size and existence. Below is a diagram of the directory tree structure for CDE. /etc/dt/appconfig/appmanager/<Lang> /help/<Lang> /icons/<Lang> /types/<Lang> /backdrops/<Lang> /config /palettes/<Lang> /usr/dt/app-defaults/<Lang> /appconfig/appmanager/<Lang> /help/<Lang> /icons/<Lang> /types/<Lang> /bin /config /lib /share/backdrops/<Lang> /include /examples /man /palettes/<Lang> /var/dt/appconfig/appmanager $HOME/.dt/appmanager /help /icons /palettes /sessions /types The following guidelines apply to the contents of these directories: /usr/dt This directory is for use by the CDE system. Applications should never create files in this directory although they may read and execute them. /usr/dt/app-defaults/<Lang> This directory contains the localized versions of the app-defaults files for the CDE clients. /usr/dt/appconfig/appmanager/<Lang> This directory contains the localized versions of the actions files used by the Application Manager. /usr/dt/appconfig/help/<Lang> This directory contains the localized versions of the CDE help volumes and help files. /usr/dt/appconfig/icons/<Lang> This directory contains the localized versions of the icons used by the CDE clients. /usr/dt/appconfig/types/<Lang> This directory contains the localized versions of the actions and data types used by the CDE clients. /usr/dt/bin This directory contains the CDE clients. /usr/dt/config This directory contains default configuration files. /usr/dt/lib This directory contains the shared libraries used by the CDE clients. /usr/dt/share This directory contains CDE elements, typically ASCII files, that are independent of the architecture. /usr/dt/share/backdrops/<Lang> This directory contains the localized versions of the backdrops used by the window manager workspaces and by the Style Manager. /usr/dt/share/examples This directory contains examples of CDE functionality. /usr/dt/share/include This directory is part of the developmewnt environment and includes header files associated with CDE. /usr/dt/share/man This directory contains the man pages for the CDE clients. /usr/dt/share/palettes/<Lang> This directory contains the localized versions of the palettes used by the Style Manager to determine the color scheme. /etc/dt This directory is specified as the CDE configuration directory. /etc/dt/appconfig This directory is used to hold system-administrator defined configuration files /etc/dt/appconfig/appmanager/<Lang> This directory is used to hold system-administrator defined configuration files for the Application Manager. /etc/dt/appconfig/help/<Lang> This directory is used to hold system-administrator defined configuration files for the Help system. /etc/dt/appconfig/icons/<Lang> This directory is used to hold system-administrator defined configuration files for icons. /etc/dt/appconfig/types/<Lang> This directory is used to hold system-administrator defined configuration files for the action and filetype database. /etc/dt/backdrops/<Lang> This directory contains backdrops provided by the system administrator. /etc/dt/config This directory is to contain modified versions of the CDE configuration files (installed in /usr/dt/config). /etc/dt/palettes/<Lang> This directory contains palettes provided by the system administrator. /var/dt This directory is used by CDE for some log files, temporary files, and files that vary in size. /var/dt/appconfig/appmanager This directory is created at login and is used by the Application Manager. $HOME/.dt This directory contains information specific to the user. $HOME/.dt/appmanager This directory is used to hold user-defined configuration files for the Application Manager. $HOME/.dt/backdrops This directory is used to hold user-customized backdrops for the Style Manager. $HOME/.dt/help This directory is used to hold user-defined configuration files for the Help system. $HOME/.dt/icons This directory is used to hold user-defined configuration files for icons. $HOME/.dt/palettes This directory is used to hold user-customized palettes for the Style Manager. $HOME/.dt/sessions This directory is used to store session information between CDE sessions. $HOME/.dt/tmp This directory is used to hold temporary information. $HOME/.dt/types This directory is used to hold user-defined configuration files for the action and filetypes database. The Minimum Runtime Environment The minimum environment required for a system to support CDE consists of the following files and directories: /usr/dt/app-defaults/C/ tpad Dtksh Dtterm /usr/dt/appconfig/tttypes/ types.xdr /usr/dt/bin/ dsdm dtaction dtappgather dtappintegrate dtexec dtksh dtpad dtspcd dtterm suid_exec rpc.ttdbserver tt_type_comp ttsession SEE ALSO
dtenvvar(5) dtfilsys(file formats)
All times are GMT -4. The time now is 12:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy