linuxtricks
IS-IT--Management
hi all.
I am using ls -l to list the contents of a directory, but, I only want to see the filenames and sym link information and not the other information before it.
i.e.
ls -l /folder
lrwxrwxrwx 1 root root 15 Aug 4 17:04 symfile -> _folder/otherfile
drwxr-xr-x 2 root root 4096 Aug 4 17:04 _folder
I'd like to only see the following:
symfile -> _folder/otherfile
_folder
Is there a way to show the contents in this way? Can I use awk to specify which columns to show? -or not show?
THanks in advance!
---
Try not. Do. Or do not. There is no try.
I am using ls -l to list the contents of a directory, but, I only want to see the filenames and sym link information and not the other information before it.
i.e.
ls -l /folder
lrwxrwxrwx 1 root root 15 Aug 4 17:04 symfile -> _folder/otherfile
drwxr-xr-x 2 root root 4096 Aug 4 17:04 _folder
I'd like to only see the following:
symfile -> _folder/otherfile
_folder
Is there a way to show the contents in this way? Can I use awk to specify which columns to show? -or not show?
THanks in advance!
---
Try not. Do. Or do not. There is no try.