Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can we find first two characters of a flat file?

Status
Not open for further replies.

longs

Programmer
Jul 27, 2007
31
US
Hi All

I have flat file e.g:

T18909 ij8kkjl23498 908234098 98234098
D1 89723498234098 9283j9
P3lks034982349

I to get only the first two character from every line into a variable.so, i can check if its T1, D1 or something else.

How we can do it?

Thanks all
 
man cut

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks It really helped!!!!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top