Tagged Questions
4
votes
4answers
200 views
List any file ending with .in and corresponding .out with shell script
I have a directory full of files ending with different extensions, how would I list/select only the files ending with .in and corresponding .out that share the same basename?
e.g.
file1.txt
file1.in
...
3
votes
2answers
92 views
Make ls distinguish scripts from binaries in output
Is it possible to make ls distinguish executable scripts from actual compiled binaries?
The permissions are most often the same (+x), and with ls -F you get an asterisk suffix (*) for both, so it's ...
2
votes
3answers
226 views
How universal is the -L (dereference symlink) switch of the 'ls' command?
I have some software that, among other things, needs to:
Assess a file's rwxrwxrwx permissions;
Work under every possible flavor of Unix and Linux you can find in the wild.
Currently, it does that ...
