Print a file’s last modified date in Bash
I can’t seem to find how to print out the date of a file. I’m so far able to print out all the … Read more
I can’t seem to find how to print out the date of a file. I’m so far able to print out all the … Read more
After reading the Bash man pages and with respect to this post, I am still having trouble understanding what exactly the eval command … Read more
I have a bash script that launches a child process that crashes (actually, hangs) from time to time and with no apparent reason … Read more
I have a script called foo.sh in my home folder. When I navigate to this folder, and enter ./foo.sh, I get -bash: ./foo.sh: … Read more
What is the best way to emulate a do-while loop in Bash? I could check for the condition before entering the while loop, … Read more
The way to iterate over a range in bash is for i in {0..10}; do echo $i; done What would be the syntax … Read more
I just want to get the files from the current dir and only output .mp4 .mp3 .exe files nothing else. So I thought … Read more
This question already has answers here: How can I exclude directories from grep -R? (14 answers) Closed 5 years ago. When I grep … Read more
I have a directory with roughly 100000 files in it, and I want to perform some function on all files beginning with a … Read more
I want to remove some n lines from the end of a file. Can this be done using sed? For example, to remove … Read more