Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago....
I’m looking for something like createdb in PostgreSQL or any other solution that would allow me to create database with a help of a shell command. Any hints? 8...
I want a way to search in a given text. For that, I use grep: grep -i "my_regex" That works. But given the data like this: This is the...
One of the missions of an export tool I have in my application, is to clean all .svn directories from my application directory tree. I am looking for a...
I want to write a Bash script to process text, which might require a while loop. For example, a while loop in C: int done = 0; while(1) {...
when I run ps -aux command on my linux server, to which I connected using putty, few processes are too long to fit in my current window width. Is...
I need to add a cron job thru a script I run to set up a server. I am currently using Ubuntu. I can use crontab -e but that...
What’s a quick-and-dirty way to make sure that only one instance of a shell script is running at a given time? 41 Answers 41 Use flock(1) to make an...
I have a bash script that looks like this: #!/bin/bash wget LINK1 >/dev/null 2>&1 wget LINK2 >/dev/null 2>&1 wget LINK3 >/dev/null 2>&1 wget LINK4 >/dev/null 2>&1 # .. #...
I have a large file A (consisting of emails), one line for each mail. I also have another file B that contains another set of mails. Which command would...