# Convert file between Windows and Unix

### Description

The `Convert file between Windows and Unix` action converts files from Windows (DOS) Format (lines end with CR/LF) to Linux/Unix Format (lines end with LF) and vice versa.

When the format is unknown, this action also has a guess function and converts to the other format.

### Options

#### General tab

| Option          | Description                                                                                                                                                                                                             |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action name     | The name of the workflow action.                                                                                                                                                                                        |
| Settings        | <ul><li>Include Subfolders: also process sub-folders</li><li>Copy previous results to args : use the list of result files from the previous workflow action (actions) in stead of the static file list below.</li></ul> |
| Files / Folders | You can specify the list of files or folders with wildcards in this grid. You can add a different source/destination on each line.                                                                                      |

After specifying a folder and wildcard (regular expression), use the `Add` button to add your file/folder selection to the table. Use the `Delete` or `Edit` buttons to remove or edit selected lines in the table.

#### Advanced

| Option            | Description                                                                                                                                                                                                                                                          |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success Condition | <p>This action will follow the success path if the selected condition is true. Current options are:</p><ul><li>Success if all files are processed</li><li>Success if at least x files are processed</li><li>Success when number of error files lesser than</li></ul> |
| Nr Files          | specifies the number of files that have to meet the selected condition from above                                                                                                                                                                                    |
| Add Filenames     | <p>Adds the filenames that meet the selected condition to the workflow output stream. Conditions are:</p><ul><li>Do not add filenames</li><li>Add all filenames</li><li>Add only processed filenames</li><li>Add only error filenames</li></ul>                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/dostounix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
