Mommy, I found it! -- 15 Practical Linux Find Command Examples
Mar 04, 2009, 21:03 (0 Talkback[s])
(Other stories by Sathiya Moorthy)
[ Thanks to An Anonymous Reader for
this link. ]
"5. Inverting the match.
Shows the files or directories whose name are not MyCProgram.c
.Since the maxdepth is 1, this will look only under current
directory.
"# find -maxdepth 1 -not -iname "MyCProgram.c"
.
./MybashProgram.sh
./create_sample_files.sh
./backup
./Program.c
"6. Finding Files by its inode Number.
Every file has an unique inode number, using that we can identify
that file. Create two files with similar name. i.e one file with a
space at the end.
"# touch "test-file-name"
# touch "test-file-name "
[Note: There is a space at the end]
"# ls -1 test*
test-file-name
test-file-name"
Complete Story
Related Stories:
- Linux GUI diff utilities a visual tour(Mar 02, 2009)
- Linux tips every geek should know(Mar 02, 2009)
- Using regular expressions in Vim(Feb 28, 2009)
- Ten Cool Coreutils Commands(Feb 27, 2009)
- Back To Basics: Getting File Information Using Perl's Stat Function(Feb 26, 2009)
- Linux - Find latest file in a directory(Feb 26, 2009)
- Bash version 4.0 released(Feb 24, 2009)
- Make Vim as Your Bash-IDE Using bash-support Plugin(Feb 20, 2009)
- Bash Tricks I: (very) Repetitive tasks(Feb 18, 2009)
- Command-Line-Fu(Feb 18, 2009)
- Organizing Files by File Type
(Feb 14, 2009)
- Wrap text using linux fold(Feb 13, 2009)