10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Ilove unix and alwyas trying to to learn unix,but i am weak in using regular expressions.can you please give me a littel brief discription that how can i understand them and how to use .your response could lead a great hand in my unix love. (1 Reply)
Discussion started by: manoj attri
1 Replies
2. Shell Programming and Scripting
I have a file that I'm trying to find all the cases of phone number extensions and deleting them. So input file looks like:
abc
x93825
def
13234
x52673
hello
output looks like:
abc
def
13234
hello
Basically delete lines that have 5 numbers following "x". I tried: x\(4) but it... (7 Replies)
Discussion started by: pxalpine
7 Replies
3. Shell Programming and Scripting
need a regex that matches when a number has a zero (0) at the end of it
so like
10
20
120
30
330
1000
and so on (6 Replies)
Discussion started by: linuxkid
6 Replies
4. Shell Programming and Scripting
what elements does " /^/ " match?
I did the test which indicates that it matches single lowercase character like 'a','b' etc. and '1','2' etc.
But I really confused with that. Because, "/^abc/" matches strings like "abcedf" or "abcddddee".
So, what does caret ^ really mean?
Any response... (2 Replies)
Discussion started by: DavidHe
2 Replies
5. Shell Programming and Scripting
#!/usr/bin/perl
$word = "one last challenge";
if ( $word =~ /^(\w+).*\s(\w+)$/ )
{
print "$1";
print "\n";
print "$2";
}
The output shows that "$1" is with result one and "$2" is with result challenge. I am confused about how this pattern match expression works step by step. I... (8 Replies)
Discussion started by: DavidHe
8 Replies
6. UNIX for Advanced & Expert Users
I have a flat file with the following drug names
Nutropin AQ 20mg PEN Cart 2ml
Norditropin Cart 15mg/1.5ml
I have to extract digits that are before mg i.e 20 and 15 ; how to do this using regular expressions
Thanks
ram (1 Reply)
Discussion started by: ramky79
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
below is a piece of code written by my predecessor at work.
I'm kind of a newbie and am trying to figure out all the regular expressions in this piece of code.
It is really a tough time for me to figure out all the regular expressions.
Please shed some light on the regular expressions... (3 Replies)
Discussion started by: ramky79
3 Replies
8. UNIX for Dummies Questions & Answers
Hi Gurus,
I need help with regular expressions. I want to create a regular expression which will take only alpha-numeric characters for 7 characters long and will throw out an error if longer than that.
i tried various combinations but couldn't get it, please help me how to get it guys.
... (2 Replies)
Discussion started by: ragha81
2 Replies
9. Shell Programming and Scripting
I have following content in the file
CancelPolicyMultiLingual3=U|PC3|EN
RestaurantInfoCode1=U|restID1|1
.....
I am trying to use following matching extression
\|(+)
to get this
PC3|EN
restID1|1
Obviously it does not work.
Any ideas? (13 Replies)
Discussion started by: arushunter
13 Replies
10. Shell Programming and Scripting
I'm trying to parse RichText to XML. I want to be able to capture everything between the '/par' tag in the RTF but not include the tag itself. So far all I have is this, '.*?\\par' but it leaves '\par' at the end of it. Any suggestions? (1 Reply)
Discussion started by: AresMedia
1 Replies
CLOCK(1) General Commands Manual CLOCK(1)
NAME
clock - display the time in an icon or window
SYNOPSIS
clock
AVAILABILITY
This command is available with the OpenWindows environment. For information about installing OpenWindows, refer to the OpenWindows Instal-
lation and Start-Up Guide.
DESCRIPTION
clock is an OpenWindows XView utility that displays the current time in a window or icon. When the window is open, clock can display the
time in either analog or digital format. The clock window is scalable in either format.
USAGE
When the clock window is open, it has a floating menu from which you can bring up a property window. From this property sheet, you can
modify the display of the tool by selecting either the Analog or Digital choice box.
Seconds:
On the analog version, this selection starts a second hand on the face of the clock. On the digital version, it adds two dig-
its to the digital readout.
Date:
Turns on a date display for both analog and digital versions of clock.
BUGS
If you reset the system time, clock will not reflect the new time until you change its window state from open to icon, or vice versa. To
reset the system time, see date (1V).
The date display does not go well with the round clock face.
Occasionally, when clock is uncovered, the face will be visually corrupted. Use the Refresh button from the frame menu to repair.
11 June 1990 CLOCK(1)