get age of given file
How can I get the age of a given file in, at least, days?
How can I get the age of a given file in, at least, days?
If I have a file which name starting with single or several minus sign, for example –1 it can’t be used as a parameter of many commands. Even if I run cat –1 instead of file content I get unrecognised option error message: cat: unrecognized option '–1' Same effect appears when I type cat "–1" … Read more
I’ve been trying to figure out the size of a window for use in a small script. My current technique is using wmctrl -lG to find out the dimensions. However, the problem is this:
Is there a variant of cat that outputs syntax-highlighted lines of code when used on a source file?
If I have a large file and need to split it into 100 megabyte chunks I will do
If I have a plain text file, how can I convert it to an image file through the command line? (and preserve the layout of the ASCII art in it)
I renamed a few files in one batch script. Is there a way to undo the changes without having to rename them back?
When using commands in bash I like the double tab option to display the available commands. Some commands have more possible matches than others:
For example, I can do the following
I actually did not know there are two different types of variables I can access from the command line. All I knew is, that I can declare variables like: