[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Отрезать расширение в bash



,------[Dmitry Fedorov, Mon, 8 Sep 2008 04:44:07 +0700]
|8 сентября 2008 г. 4:26 пользователь Mikhail Ramendik написал:
|> Глобально: надоело путаться в bash, но чем бы другим делать простые связки
|> между несколькими утилитами?
|
|rc
|
|Description: an implementation of the AT&T Plan 9 shell
| rc is a command interpreter and programming language
| similar to sh(1). It is based on the AT&T Plan 9 shell of the
| same name. The shell offers a C-like syntax (much more so
| than the C shell), and a powerful mechanism for manipulating
| variables. It is reasonably small and reasonably fast,
| especially when compared to contemporary shells. Its use is
| intended to be interactive, but the language lends itself well
| to scripts.
|
|
|> Текущий вопрос: в $i есть filename.flac , надо получить просто filename,
|> как?
|
|basename $i .flac
|
|но путь он тоже отрежет, если есть.

`-----------------
а я, неумный человек, через sed/tr ето дело пускал 
ы!
%:)

-- 
_________
mpd status:	[stopped]
**************************************
*          icq: 161874711            *
*  jabber:  devil_inside@jabber.ru   *
*irc.starlink.ru,#Gene, Devil_InSide *
*            ftp://gas/              *
*           http://gas/              *
*   Registered linux user #450844    *
**************************************


Reply to: