The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
awk help
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
awk help
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
05-07-2008
mohan705
Registered User
Join Date: Feb 2007
Posts: 91
awk help
Hi
Using awk,want to remove file extension.Below command giving error
echo 'a1.txt' |awk '{print substr($0,1,index($0,'.')-1}'
o/p suould be
a1
Thanks in advance
MR
Remove advertisements
Forum Sponsor
mohan705
View Public Profile
Find all posts by mohan705