Re: off-topic - list files on linux

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: off-topic - list files on linux
Дата
Msg-id 20080329140446.GA10074@depesz.com
обсуждение исходный текст
Ответ на off-topic - list files on linux  ("A.Burbello" <burbello3000@yahoo.com.br>)
Список pgsql-admin
On Fri, Mar 28, 2008 at 09:39:53AM -0300, A.Burbello wrote:
> How can I get the files in a directory, but not the
> last file updated/created?
> I could get the last file updated with:
> ls -t1p  | grep -v / | grep -v backup | head -1
> How can I get the inverse list, other files without
> the last??

ls -t1p | grep -v / | grep -v backup | tac | tail -n +2

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

В списке pgsql-admin по дате отправления:

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: weird network issue
Следующее
От: Allan Kamau
Дата:
Сообщение: Looping the result set in plpythonu