Microsoft
Software
Hardware
Network
Question : Get the string from a specific position
I am looking for a specific string in a file .I need the value after the specific string
echo `head -1 xxx|sed 's/ //g'`|grep DATE=
I need to get the value of 6 charectsrs after DATE= in the header line
Here is the sample
200635SEE DATE=050708 HDR
Finally I need to sarch for DATE= & get the value after that(6 CHarecters)
Answer : Get the string from a specific position
sed 's/.*DATE=\(......\).*/\1/
'
Random Solutions
Change Server Name in SBS2K3 what are the implications
Calculate age by birthday in years, months, and days
Blackberry Upgrade and Migration
How to turn off CISCO ASA 5520 continuous ping
WINS Event ID 4227
How to pass stored procdure return value or Print message to MS Access
How to restore linux pc from .gho file?
Using sendmail command line
Creating logon script to run under administrator privlidges
Help, my query using opendatasource, a where clause and option(robust plan) fails. What am I doing wrong