How to Recursively Add a File to All Sub-Directories

bashcommand linedirectoryrecursive

How do I recursively add(or touch) a file into the current directory, as well as all sub-directories?

For example,
I would like to turn this directory tree:

.
├── 1
│   ├── A
│   └── B
├── 2
│   └── A
└── 3
    ├── A
    └── B
        └── I   
9 directories, 0 files

into

.
├── 1
│   ├── A
│   │   └── file
│   ├── B
│   │   └── file
│   └── file
├── 2
│   ├── A
│   │   └── file
│   └── file
├── 3
│   ├── A
│   │   └── file
│   ├── B
│   │   ├── file
│   │   └── I
│   │       └── file
│   └── file
└── file

9 directories, 10 files

Best Answer

How about:

find . -type d -exec cp file {} \;

From man find:

   -type c
          File is of type c:
           d      directory

   -exec command ;
          Execute  command;  All following arguments to find are taken 
          to be arguments to the command until an  argument  consisting 
          of `;' is encountered.  The string `{}' is replaced by the 
          current file

So, the command above will find all directories and run cp file DIR_NAME/ on each of them.