Friends,
I have to write a shell script,the description is----
i Have to check the uniqueness of the numbers in a file.
A file is containing 200thousand tickets and a ticket have 15 numbers in asecending order.And there is a strip that is having 6 tickets that means 90 numbers.I... (7 Replies)
Howdy experts,
We have some ranges of number which belongs to particual group as below.
GroupNo StartRange EndRange
Group0125 935300 935399
Group2006 935400 935476
937430 937459
Group0324 935477 935549
... (6 Replies)
Hi All
I am struggling for the last one week on how to write a regular expression to search a number with currency (such as $ 1, 245, 000.00, Rs. 1, 00, 000.00 etc) but in vain . Please help me. Thanks in advance.
-----Post Update-----
Hi All
I am struggling for the last one... (7 Replies)
Hello All,
I have 3 types of files. The names of which starts with P,I,M
like P*********
D*********
M*********
now I need to do some operations witht hese files..
so
if file name starts with P or p
then
do the operation for P file...
fi
else (20 Replies)
Hi,
I have a requirement to accet only numbers. Piece of code beolow.
waitTime() {
echo "Enter amount of time to wait (in sec)."
read wait_time
sleep $wait_time
}
the above function should accept only numbers otherwise, it has t throw an error.
Please help. (2 Replies)
This is very basic. Yet Iam struggling to get the right pattern for my check.
Apologize in advance to ask a very lame question.
I have to validate if a value of the variable starts with "efgh" and followed by 6 numbers.
Var1="efgh234567"
The condition Iam trying to achieve is similar to... (6 Replies)
Hi!
I found and then adapt the code for my pipeline...
awk -F"," -vOFS="," '{printf "%0.2f %0.f\n",$2,$4}' xxx > yyy
I add -F"," -vOFS="," (for input and output as csv file) and I change the columns and the number of decimal...
It works but I have also some problems... here my columns
... (7 Replies)
Hi,
In an ideal scenario, I will have a listing of db transaction log that gets copied to a DR site and if I have them all, they will be numbered consecutively like below.
1_79811_01234567.arc
1_79812_01234567.arc
1_79813_01234567.arc
1_79814_01234567.arc
1_79815_01234567.arc... (3 Replies)
Hi,
I have a process that generates strings.
I would like to check each string and search for substring which contains the letter 'E' surrounded by numbers (both sides of the letter 'E').
few examples:
AA4E7012A2 - contains E surrounded by numbers
FE18274012 - does not contain E... (3 Replies)
Discussion started by: yanive
3 Replies
LEARN ABOUT OPENSOLARIS
basename
basename(1B) SunOS/BSD Compatibility Package Commands basename(1B)NAME
basename - display portions of pathnames
SYNOPSIS
/usr/ucb/basename string [suffix]
DESCRIPTION
The basename utility deletes any prefix ending in `/' and the suffix, if present in string. It directs the result to the standard output,
and is normally used inside substitution marks (` `) within shell procedures. The suffix is a string with no special significance attached
to any of the characters it contains.
EXAMPLES
Example 1 Using the basename command.
This shell procedure invoked with the argument /usr/src/bin/cat.c compiles the named file and moves the output to cat in the current direc-
tory:
example% cc $1
example% mv a.out `basename $1 .c`
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO sh(1), attributes(5)SunOS 5.11 28 Mar 1995 basename(1B)