# Extract file paths

Extracts anything that looks like a Windows or UNIX file path. Note that if UNIX is selected, there will likely be a lot of false positives. Extract file paths lives in the **Extractors** category of the `fx` menu.

## Parameters

| Parameter     | Type    | Required | Default | Description                                            |
| ------------- | ------- | -------- | ------- | ------------------------------------------------------ |
| Input         | string  | yes      | —       | Value to transform. Previous step output or a literal. |
| Windows       | boolean | no       | `true`  | Enabled by default.                                    |
| UNIX          | boolean | no       | `true`  | Enabled by default.                                    |
| Display total | boolean | no       | `false` | Disabled by default.                                   |
| Sort          | boolean | no       | `false` | Disabled by default.                                   |
| Unique        | boolean | no       | `false` | Disabled by default.                                   |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                      |
| -------- | ------------------------------------------------ |
| `string` | Result of the Extract file paths transformation. |

## Example

<details>
<summary>Run Extract file paths</summary>

Extracts anything that looks like a Windows or UNIX file path. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Windows**, **UNIX**, **Display total**, **Sort**, **Unique** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
