10-16-2007
Jim,
Thanks for the response. Having tested the code thi doesn;t allow me to have spaces within the string. Any ideas?
Also what does the # mean within ${#t}?
Thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to match an alphanumeric string like the following.
i have to do like the following.
if the input line is
the data is {clock_91b}
i have to replace that with
the string was ("clock_91b")
i tried like
$line =~ s/the data is\s+\{(+)\}/the string was \(\"$1\"\)/
which... (4 Replies)
Discussion started by: sskb
4 Replies
2. UNIX for Dummies Questions & Answers
Hi :)
I am writing a ksh
I have a string of general format
A12B3456CD78
the string is of variable length
the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7)
before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
Discussion started by: lakshmikanth
3 Replies
3. Shell Programming and Scripting
I'm trying to do a simple if statement that tests if a filename exists with a user specified string.
So say I have these files:
Assigned_1day_after_due_chuong
Assigned_1day_after_due_gallen
Assigned_1day_after_due_heidenre
and i'm running a script and want to know if a... (6 Replies)
Discussion started by: bob122480
6 Replies
4. Shell Programming and Scripting
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Discussion started by: Max89
1 Replies
5. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
6. Shell Programming and Scripting
Hi there,
I want to compare 2nd column which are alphanumeric values from each of the 2 files i.e.,lspv_pre.out and lspv_post.out , if found echo some message.
lspv_pre.out
hdisk0 00c39eaa451144dd rootvg active
hdisk1 00c39eaa45223322 ... (3 Replies)
Discussion started by: mbak
3 Replies
7. Shell Programming and Scripting
Hi,
I would like to be able to parse out a substring matching a basic pattern, which is a character followed by 3 or 4 digits (for example S1234 out of a larger string). The main string would just be a filename, like Thisis__the FileName_S1234_ToParse.txt. The filename isn't fixed, but the... (2 Replies)
Discussion started by: keaneMB
2 Replies
8. Shell Programming and Scripting
Hi everyone,
I want help to insert space between digits and letters in a alphanumeric string.
INPUT
TRY234TER
PHY1TYR
EXPECTED OUTPUT
TRY 234 TER
PHY 1 TYR
The lines always begin with the letters and the alphabets will be a three letter combination before and after the number. The... (2 Replies)
Discussion started by: kaav06
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I will be having file names like below,
1420SP1.01804
1420SP1.01805D
1420SP1.01805
1420SP1.01806D
1420SP1.01806
1420SP1.01901D
1420SP1.01901
1420SP1.01902D
1420SP1.01902
1420SP1.01903D
1420SP1.01903
1420SP1.01904
1420SP1.01905
From this, I need to list file names which is... (3 Replies)
Discussion started by: Sumanthsv
3 Replies
10. Shell Programming and Scripting
Hi,
I want a script of a code that will allow me to generate all possible combinations of alphanumberica characters of length 12 such that each string will contain numbers and either small or capital letters.
For example a string may look like this: 123AB45cd678. (11 Replies)
Discussion started by: faizlo
11 Replies
LEARN ABOUT NETBSD
ugensa
UGENSA(4) BSD Kernel Interfaces Manual UGENSA(4)
NAME
ugensa -- USB generic serial adapter
SYNOPSIS
ugensa* at uhub?
ucom* at ugensa?
HARDWARE
The ugensa driver supports the following adapters (or their USB device portion, for adaptors that contain a USB host controller, hub and a
USB device):
Airprime PC5220
Novatel FlexPak GPS receiver
Qualcom CDMA MSM (found in Kyocera KPC650 EVDO interface)
Qualcom Inc. CDMA AC8700 (found in the ZTE 1x EVDO interface)
Sierra AirCard 580
Sierra AirCard 595
Sierra AirCard 875 [not tested]
Sierra Wireless EM5625 [not tested]
Sierra Wireless MC5720 [not tested]
Sierra Wireless MC5725 [not tested]
Sierra Wireless MC8755 [not tested]
Sierra Wireless MC8755 [not tested]
Sierra Wireless MC8755 [not tested]
Sierra Wireless MC8765 [not tested]
Sierra Wireless MC8775 [not tested]
Novatel Wireless Merlin CDMA (found in Verizon V620) [not tested]
Novatel ExpressCard [not tested]
Novatel Wireless S720 [not tested]
Novatel Ovation U720 [not tested]
Novatel Merlin XU870 HSDPA ExpressCard [not tested]
Novatel Merlin ES620 [not tested]
Dell/Novatel Wireless HDSPA modem
Dell W5500 HDSPA modem [not tested]
AnyDATA ADU-E500A [not tested]
DESCRIPTION
The ugensa driver provides support for the USB-to-RS-232 Bridge chip used by various vendors.
The device is accessed through the ucom(4) driver which makes it behave like a tty(4).
SEE ALSO
tty(4), ucom(4), usb(4)
HISTORY
The ugensa driver first appeared in NetBSD 3.0.
BSD
December 14, 2009 BSD