![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| listing file with other format | happyv | Shell Programming and Scripting | 3 | 06-26-2007 03:17 AM |
| Unix Commands to display the Filesnames | kish_kk84 | UNIX for Advanced & Expert Users | 3 | 05-03-2007 02:36 AM |
| Extracting Filename from Fullpath | njoshi | UNIX for Dummies Questions & Answers | 3 | 04-19-2007 02:34 PM |
| Recursive directory listing without listing files | psingh | UNIX for Dummies Questions & Answers | 4 | 05-10-2002 07:52 AM |
| O S for new bare PC | Alrichards | UNIX for Dummies Questions & Answers | 5 | 04-22-2002 06:18 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
Need help. How can I get a listing of files in bare format with full path. I mean in the following format. /root/dir1/sub-dir1/file1 /root/dir1/sub-dir1/file2 /root/dir1/sub-dir2/file1 /root/dir1/sub-dir2/file2 /root/dir2/sub-dir1/file1 /root/dir2/sub-dir2/file1 /root/dir2/sub-dir2/file2 and so on... Please advice. Thanks in advance. Regards, Tipsy. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I guess this should work. Let me know if you have a better way to do it.
find . -type f Regards, Tipsy. |
|
#3
|
|||
|
|||
|
# All files in the current directory and subdirectories
find . -type f | sed -e "s@^\.@$PWD@" # All files in the current directory (no subdirectories) find ./* -prune -type f | sed -e "s@^\.@$PWD@" # All files on your system find / -type f |
|||
| Google The UNIX and Linux Forums |