About 699,000 results
Open links in new tab
  1. What is the purpose of "&&" in a shell command? - Stack Overflow

    Oct 27, 2021 · $ command one && command two the intent is to execute the command that follows the && only if the first command is successful. This is idiomatic of Posix shells, and not …

  2. Find all files containing a specific text (string) on Linux

    Jun 6, 2013 · How do I find all files containing a specific string of text within their file contents? The following doesn't work. It seems to display every single file in the system. find / -type f …

  3. How can I generate Unix timestamps? - Stack Overflow

    Jul 30, 2009 · Related question is "Datetime To Unix timestamp", but this question is more general. I need Unix timestamps to solve my last question. My interests are Python, Ruby and …

  4. What is the proper way to exit a command line program?

    31 I'm using Mac and Linux, and I know that Ctrl + Z stops the currently running command in terminal, but I frequently see the process is still running when I check the system monitor. …

  5. How to convert DOS/Windows newline (CRLF) to Unix newline (LF)

    Apr 10, 2010 · How can I programmatically (not using vi) convert DOS/Windows newlines to Unix newlines? The dos2unix and unix2dos commands are not available on certain systems. How …

  6. What does "&" at the end of a linux command mean?

    Nov 12, 2012 · For example: command gedit launches the default editor gedit UI. command eclipse launches eclipse IDE. Such commands keep throwing the logs of activities in the …

  7. How can I send an email through the UNIX mailx command?

    Feb 17, 2010 · An except from man mail: -f [file] Read in the contents of the user's mbox (or the specified file) for processing; when mailx is quit, it writes undeleted messages back to this file. …

  8. unix - How can I pretty-print JSON in a shell script? - Stack Overflow

    Dec 9, 2008 · I may be a bit biased, but it's an awesome tool for printing and manipulating JSON data from the command-line. It's super-friendly to use and has extensive command-line …

  9. How can I split a large text file into smaller files with an equal ...

    I've got a large (by number of lines) plain text file that I'd like to split into smaller files, also by number of lines. So if my file has around 2M lines, I'd like to split it up into 10 files t...

  10. shell - How to delete from a text file, all lines that contain a ...

    How would I use sed to delete all lines in a text file that contain a specific string?