# Tools for you: Search file name, Join pde-files and others

**URL:** <https://discourse.processing.org/t/tools-for-you-search-file-name-join-pde-files-and-others/10517>\
**Category:** Gallery\
**Created:** [April 21, 2019, 1:14pm UTC](https://discourse.processing.org/t/tools-for-you-search-file-name-join-pde-files-and-others/10517 "2019-04-21T13:14:19Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 8, 2020, 12:37pm UTC](https://discourse.processing.org/t/tools-for-you-search-file-name-join-pde-files-and-others/10517/8 "2020-10-08T12:37:54Z")

</div>

Did you ever had to write 9 nested for-loops?

```auto
for (int i0 = 0; i0 < 2; i0++) { 
    for (int i1 = 0; i1 < 2; i1++) { 
      for (int i2 = 0; i2 < 2; i2++) { 
         ....
            ......

```

I wrote another Sketch to write these 9 lines with for-loops for me, so I don’t have to do it.

You can copy paste the auto-generated code from the direct window in processing:

```auto

void setup() {

  size(800, 600);

  int numberOfDesiredForLoops = 9; 

  for (int i = 0; i < numberOfDesiredForLoops; i++) {
    println ( " for (int i"+i+" = 0; i"+i+" < 2; i"+i+"++) { " );
  }

  println ("");
  for (int i = 0; i < numberOfDesiredForLoops; i++) {
    print ( "i"+i+",");
  }
  println ("");
  println ("");

  for (int i = 0; i < numberOfDesiredForLoops; i++) {
    println ( "}");
  }
  println ("");

  exit();
} // func 
//

```

---

_[View the full topic](https://discourse.processing.org/t/tools-for-you-search-file-name-join-pde-files-and-others/10517)._
