mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 03:00:57 +00:00
Update cheatsheets
This commit is contained in:
29
osx/plutil
Normal file
29
osx/plutil
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, osx]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# plutil
|
||||
|
||||
> View, convert, validate, or edit property list ("plist") files.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/plutil.1.html>.
|
||||
|
||||
- Display the contents of one or more plist files in human-readable format:
|
||||
|
||||
`plutil -p {{file1.plist file2.plist ...}}`
|
||||
|
||||
- Convert one or more plist files to XML format, overwriting the original files in-place:
|
||||
|
||||
`plutil -convert xml1 {{file1.plist file2.plist ...}}`
|
||||
|
||||
- Convert one or more plist files to binary format, overwriting the original files in-place:
|
||||
|
||||
`plutil -convert binary1 {{file1.plist file2.plist ...}}`
|
||||
|
||||
- Convert a plist file to a different format, writing to a new file:
|
||||
|
||||
`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o {{path/to/new_file.plist}}`
|
||||
|
||||
- Convert a plist file to a different format, writing to `stdout`:
|
||||
|
||||
`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o -`
|
||||
Reference in New Issue
Block a user