Tag Info

New answers tagged

0

If the script needs to access the history, insert an alias into the .bashrc. I have this for the command auto which has an option to repeat the latest command, ad infinitum, depending on changes in the provided commandline arguments. The alias: auto = 'history | auto' Assuming that some_command_to_test depends on input.py and output.py I use this to ...


6

Using prefixes or suffixes is common, because it's easily filtered. It's usually ~ for backup. Most text editors use this, and it is possible to explicitly tell ls to not list them by default. This is similar to using a period at the beginning to make the file somewhat hidden (this is also respected by ls and by shell globbing). Other examples are ...


4

The rationale given in the POSIX specification is: The "-exec ... {} +" syntax adopted was a result of IEEE PASC Interpretation 1003.2 #210. It should be noted that this is an incompatible change to the ISO/IEC 9899:1999 standard. For example, the following command prints all files with a '-' after their name if they are regular files, and a '+' ...



Top 50 recent answers are included