Microsoft
Software
Hardware
Network
Question : parsing a string using Shell script
How do I parse a string and retrieve the last 3 digits and add 4 to the start of the 3 digits
the string could be in following formats:
customer100
cust100
I need to retrieve the last 3 digits and add 4 to that. i.e 4100 in shell script. Please advise.
Answer : parsing a string using Shell script
1: 2: 3:
#!/bin/ksh string='customer100' echo 4${string##[a-z]*[a-z]}
Open in New Window
Select All
Random Solutions
mount issue
shutdown 2000
Outlook Express Signature Font Problem
Location of DBX files fo Outlook Express
What is the best way to convert PAL VOB files to NTSC format
Website not showing up in Google
Vlookup with Excel - Classifying transactions
Seagate Crystal Report 7.0
SET ANSI_WARNINGS OFF - SQL 2005
Excel Linked Server Permissions Issue