Commit 6542f835 authored by Johannes Kiesel's avatar Johannes Kiesel

Add clipboard scripts

parent c998de44
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>code-webis-cmd</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
#!/bin/bash
# read clipboard and print to stddout
#
# Copyright 2017-today
#
# Project WEBIS
# Author: Johannes Kiesel
scriptPath=${0%/*}
. "$scriptPath"/../../libs/bashhelper.sh
check_tools "xsel"
xsel --clipboard --output
#!/bin/bash
# write from stdin to the clipboard
#
# Copyright 2017-today
#
# Project WEBIS
# Author: Johannes Kiesel
scriptPath=${0%/*}
. "$scriptPath"/../../libs/bashhelper.sh
check_tools "xsel"
cat /dev/stdin | xsel --clipboard --input
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment