Linux
a. Run command cd; mkdir -p test/{test1,test2,test3}/{abc,def,ghi}; touch test/test{1,2,3}/abc{1,3,5,7}{a,b,c,d,e,f}.txt; touch test/test{1,2,3}/{abc,def}/testfile; cd -
b. Output (using echo and wildcards) names of files in all 3 dirs (test1, test2 & test3) with any digit in their names with the final letter before extension (.txt) being "f".
c. Output all files with .txt extension in directory test1.
d. Output everything in test1 directory.
Note: in all output commands use single symbol substitution for representing single symbol and multi-substitute symbol in opposite case. Make sure commands will work no matter in which place in filesystem they are run

18 Июл 2019 в 19:43
270 +1
0
Ответы
1

b.

echo test{1,2,3}/*/*f.txt

c.

ls test1/*.txt

d.

ls test1
20 Апр 2024 в 23:14
Не можешь разобраться в этой теме?
Обратись за помощью к экспертам
Гарантированные бесплатные доработки в течение 1 года
Быстрое выполнение от 2 часов
Проверка работы на плагиат
Поможем написать учебную работу
Прямой эфир