Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
CAFxX authored Jan 10, 2022
1 parent 8cc4fd4 commit 1a631be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Linux command to atomically create fully-formed files with contents read from st
```sh
# Atomically create a file called hello.txt with the contents passed on stdin
echo 'Hello world!' | atomicfile hello.txt

# Atomically copy a file (also across filesystems)
atomicfile destination.file </some/other/filysystem/source.file
```

Files are always created atomically using `O_TMPFILE`/`linkat`, so any other process
Expand Down

0 comments on commit 1a631be

Please sign in to comment.