The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
cut last 4 chars
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
cut last 4 chars
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
06-28-2007
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Code:
while read str do echo ${str##*-} done < file
anbu23
View Public Profile
Find all posts by anbu23