Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks (2 Replies)
Hi there,
I need to add a sequence of numbers to existing variables within the script to be able to call the variable automatically. Somehow it's just printing the loop number. Here's what I've got so far. :eek:
#!/bin/sh
FOLDER1=foo
FOLDER2=bar
FOLDER3=beer
for ((a=1; a <= 3 ; a++))... (2 Replies)
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Hi All,
I have a variable n that stores a number.
Eg. echo $n comes out to be 120.
I need to print 121 using echo command on n.
Please advice.
Thanks in advance !! (4 Replies)
Dear all,
I have basic knowledge of Unix script and her I am trying to process variable length and variable format CSV file.
The file length will depend on the numbers of Earnings/Deductions/Direct Deposits.
And
The format will depend on whether it is Earnings/Deductions or Direct Deposits... (2 Replies)
Hi,
Can anyone help with a effective solution ?
I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces.
The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Hi, I was wondering if anyone could assist me for (what is probably) a very straightforward answer.
I have input files containing something like
File 1
Apples
Apples
Apples
Apples
File 2
Bananas
Bananas
Bananas
Bananas (4 Replies)
Hi,
I have a variable which stores file names as a result of find command. I need to delete all these files one by one, i.e. by a loop. Can anyone tell me how can it be done?
The variable f2d has the file names like these
abc.txt
bcd.txt
fff.txt
gef.txt
Now I have used a loop as... (12 Replies)
Hi Team,
I have an issue to split the file which is having special chracter(German Char) using awk command.
I have a different length records in a file. I am separating the files based on the length using awk command.
The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
LEARN ABOUT HPUX
show_clerk
show clerk(1m) show clerk(1m)NAME
show clerk - Displays attribute information about the CDS clerk on the local system
SYNOPSIS
cdscp show clerk
DESCRIPTION
The show clerk command displays all the names and values of the clerk attributes on the local system. The clerk must be enabled when you
use this command. The following are valid attributes:
Specifies the number of times a requesting principal failed authentication procedures. Specifies the number of requests to read attributes
for which the clerk was specifically directed by the requesting application to bypass its own cache. Instead, a server is contacted to get
the requested information. This attribute does not account for requests that the clerk is unable to satisfy from the cache or for requests
to look up names or enumerate the contents of directories. Specifies the total number of read requests directed to this clerk that were
satisfied entirely by the information contained in its own cache. This attribute accounts only for requests to read attribute values and
does not include requests to look up names or enumerate the contents of directories. Specifies the time when this entity was created.
Specifies the number of operations other than read and write (that is, skulks, enumerating contents of directories, and so on) performed by
this clerk. Specifies the number of lookup operations performed by this clerk. This attribute accounts only for requests to read
attributes and does not include requests to look up names or enumerate the contents of directories. Specifies how many requests to modify
data were processed by this clerk.
Privilege Required
You must have read permission to the clerk.
NOTE
This command may be replaced in future releases by the dcecp command, and may no longer be supported at that time.
EXAMPLE
The following command displays the attributes of the clerk on the local system: cdscp> show clerk
SHOW
CLERK
AT 1991-10-15-15:56:50
Creation Time = 1991-10-15-15:38:19.000000051-04:00I0.000000000
Authentication failures = 0
Read Operations = 1068
Cache Hits = 137
Cache bypasses = 433
Write operations = 1250
Miscellaneous operations = 590
RELATED INFORMATION
Commands: disable clerk(1m)
show clerk(1m)