About 901,000 results
Open links in new tab
  1. linux - Cat command and echo - Super User

    Jan 13, 2018 · I'd like to concatenate the output from echo with content of a file. I've tried the following comand: echo "abc" | cat 1.txt > 2.txt but the 2.txt file only contains the content …

  2. What is the Windows equivalent of the Unix command cat?

    Jun 10, 2012 · I want to do exactly what unix "cat" does, but on my PC. Is there a simple equivalent command for the Windows command line? Specifically I want to create a file from …

  3. Unix cat starting from line - Super User

    Dec 22, 2013 · What is the best way to output from a file starting from a specific line (big number like 70000). Something like: cat --line=70000 <file>

  4. cmd.exe - real windows equivalent to cat *stdin* - Super User

    Dec 17, 2014 · Under cmd is there a windows equivalent to the posix command cat ? cat all by itself no filenames, no switches. I just want something that copies stdin to stdout until it hits …

  5. how to output only a specific known line number using cat or …

    Nov 7, 2023 · I know how to use head or tail to output a certain number of lines, but how do I output only a specific line number (s)? Something like: head --only-line=73 <file>

  6. command line - What is the general consensus on "Useless use of …

    The cat command and the pipe itself use extra memory and file handles that are completely useless. You have tied up resources that my system needs free and you have gained …

  7. How to iterate over lines in a variable in Bash? - Super User

    How does one properly iterate over lines in bash either in a variable, or from the output of a command? Simply setting the IFS variable to a new line works for the output of a command …

  8. How can I concatenate two files in Unix? - Super User

    Jan 4, 2011 · if the file new.txt is an empty file, you can simply use the cat command : cat file1.txt file2.txt > new.txt if new.txt is not empty, and you want to keep its content as it is, and just want …

  9. command line - Windows equivalent to Linux `cat -n`? - Super User

    Mar 10, 2018 · In Linux, I can easily view any files with line number next to it with cat -n command. sh-4.4$ cat test line 1 line 2 line 3 sh-4.4$ sh-4.4$ cat test -...

  10. What is the equivalent of Bash's cat -n in PowerShell?

    May 10, 2017 · 1 cat in PowerShell is actually an alias for Get-Content. You can see this from Get-Alias cat. Many of the simple nix commands were giving PS equivalents to help ease …