diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-10-09 20:22:24 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-10-09 20:22:24 +0200 |
commit | 87701369088a04b9c13586dcf35b4e893873b3ac (patch) | |
tree | 6e0dbb325e3b7bb8d1072f951837e960a74acbea /xe.1 | |
parent | 71f5f214dc8601749ad842559c786da9347cd1ba (diff) | |
download | xe-87701369088a04b9c13586dcf35b4e893873b3ac.tar.gz xe-87701369088a04b9c13586dcf35b4e893873b3ac.tar.xz xe-87701369088a04b9c13586dcf35b4e893873b3ac.zip |
xe.1: add some examples
Diffstat (limited to 'xe.1')
-rw-r--r-- | xe.1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xe.1 b/xe.1 index a693a95..7c7a519 100644 --- a/xe.1 +++ b/xe.1 @@ -260,6 +260,18 @@ if some other error occurred Additionally, 122 is returned when .Fl R was passed and the command was never executed. +.Sh EXAMPLES +Compress all .c files in the current directory, using all CPU cores: +.Dl xe -a -j0 gzip -- *.c +Remove all empty files, using +.Xr lr 1 : +.Dl lr -U -t 'size == 0' | xe -N0 rm +Convert .mp3 to .ogg, using all CPU cores: +.Dl xe -a -j0 -s 'ffmpeg -i \&"${1}\&" \&"${1%.mp3}.ogg\&"' -- *.mp3 +Same, using percent rules: +.Dl xe -a -j0 -p %.mp3 ffmpeg -i %.mp3 %.ogg -- *.mp3 +Similar, but hiding output of ffmpeg, instead showing spawned jobs: +.Dl xe -ap -j0 -vvq '%.{m4a,ogg,opus}' ffmpeg -y -i {} out/%.mp3 -- * .Sh SEE ALSO .Xr apply 1 , .Xr parallel 1 , |