Posts tagged bash
Generally when I close the terminal all background processes which are attched to the terminal are closed when I logout or close it. How can I keep the processes running even after closing the terminal or logging out of telnet or SSH connection?
I have a file or input like the following:
joe wants to be a doctor lisa like to learn swimming michael learns to rock
I would like to remove all the text after the first space in each line and want to get output like following:
joe lisa michael
Please tell me a simple way to do this in a bash script or at command line. Thanks!
I want to write a simple script to display the number 1, wait one second, display the number 2, etc. How do I add a pause?
Also how can I wait for user input (like ENTER key) in a bash script?
I need to write a bash script that scans current directory and all its sub directories for files that are modified on a specific date.
It would be great if you can mention how to do the following as well.
1) Files modified on or after a specified date
2) Files modified between two dates
3) all the above cases with specified time