i am a new user of C-shell script.
I want to know can i create a substring in a string.
That means when i got a variable $input = "it is number 2"
I want to get the "2" to be another variable.
Can i do that in C-shell and how to ?
Thank you so much
dinodash (0 Replies)
Hi All,
Following is the output of a find commnd to locate log directories for various projects of UNIX AIX box:
/home/hbinz6pf/projectlibs/dpr_pfsdw_dev/&PH&
/opt/tools/ds/Template/&PH&
/data/ds/ms/hmsdw/projectlibs/dpr_ms_dev/&PH&
/data/ds/riskmi/projectlibs/dpr_riskmi_dev/&PH&... (1 Reply)
Hi
I'm new to Shell scripting. Someone please help me in extracting a portion of string from a file.
Eg:
I got a file like, Readme.txt and has the following name value pairs
input1 : /homes/input1/
input2 : /homes/input2/
...
...
When I give the parameter input1, the value... (3 Replies)
I need a help in getting substring of each line in input file.
I am writing a script that will read a file from a directory on daily basis, I mean everyday a new file will be stored in this directory, it will replace old file. I have to read contents of this file, the contents will be as... (5 Replies)
This is the data I am having in a file
Just for sample I have given 3 records. The file which I am having consists of n number of records.
ABC123 10 01/02/2008 2008-01-03-00.00.00.000000
DYUU 22 02/03/2008 2008-01-04-00.00.00.000000
RF33 88 03/05/2008 2008-01-05-00.00.00.000000
... (24 Replies)
Hi,
I have a scenario to just plug out the file name from the following location path.
/opt/project/data/int/holdFiles/csv195687.csv
So, how do I get just file name which is "csv195687.csv" from the above line using awk/shell scripting? Can we use indexOf and Substring in awk to get... (7 Replies)
Hi all,
I am new to scripting.
I have a file with colon separated values called mylist.txt
cat mylist.txt
192.123.76.89:lmprod89
162.122.20.28:lmtstserver28
10.80.32.139:hewprod139
.
.
using our internal os utility (called mvsping) we need to check all these servers if they are... (6 Replies)
I want to check if the string has the substring in IF condition then process...
i tried below but not working
if ];
then
.............
field can be "reserved1" ....reservedn / fillspaces1 ... fillspacesn (4 Replies)
Hi all,
Please, i'd like to extract string just before '.fr'.
Here is some lines of my file:
g-82.text.text1.fr.worker1
g-xx.yyyyyy.zzzz.fr.worker2
i'd like to extract this text:
g-82.text.text1
g-xx.yyyyyy.zzzz
Please, which command i have to use in my script shell ?
... (16 Replies)
Hi, I am complete new to C programming and shell scripting. I just wrote a simple C code to calculate integral using trapezoid rule. I am prompting user to pass me No. of equally spaced points , N , upper and lower limit. My code looks as follows so far:
#include<stdio.h>
#include<string.h>... (2 Replies)
Discussion started by: bjhjh
2 Replies
LEARN ABOUT OSF1
tcl-tk
tcl(1) General Commands Manual tcl(1)NAME
tcl, tk, tcl-tk - Tool Command Language
DESCRIPTION
The tcl software is unsupported software that is provided as part of Tru64 UNIX. Compaq will fix problems in this unsupported software
only if they are specific to Tru64 UNIX. Compaq will not fix problems that are integral to the software itself or that occur when the com-
ponent is used on UNIX systems other than Tru64 UNIX. Compaq will not add functionality to this software.
Except for this reference page, other reference pages that Tru64 UNIX supplies for tcl are passed through without changes. The reference
pages distributed as part of this software are available in the directories /usr/share/doclib/annex/man/man[1-9]. You should use this
directory stem in the man command or add it to the MANPATH environment variable to make these files available to the man command.
Note
Compaq is not responsible for the content or quality of reference pages and other documents installed under the /usr/share/doclib/annex
directory and does not revise this material in response to customer problem reports. Reference pages installed under the
/usr/share/doclib/annex/man directory are not available from Compaq in book form; for example, they are not included in the reference manu-
als that you receive when you order the Tru64 UNIX documentation set as hard copy books.
Problems related to the content or quality of any documentation installed in the /usr/share/doclib/annex directory tree should be sent to
the developers of the documentation.
The format for changing the search path with the man command is: man -P /usr/share/doclib/annex/man [section] title...
If you are using the Bourne, Korn, or POSIX shells, use the following command sequence to modify your environment: MANPATH=$MAN-
PATH:/usr/share/doclib/annex/man export MANPATH
If you are using the C shell, enter the command: setenv MANPATH `echo $MANPATH`:/usr/share/doclib/annex/man
See the reference pages for the man(1) command for additional information on the search path used to locate files.
The reference pages associated with this product are not included in the whatis data base created by the catman command. Therefore, the
man -k and apropos commands will not locate reference pages included with this product.
SEE ALSO
Commands: apropos(1), catman(8), man(1)tcl(1)