Difference between revisions of "Shell Commands/Touch"

From MorphOS Library

< Shell Commands

(Created page with "'''Touch''' - Creates a file NAME/A/M, ALL/S <nowiki> NAME - Path/name of the file to create ALL - Recursive touch (goes into subdi...")
 
 
Line 1: Line 1:
 
'''Touch''' - Creates a file
 
'''Touch''' - Creates a file
  
NAME/A/M, ALL/S
+
NAME/A/M, VERBOSE/S, ALL/S
 
  <nowiki>
 
  <nowiki>
NAME - Path/name of the file to create                                        
+
NAME   - Path/name of the file to create
ALL - Recursive touch (goes into subdirs)</nowiki>
+
VERBOSE - Tells if the file was touched or created
 +
ALL     - Recursive touch (goes into subdirs)</nowiki>
 
Touch is used to create empty files. You can specify one or
 
Touch is used to create empty files. You can specify one or
 
more files to be created.
 
more files to be created.
  
 
NOTE: if a file already exists, it won't be modified beside the timestamp.
 
NOTE: if a file already exists, it won't be modified beside the timestamp.
 +
 +
Example:
 +
<nowiki>
 +
Ram Disk:> Touch test test1 test2 VERBOSE
 +
test...touched
 +
test1...created
 +
test2...created</nowiki>

Latest revision as of 15:43, 6 March 2015

Touch - Creates a file

NAME/A/M, VERBOSE/S, ALL/S

NAME    - Path/name of the file to create
VERBOSE - Tells if the file was touched or created
ALL     - Recursive touch (goes into subdirs)

Touch is used to create empty files. You can specify one or more files to be created.

NOTE: if a file already exists, it won't be modified beside the timestamp.

Example:

Ram Disk:> Touch test test1 test2 VERBOSE
test...touched
test1...created
test2...created