The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
How to display first 7 char of grep results?
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to display first 7 char of grep results?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
03-30-2007
ghostdog74
Registered User
Join Date: Sep 2006
Posts: 2,604
Code:
grep "active=true" file | cut -d"." -f1
ghostdog74
View Public Profile
Find all posts by ghostdog74