Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

pipe

How do I trim leading and trailing whitespace from each line of some output?

August 7, 2022 by Magenaut

I would like to remove all leading and trailing spaces and tabs from each line in an output.

Categories Q&A, Unix & Linux Tags pipe, shell-script, text-processing, whitespace Leave a comment

What are the advantages of using named pipe over unnamed pipe?

August 7, 2022 by Magenaut

I was reviewing a set of interview questions that are asked from a unix admin; I found a topic called “named pipe”.

Categories Q&A, Unix & Linux Tags pipe Leave a comment

How to download an archive and extract it without saving the archive to disk?

August 7, 2022 by Magenaut

I’d like to download, and extract an archive under a given directory. Here is how I’ve been doing it so far:

Categories Q&A, Unix & Linux Tags pipe, shell, tar, wget Leave a comment

Difference between 2>&1 > output.log and 2>&1 | tee output.log

August 7, 2022 by Magenaut

I wanted to know the difference between the following two commands

Categories Q&A, Unix & Linux Tags io-redirection, pipe, shell Leave a comment

Piping data to a process’s stdin without causing EOF afterward

August 7, 2022 by Magenaut

I have an executable that starts a user-interactive shell. I would like to, upon launch of the shell, inject a few commands first, then allow the user to have their interactive session. I can do this easily using echo:

Categories Q&A, Unix & Linux Tags pipe, shell-script, stdin Leave a comment

Direct output to pipe and stdout

August 7, 2022 by Magenaut

Is there a way to pipe the output of a command and direct it to the stdout as well?

Categories Q&A, Unix & Linux Tags bash, pipe, stdout, tee Leave a comment

What’s a good example of piping commands together?

August 7, 2022 by Magenaut

If you were helping someone to learn the concept of pipes on the command line what example would you use? The example that actually came up was as follows:

Categories Q&A, Unix & Linux Tags command-line, pipe Leave a comment

Shell Script mktemp, what’s the best method to create temporary named pipe?

August 7, 2022 by Magenaut

I’m aware its best to create temporary files with mktemp, but what about named pipes?

Categories Q&A, Unix & Linux Tags linux, pipe, security, shell Leave a comment

How do I pipe ls to grep, and delete the files filtered by grep?

August 7, 2022 by Magenaut

I wanted to delete some package in my home file, but the filename was too long (google-chrome-stable_current_i386.deb). So, I decided to use the command ls|grep chrome|rm to pipe the files to grep to filter out the chrome file, and then remove it. It didn’t work, so I would like to see how I can do this.

Categories Q&A, Unix & Linux Tags grep, ls, pipe, rm Leave a comment

How to filter out lines of a command output that occur in a text file?

August 7, 2022 by Magenaut

Let’s say we have a text file of forbidden lines forbidden.txt. What is a short way to filter all lines of a command output that exist in the text file?

Categories Q&A, Unix & Linux Tags filter, pipe, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 Page9 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress