10-23-2003
It should be in $0. (that is dollar zero)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Discussion started by: anushilrai
4 Replies
2. Shell Programming and Scripting
Hi,
I need help urgently for following issue. Pls help me to resolve this issue.
I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql)
I given... (6 Replies)
Discussion started by: praka
6 Replies
3. Shell Programming and Scripting
Hi all,
I am new to shell scripting.
I have dbf file and I need to convert it into csv file.
OR, can i read the fields from a .dbf file and OR seprate the records in dbf file and put into .csv or txt.
Actually in the .dbf files I am getting , the numbers of fields may vary in very record and... (6 Replies)
Discussion started by: gauara
6 Replies
4. Shell Programming and Scripting
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
Discussion started by: sasikanthdba
4 Replies
5. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
6. Shell Programming and Scripting
Hi Team -
I"m very new to Shell Scripting so I have a rather novice question. My forte is Windows Batch Scripting so I was just wondering what the Shell Script equivalent is to the DOS command %~n?
%~n is a DOS variable that dispayed the script name.
For instance (in DOS):
REM... (11 Replies)
Discussion started by: SIMMS7400
11 Replies
7. Shell Programming and Scripting
The file starts like this:
Directory: <path to the script>
Script: <script fife name>
#!bin/ksh
##Comments
<actual script>
What is the use of the first two lines in the script? What if I save the file without them? What will be the effect? They are not comments. Im very new to this,... (4 Replies)
Discussion started by: remytom
4 Replies
8. Shell Programming and Scripting
Hello Unix Shell Script Experts,
I have a script that would mask the columns in .csv file or .txt file.
First the script will untar the .zip files from Archive folder and processes into work folder and finally pushes the masked .csv files into Feed folder.
Two parameters are passed
... (5 Replies)
Discussion started by: Mahesh G
5 Replies
9. Shell Programming and Scripting
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
10. Shell Programming and Scripting
Shell script logic
Hi
I have 2 input files like with file 1 content as (file1)
"BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt
File 2 contents as fle(2)
"BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt
I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
LEARN ABOUT DEBIAN
atexpandattrs
atexpand(3) AtFS Toolkit Library atexpand(3)
NAME
atExpandAttrs, atExpand - attribute expansion
SYNOPSIS
#include <atfs.h>
#include <atfstk.h>
int atExpandAttrs (Af_key *aso, char *buf, size_t bufSize, FILE *dest, size_t destSize, int mode);
int atExpand;
DESCRIPTION
atExpandAttrs scans the char buffer buf to the extent of bufSize for strings of the form $__attributeName optionally followed by a delimit-
ing (second) dollar sign ($). If such a string is found, the buffer contents up to the character preceding the first dollar sign will be
sent to the destination output dest. If an attribute with name attributeName is set for the current attributed software object aso, the
citation-string will be substituted by the value of that attribute and appended to the output. Output of buf contents resumes with the
first character after the whitespace character or dollar sign delimiting attributeName.
Despite the type of the dest argument (pointer to file structure), atExpandAttrs may be caused to copy it's output to a string buffer
rather than an open file. In this case, the constant AT_EXPAND_STRING must be given as mode argument and bufSize must be set to indicate
the length of the destination buffer dest (will be casted to character pointer). If destSize is to small to hold the result string, atEx-
pandAttrs returns a negative value. In the regular case, where output shall be written to a file, the mode parameter must be
AT_EXPAND_FILE.
The atExpand variable suppresses attribute expansion when set FALSE. The variable may be set either directly from the application program
if indirectly by evaluation of the pseudo attribute citation $__xpoff in any buffer scanned by atExpandAttrs. Another pseudo attribute
citation $__xpon cancels the effect of a previous $__xpoff and switches attribute citation on again. It does not, however, enable attribute
citation if this was disabled explicitly by the application program.
DIAGNOSTICS
atExpandAttrs returns -1 on error. Additionally, the atError variable is set and afErrMsg holds a diagnostic message.
SEE ALSO
atattribute(3)
AtFStk-1.12 Fri Jun 25 16:39:36 1993 atexpand(3)