The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Stripping out extension in file name devs Shell Programming and Scripting 9 05-14-2008 05:53 AM
How to get file extension shirleyeow Shell Programming and Scripting 17 01-17-2008 08:40 AM
trim file tungaw2004 UNIX for Dummies Questions & Answers 1 09-15-2007 07:05 AM
Stripping out the extension of a file name ramky79 Shell Programming and Scripting 4 12-28-2006 10:15 PM
Trim trailing spaces from each line in a file tipsy Shell Programming and Scripting 5 09-13-2006 06:48 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-31-2007
vishal_ranjan vishal_ranjan is offline
Registered User
  
 

Join Date: May 2007
Posts: 23
trim file name extension????

Dear Chaps,

What will I do if, I am not sure about the length of the file name, but only one thing that I want to remove only the last extension.
e.g. abcdXXXXXX.pqrXXXXX.asc (X is any character)
I want to trim only .asc (or,watever) so that resultant file name would be like abcdXXXXXX.pqrXXXXX
Any idea?

Cheers,
Vishal
  #2 (permalink)  
Old 07-31-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,957
Duplicate post,

http://www.unix.com/unix-for-dummies...#post302129510

Moderators please
Closed Thread

Bookmarks

Tags
awk, awk trim, trim, trim awk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0