Shell Scripting

Asked by zelenytsya

Who can help make the script, which changed the date of the files in the folder so that the result after sorting files by name and the date was the same.
what are the commands needed to create of this script?
before this I used the command "touch".

Question information

English Edit question
Ubuntu bash Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jeet (gour-jitendrasingh) said :

you can use vi vim gedit nano any of them text editor

for example

vi <>

then enter your script into file and save using ESC :wq

after that change permission of file using chmod command

den run ur script using ./<script_name>


Revision history for this message
zelenytsya (petro-z) said :

what enter in this script?

Revision history for this message
Midnight Matt (randygaffer) said :

Try this at the prompt:
$ ls [directory] | touch | sort
*Replace `[directory]` with the path to the directory*

Good luck.

Can you help with this problem?

Provide an answer of your own, or ask zelenytsya for more information if necessary.

To post a message you must log in.