Hirdetés

Új hozzászólás Aktív témák

  • Siriusb

    veterán

    válasz Dißnäëß #32647 üzenetére

    Vagy a find-dal, vagy az fd-vel kellene, én kezdek átszokni ez utóbbira.

    Például valami ilyesmi: fd -e txt -x rm.
    Először mindenképpen a -x rm nélkül teszteld le!

    -e, --extension ext
    Filter search results by file extension ext. This option can be used repeatedly to al‐
    low for multiple possible file extensions.

    -x, --exec command
    Execute command for each search result in parallel (use --threads=1 for sequential com‐
    mand execution).

    Note that all subsequent positional arguments are considered to be arguments to the com‐
    mand - not to fd. It is therefore recommended to place the -x/--exec option last. Al‐
    ternatively, you can supply a ';' argument to end the argument list and continue with
    more fd options. Most shells require ';' to be escaped: '\;'. This option can be spec‐
    ified multiple times, in which case all commands are run for each file found, in the or‐
    der they are provided. In that case, you must supply a ';' argument for all but the last
    commands.

    The following placeholders are substituted before the command is executed:

    {} path (of the current search result)
    {/} basename
    {//} parent directory
    {.} path without file extension
    {/.} basename without file extension

    If no placeholder is present, an implicit "{}" at the end is assumed.

    Szerk.: de lassú voltam, amire mindent bemásoltam. :D

    [ Szerkesztve ]

Új hozzászólás Aktív témák