09-15-2010
can you please add the output for first line for which code is working and the expected output of the second line.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
letz say that my file has 7 records with only one field. So my file has:
11111111
000000000000000
1111
aaaabbbccc
1111111222000000
aaaaaaaa
zz
All i need is:
1. when the field has a repetition of the same instance(a-z or 0-9), i would consideer it to be invalid.... (1 Reply)
Discussion started by: helengoldman
1 Replies
2. Shell Programming and Scripting
Hi,
I need and expression for a word like abc_xyz_ykklm
The expresion should indicate that the word starts with abc and end with ykklm but does not contain xyz string in the middle.
Example: abc_tmn_ykklm is ok and abc_xyz_ykklm is not Ok.
Please help.
Regards. (1 Reply)
Discussion started by: asth
1 Replies
3. Shell Programming and Scripting
Hi,
I am looking for a Perl regular expression to match the below pattern of a java script file.
var so = object.device.load('camera','value');
I want to grep out such lines present in the *.js files. The conditions are:
a) the line may start with blank space(s)
b) always the... (3 Replies)
Discussion started by: royalibrahim
3 Replies
4. Shell Programming and Scripting
Hello,
I am trying to use perl LWP module to read and get a specfic URL page. The issue is that the URL ends with the data and time and time is not consistent it changes all the time. if anyone could help me how to write a regular expressin that would work in the LWP::UserAgent get function to... (0 Replies)
Discussion started by: bataf
0 Replies
5. Shell Programming and Scripting
I am completely new to perl programming. My father is helping me learn said programming language. However, I am stuck on one of the assignments he has given me, and I can't find very much help with it via google, either because I have a tiny attention span, or because I can be very very dense.
... (4 Replies)
Discussion started by: kittyluva2
4 Replies
6. Shell Programming and Scripting
Hi I am doing something basic like...
if ($stringvariable =~ /have not typed/)
I have a little problem because the 'not' in the expression gets highlighted as a kind of a '!'..what am I supposed to do in this situation?
Thank you
---------- Post updated at 03:24 PM ----------... (1 Reply)
Discussion started by: vas28r13
1 Replies
7. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
8. Shell Programming and Scripting
I have the following regular expression to pick up comments
^
This only checks if the comment tags start at the beginning if the line
I want that for the '!' tag, a comment can start at any column position. I would consider a comment anything after the !
Example
! This is a... (1 Reply)
Discussion started by: kristinu
1 Replies
9. Shell Programming and Scripting
I had a string in perl script as below.
Tue Augáá7 03:54:12 2012
Now I need to replace the special character with space.
After removing the special chaacters
Tue Aug 7 03:54:12 2012
Could anyone please help me here for writing the regular expression?
Thanks in advance..
Regards,
GS (1 Reply)
Discussion started by: giridhar276
1 Replies
10. Shell Programming and Scripting
Hi ,
I have the below array
my @actionText = ("delivered to governor on 21/23/3345" , "deliver jllj" , "ram 2345/43");
When i am trying to grep the contents of array and if mathced substituting with the digitis or some date format from the element like below
my @action = grep { $_ =~... (7 Replies)
Discussion started by: ragilla
7 Replies
LEARN ABOUT SUNOS
indicator
indicator(1F) FMLI Commands indicator(1F)
NAME
indicator - display application specific alarms and/or the "working" indicator
SYNOPSIS
indicator [ -b [n]] [-c column] [-l length] [-o] [-w] [string...]
DESCRIPTION
The indicator function displays application specific alarms or the "working" indicator, or both, on the FMLI banner line. The argument
string is a string to be displayed on the banner line, and should always be the last argument given. Note that string is not automatically
cleared from the banner line.
OPTIONS
-bn The -b option rings the terminal bell n times, where n is an integer from 1 to 10. The default value is 1. If the terminal
has no bell, the screen is flashed instead, if possible.
-c column The -c option defines the column of the banner line at which to start the indicator string. The argument column must be an
integer from 0 to DISPLAYW-1. If the -c option is not used, column defaults to 0 .
-l length The -l option defines the maximum length of the string displayed. If string is longer than length characters, it will be
truncated. The argument length must be an integer from 1 to DISPLAYW. If the -l option is not used, length defaults to DIS-
PLAYW. Note that if string doesn't fit it will be truncated.
-o The -o option causes indicator to duplicate its output to stdout .
-w The -w option turns on the "working" indicator.
EXAMPLES
Example 1: A sample output of the indicator command.
When the value entered in a form field is invalid, the following use of indicator will ring the bell three times and display the word WRONG
starting at column 1 of the banner line.
invalidmsg=`indicator -b 3 -c 1 "WRONG"`
To clear the indicator after telling the user the entry is wrong:
invalidmsg=`indicator -b 9 -c 1 "WRONG"; sleep 3;
indicator -c 1 " "`
In this example the value of invalidmsg (in this case the default value Input is not valid), still appears on the FMLI message line.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
SunOS 5.10 5 Jul 1990 indicator(1F)