02-22-2009
can you please tell me what actually the values $1,$2 and $3..etc., does?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All..
i am trying to write a script which will give the incremental tar backup of all files with latest timestam.
i tried with find -mmin -2
but if it takes half on hour or something to creat the tar itself, then no meaning in using the above command.
so please help me to find the... (2 Replies)
Discussion started by: Usha Shastri
2 Replies
2. Shell Programming and Scripting
I have a file that is 20 - 80+ MB in size that is a certain type of log file.
It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's an example:
The logfile looks like: "DATE TIME - THREAD ID - Details", and a new file is created... (4 Replies)
Discussion started by: elinenbe
4 Replies
3. Shell Programming and Scripting
Hi,
I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file.
I have the following, but it doesn't backup the inside files of the directory.
#!/bin/bash
tar -czf... (1 Reply)
Discussion started by: agasamapetilon
1 Replies
4. UNIX for Dummies Questions & Answers
let says, i have this number as 000002080, i want to add 1 to make it 000002081, and then i want to add 1 to 000002082, add 1 to 000002083, 84.
i=000002080
TOT=$(echo "scale=9; $i + 1" | bc)
echo $TOT
it shows 2081, i want to retain 000002081, 000002082, 000002082, 000002084. (2 Replies)
Discussion started by: tjmannonline
2 Replies
5. Shell Programming and Scripting
Hi. Can someone tell me if the following script that i have made is a script for INCREMENTAL BACKUP or FULL BACKUP. My teacher told me that is doing an FULL BACKUP.
• find /etc /var /home -newer /backups/.backup_reference > /backups/.files_to_archive
• touch /backups/.backup_reference
• tar... (1 Reply)
Discussion started by: bender-alex
1 Replies
6. Shell Programming and Scripting
Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
Thanks! (7 Replies)
Discussion started by: scribling
7 Replies
7. UNIX for Advanced & Expert Users
We have a log file which has 16 million row. We want to read all the lines appended from the last time we read using sed command
sed -n '<START_LINE>,<LAST_LINE>p' abc.csv
I can store this last line line so I can give replace that with START_LINE in my next read. The problem is wc -l which... (2 Replies)
Discussion started by: one2connect
2 Replies
8. UNIX for Beginners Questions & Answers
Hi Guys,
am trying to write logic to do incremental value using linux
Example:
a=00.00.00.01
My b should be like this
b=00.00.00.02
and when it reaches 99 my b should look like this
b=00.00.01.99
Appreciate your help guys
Please use CODE tags when displaying sample input, sample... (14 Replies)
Discussion started by: buddi
14 Replies
LEARN ABOUT CENTOS
xmreptyperegister
XmRepTypeRegister(library call) XmRepTypeRegister(library call)
NAME
XmRepTypeRegister -- A representation type manager function that registers a representation type resource
SYNOPSIS
#include <Xm/RepType.h>
XmRepTypeId XmRepTypeRegister(
String rep_type,
String *value_names,
unsigned char *values,
unsigned char num_values);
DESCRIPTION
XmRepTypeRegister registers a representation type resource with the representation type manager. All features of the representation type
management facility become available for the specified representation type. The function installs a forward type converter to convert
string values to numerical representation type values.
When the values argument is NULL, consecutive numerical values are assumed. The order of the strings in the value_names array determines
the numerical values for the resource. For example, the first value name is 0 (zero); the second value name is 1; and so on.
If it is non-NULL, the values argument can be used to assign values to representation types that have nonconsecutive values or have dupli-
cate names for the same value. Representation types registered in this manner will consume additional storage and will be slightly slower
than representation types with consecutive values.
A representation type can only be registered once; if the same representation type name is registered more than once, the behavior is unde-
fined.
The function XmRepTypeAddReverse installs a reverse converter for a registered representation type. The reverse converter takes a represen-
tation type numerical value and returns the corresponding string value. If the list of numerical values for a representation type contains
duplicate values, the reverse converter uses the first name in the value_names list that matches the specified numeric value. For example,
if a value_names array has cancel, proceed, and abort, and the corresponding values array contains 0, 1, and 0, the reverse converter will
return cancel instead of abort for an input value of 0.
rep_type Specifies the representation type name.
value_names
Specifies a pointer to an array of value names associated with the representation type. A value name is specified in lowercase
characters without an Xm prefix. Words within a name are separated with underscores.
values Specifies a pointer to an array of values associated with the representation type. A value in this array is associated with the
value name in the corresponding position of the value_names array.
num_values
Specifies the number of entries in the value_names and values arrays.
RETURN
Returns the identification number for the specified representation type.
RELATED
XmRepTypeAddReverse(3), XmRepTypeGetId(3), XmRepTypeGetNameList(3), XmRepTypeGetRecord(3), XmRepTypeGetRegistered(3), and XmRepTypeValid-
Value(3).
XmRepTypeRegister(library call)