Pārlūkot izejas kodu

added new one-liner to 'find' commmand

- signed-off-by: trimstray <trimstray@gmail.com>
pull/82/head
trimstray pirms 5 gadiem
vecāks
revīzija
891c4d5441
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. +6
    -0
      README.md

+ 6
- 0
README.md Parādīt failu

@@ -1445,6 +1445,12 @@ find . -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2-
find . -not -path '*/\.git*' -type f -print0 | xargs -0 sed -i 's/foo/bar/g'
```

###### Recursively find/replace of a string in directories and file names

```bash
find . -depth -name '*test*' -execdir bash -c 'mv -v "$1" "${1//foo/bar}"' _ {} \;
```

###### Recursively find suid executables

```bash


Notiek ielāde…
Atcelt
Saglabāt