![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stripping out extensions when file has multiple dots in name | Nemelis | Shell Programming and Scripting | 8 | 05-14-2008 09:12 AM |
| How to get file extension | shirleyeow | Shell Programming and Scripting | 17 | 01-17-2008 08:40 AM |
| Stripping out the extension of a file name | ramky79 | Shell Programming and Scripting | 4 | 12-28-2006 10:15 PM |
| Stripping out the extension of a file name | ramky79 | Shell Programming and Scripting | 2 | 12-27-2006 02:25 PM |
| stripping last lien off a file | vivekshankar | UNIX for Dummies Questions & Answers | 3 | 05-31-2005 07:35 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Stripping out extension in file name
This command gives me just the filename without any extension:
evrvar =`echo filename.tar | sed 's/\.[^.]*$//'` I am trying to make a change to this command... to make it work for... filename.tar.gz to get just the filename.... currently the command gives me filename.tar by removing only gz... I am new to regular expression... pls help. Thx. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|