Top "Unix" questions

This tag is EXCLUSIVELY for PROGRAMMING questions that are directly related to Unix; general software issues should be directed to the Unix & Linux Stack Exchange site or to Super User.

How do you tell if a string contains another string in POSIX sh?

I want to write a Unix shell script that will do various logic if there is a string inside of …

shell unix
How can I generate Unix timestamps?

Related question is "Datetime To Unix timestamp", but this question is more general. I need Unix timestamps to solve my …

unix unix-timestamp
Write to file, but overwrite it if it exists

echo "text" >> 'Users/Name/Desktop/TheAccount.txt' How do I make it so it creates the file if …

bash unix
sed edit file in place

I am trying to find out if it is possible to edit a file in a single sed command without …

unix sed solaris
Find all files with name containing string

I have been searching for a command that will return files from the current directory which contain a string in …

linux unix command-line locate
How to send a simple string between two programs using pipes?

I tried searching on the net, but there are hardly any resources. A small example would suffice. EDIT I mean, …

c unix pipe
Is mongodb running?

I have installed mongodb and the php drivers on my unix server. My question is how can I tell if …

mongodb unix database nosql
Unix's 'ls' sort by name

Can you sort an ls listing by name?

unix ls
Shell script - remove first and last quote (") from a variable

Below is the snippet of a shell script from a larger script. It removes the quotes from the string that …

string bash shell unix sed
What is a unix command for deleting the first N characters of a line?

For example, I might want to: tail -f logfile | grep org.springframework | <command to remove first N characters> …

bash unix command truncate