Shell Scripting

Asked by zelenytsya on 2012-05-08

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Last query:
2012-05-08
Last reply:
2012-12-18
Jeet (gour-jitendrasingh) said : #1

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

for example

vi <script_name.sh>

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>

thanks

zelenytsya (petro-z) said : #2

what enter in this script?

Midnight Matt (randygaffer) said : #3

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.