The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



Thread: awk help
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-07-2008
Franklin52 Franklin52 is offline
Moderator
 

Join Date: Feb 2007
Posts: 1,561
Code:
echo 'a1.txt' | awk -F. '{print $1}'
or

Code:
echo 'a1.txt' | sed 's/\..*//'
Regards
Reply With Quote