write a program to display all the files from the current
directory which are created in particular month
Answer Posted / pitambar mishra
Mr. Rakesh,
It is a unix forum. You have written the program in C language. Please convert the program in to shell script.
Ans:
ls -l|grep -i sep
ls -l|awk '/Sep/ {print}'
ls -l|sed -n '/Sep/ p'
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How would you compare the strings in a shell script?
Is bash a shell script?
What is the syntax of while loop in shell scripting?
What is the crontab?
Why are there shells on the beach?
What is shell scripting?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is bash coding?
Differentiate between ‘ and ” quotes.
how will you find the total disk space used by a specific user?
What is scripting autism?
What are the different commands available to check the disk usage?
How to check if a directory exists?
How can we find the process name from its process id?
Why are shell scripts used?