Pipe to/from the clipboard in a Bash script

Is it possible to pipe to/from the clipboard in Bash? Whether it is piping to/from a device handle or using an auxiliary application, I can't find anything. For example, if /dev/clip was a device...

Equivalent of 'more' or 'less' command in Powershell?

Is there a way to paginate output by piping it to a more or less command, similar to those that are available in Linux\Unix shells?

How to perform p4 submit operation without passing description inside the p4 submit form

I have a p4 client workspace on Linux machine. I added/edited few files in my client space and then tried to submit those changes to perforce server. I followed the steps below but could not...

Python piping output between two subprocesses

I'm working on some code that will DD a block device over SSH, and I'm wanting to do this with subprocess so that I can monitor the status of DD during the transfer (killing the dd process with...

piping to awk hangs

I am trying to pipe tshark output to awk. The tshark command works fine on its own, and when piped to other programs such as cat, it works fine (real time printing of output). However, when piped...

Piping buffer to external command in Vim

I would like to send contents of the current buffer to stdin of external command (like mail). How do I send a Vim buffer to an external command?

How to properly handle a gzipped page when using curl?

I wrote a bash script that gets output from a website using curl and does a bunch of string manipulation on the html output. The problem is when I run it against a site that is returning its...

Piping stdin to R

I am having trouble piping stdin to an R script. Here is my toy script test.R: #!/usr/bin/env Rscript while(length(line <- readLines('stdin', n=1, warn=FALSE)) > 0) { write(line, stderr()) #...

write octave/matlab output to clipboard

iam looking for a way to get the output of an octave statement to the windows clipboard. iam not searching a way to just manually copy/paste text from the cmd window (i know how this would work)....

Chain arithmetic operators in dplyr with %>% pipe

I would like to understand why, in the the dplyr or magrittr package, and more specifically the chaining function %>% has some trouble with the basic operators +, -, *, and / Chaining takes the...

Piping Rscript gives error after output

I wrote a small R script to read JSON, which works fine but upon piping with Rscript myscript.R | head the (full, expected) output comes back with an error Error: ignoring SIGPIPE...

Piping not working with echo command

When I run the following Bash script, I would expect it to print Hello. Instead, it prints a blank line and exits. echo 'Hello' | echo Why doesn't piping output from echo to echo work?

Convert PEM file to DER

I am currently trying to write a script that allows me to compute the Tor HS address from the hiddens service's private key file. In order to do this the file needs to be brought into the DER...

Pipe a stream to s3.upload()

I'm currently making use of a node.js plugin called s3-upload-stream to stream very large files to Amazon S3. It uses the multipart API and for the most part it works very well. However, this...

Issue with Babel and typeahead

While working with babel in a node.js project, I'm trying to bundle all my files into a single transpiled and minified js file. I'm running babel with gulp-babel 6.1.2, I've installed ES-2015...

Listing processes by CPU usage percentage in powershell

How does one lists the processes using CPU > 1% by piping the output from Get-Process to Where-Object? Complete beginner to powershell all i can think is something like this Get-Process |...

Return to Word vba the result of a python script called by the vba macro in Windows

I know how to use vba in MS Word in Windows (7 or 10) to run a python script. Here’s one example: RegExpPatrn = "[RegExp search string]" PythonScriptFullName = Chr(34) &...

Windows cmd pass output of one command as parameter to another

In linux it is possible t do this: git diff $(git status -s -b | sed -n '2p' | cut -d' ' -f2-) or a simpler case ls $(pwd) The question is how can I achieve the same in windows? (not using a...

How to send input to child process created with spawn? nodejs

I'm running Windows 10, and I have a program, let's call it program, that can be run from the command line. When run, it responds to commands the user enters. The user enters a command, presses...

How to delete all merged local branches in Git with PowerShell

How can I iterate through my branches, filter out merged branches and delete them using Git for Windows in Powershell? I have already attempted some research, but every answer I have found...

Colored text output in PowerShell console using ANSI / VT100 codes

I wrote a program which prints a string, which contains ANSI escape sequences to make the text colored. But it doesn't work as expected in the default Windows 10 console, as you can see in the...

Rust TCP Proxy to pipe http, ssh and other tcp traffic

I am new to rust and as learning project I want to create a tcp proxy. Tokio overwhelmed me and I could not find the proper documentation to understand how it works. So I tried to go with std net...

Different behaviour and output when piping through CMD and PowerShell

I am trying to pipe the content of a file to a simple ASCII symmetrical encryption program i made. It's a simple program that reads input from STDIN and adds or subtracts a certain value (224) to...

I cannot seem to be able to add Java libraries to Apache Netbeans 11.3

I getting started on Java programming, and I have a CentOS 7.7.1908 VM with Java 1.8.0_242 OpenJDK and my IDE is Apache Netbeans 11.3. I am trying to develop a small program to read data from...

R pipe in does not work with stringR's str_extract_all()

I encountered a weird and annoying thing: piping with stringR does not work properly: # lets get the 5th number-block out of a string # with piping -> error "Test region test 1235 45 ...

How to pipe a github secret variable into a file

I have a github pipeline and im piping a github sercret variable into a file but i get the following error. /home/runner/work/_temp/c6144b9a-c8e3-489a-ae97-795f592c57f0.sh: line 6: /config:...

Why does `React.renderToNodeStream` not yield to the event loop?

I'm trying to make React's renderToString and renderToStaticMarkup a better citizen by yielding to the event loop allowing other server requests to get a look in, e.g. const React =...

Piping got.stream to a file

I am refactoring some code that was using http module in Node to use got instead. I tried the following: function get(url, filePath) { return new Promise((resolve, reject) => { ...

LibVlcSharp: How to stream a dynamic frame sequence with RTSP (Dynamic StreamMediaInput)?

I'm working on a project that takes individual images from an RTSP-Stream and manipulates them (drawing bounding boxes). Those images should be restreamed (h264 encoded) on a separate RTSP-stream...

Showing progress of scp during cloud-init process

When I spin up a new server I use a cloud-init script to automate the process. I follow progress of this process with: $ tail -f /var/log/cloud-init-output.log When it comes to fetching a...