About 50 results
Open links in new tab
  1. Save all the terminal output to a file - Unix & Linux Stack Exchange

    Is there some way of saving all the terminal output to a file with a command? I'm not talking about redirection command > file.txt Not the history history > file.txt, I need the full terminal...

  2. Write Python stdout to file immediately - Unix & Linux Stack Exchange

    Feb 3, 2015 · When trying to write the stdout from a Python script to a text file (python script.py > log), the text file is created when the command is started, but the actual content isn't written until the

  3. How can I save the last command to a file? - Unix & Linux Stack …

    This will allow you to say, for example, getlast mycommand to print out the last command line invoking mycommand, so if you forgot to save before running another command, you can still easily save the …

  4. How do I reuse the last output from the command line?

    Aug 25, 2018 · If you're running under X, select the output you want with the mouse to copy it, and then middle-click to paste it. If you're running on a text console, you can do a similar thing with gpm.

  5. How can I duplicate a line and search and replace on the duplicate with ...

    Nov 2, 2021 · I'm trying to duplicate lines in a text file that contain certain special characters, but in the duplicate, substitute the special character with "regular" ASCII characters. The concrete ...

  6. Print previous line after a pattern match using sed?

    Jun 2, 2015 · I want to print previous line,every time a match was found. I know about grep -A and -B options. But my Solaris 5.10 machine doesn't support those options. I want solution using only sed. …

  7. Redirecting the content of a file to the command "echo"

    Jul 1, 2016 · As that command substitution is not quoted, the split+glob operator would be applied to it. For instance if my_file.txt contains *, that would print the list of file names in the current directory.

  8. Using `openssl` to display all certificates of a PEM file

    Mar 21, 2022 · I can use the following command to display the certificate in a PEM file: openssl x509 -in cert.pem -noout -text But it will only display the information of the first certificate. A PEM file may a...

  9. Is it possible to see cp speed and percent copied?

    Mar 12, 2016 · I'm having problems when copying large files using nautilus (it gets stuck). I need to copy, using cp. I would like to know if there are any parameters that shows the % copied and also …

  10. get value after specific word - Unix & Linux Stack Exchange

    A readable solution would be: awk -F '${fixed_string}' '{print $2}' file | awk '{print $1}' What it does: -F '${fixed_string}' separates the input into before and after the given string. So with your file, when we …