Portál AbcLinuxu, 13. května 2025 23:55
#!/bin/bash function adresar { for file in * do if [ -d $file ] then cd $file echo "$file" adresar cd .. fi done } adresar-------------------------------------------------- Tak pokud někdo vite jak na to, tak budu rad. Zatim diky.
/home/petr/ |-- 004.wmv |-- 11.jpg |-- 826028.jpg |-- 952210.jpg |-- Acer - linux | |-- Zaloha karty | | |-- Dava Albums | | | `-- Sarka.dab | | |-- Programy | | | |-- Adobe Reader for Pocket PC 2.0 | | | | `-- Adobe | | | | `-- Acrobat 2.0 | | | | |-- Reader | | | | | |-- AGM.dll | | | | | |-- AcroRd32.exe | | | | | |-- CoolType.dll | | | | | |-- acrobat reader.lnk | | | | | |-- fmodce.dll | | | | | |-- history | | | | | |-- plug_ins | | | | | | |-- AfillCE.api | | | | | | |-- Print.apiA pomocí různých voleb upravíme výstup.
A az se to naucim, tak tady treba budu resit neco slozitejsiho.
Čekal bych spis podporu, než grrrr, ale na druhou stranu to samozrejme chapu.Díky za Váš čas a za týden jsem tu s novým úkolem .
function adresar { PocAdr=$1 for file in $PocAdr .. } #volani funkce adresar /home/uzivatelDoufam ze vam to pomuze.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.