I unzipped a file from a script with "unzip filename.zip" and in the terminal I see all the unzipped file names. I would like to unzip the file without printing those names so that I have a clean terminal interface.
Jim6834's questions
I have a directory called all_files
. My script is in the main directory main_dir
(all_files is a subdirectory of main_dir
).
all_files
contains pdf files and only 1 docx file. I want to output all the pdf files' filenames in a reverse alphabetical order. I tried this:
tail -r all_files
But that includes also that docx file that I want to exclude and it doesn't do the job. Does anyone know how to do this?
I have 4 directories: dir1 dir2 dir3 dir4. I want to create a file in each directory. I know I can do this: touch file1.txt and then move it to dir1, then touch file2.txt then move it to dir2 but it takes ages. How can I create a function that creates a text file in each of the directories? Thanks
I want to find a file in an unknown directory and then chmod it. Could you help with that please? So far I wrote find . -type f -name ".pdf" chmod {};