
How to check if $? is not equal to zero in unix shell scripting?
How to check if $? is not equal to zero in unix shell scripting? Asked 12 years, 9 months ago Modified 3 years, 9 months ago Viewed 357k times
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...
git - How to change line-ending settings - Stack Overflow
Is there a file or menu that will let me change the settings on how to deal with line endings? I read there are 3 options: Checkout Windows-style, commit Unix-style Git will convert LF to CRLF when
unix - Diff files present in two different directories - Stack Overflow
Nov 9, 2012 · I have two directories with the same list of files. I need to compare all the files present in both the directories using the diff command. Is there a simple command line option to do it, or do I h...
unix - What is the meaning of "POSIX"? - Stack Overflow
Nov 23, 2009 · Since every Unix does things a little differently -- Solaris, Mac OS X, IRIX, BSD, and Linux all have their quirks -- POSIX is especially useful to those in the industry as it defines a …
bash - Parsing JSON with Unix tools - Stack Overflow
Dec 24, 2009 · The standard POSIX/Single Unix Specification shell is a very limited language which doesn't contain facilities for representing sequences (list or arrays) or associative arrays (also known …
unix - How to kill a process running on particular port in Linux ...
Jul 20, 2012 · Use the command sudo netstat -plten |grep java used grep java as tomcat uses java as their processes. It will show the list of processes with port number and process id tcp6 0 0 :::8080 :::* …
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 -exec grep -H '
How can I send an email through the UNIX mailx command?
Feb 17, 2010 · How can I send an email through the UNIX mailx command? Asked 15 years, 10 months ago Modified 6 years, 1 month ago Viewed 809k times
How to find out what group a given user has? - Stack Overflow
Dec 8, 2008 · In Unix/Linux, how do you find out what group a given user is in via command line?