Tagged Questions
1
vote
2answers
127 views
Is there some way Linux editors can tell the programming language without the file extension?
I am editing some scripts on Linux without the languages file extensions, and it seems that the editors, namely vi, nano and gedit are not applying syntax highlighting because the filenames don't use ...
0
votes
2answers
381 views
Copy every file with a certain extension (recursive)
I need a script (may it be bash, ksh, or whatever) which copies, for backup purposes, all the sub-directories and files of a directory: .znc - but .log files.
The structure is like this:
...
0
votes
1answer
920 views
How can I make locate/updatedb ignore certain file extensions?
For instance, I don't want either program to find files that end in *.pyc. I'm sure I can do this somehow using regexes or globs, but is there a way to make locate just ignore the files altogether? ...