Below shown are the examples for using Regular Expression in 'find' command:
[ashok@linuxhost workdir]$ find . -type f -regex ".*[0-9]+.txt" -print 2> /dev/null
./1322143.txt
./anything_134.txt
./12345_837.txt
./something10984.txt
[ashok@linuxhost workdir]$ find . -type f -regex ".*/[0-9]+.txt" -print 2> /dev/null
./1322143.txt
[ashok@linuxhost workdir]$
[ashok@linuxhost workdir]$ find . -type f -regex ".*[0-9]+.txt" -print 2> /dev/null
./1322143.txt
./anything_134.txt
./12345_837.txt
./something10984.txt
[ashok@linuxhost workdir]$ find . -type f -regex ".*/[0-9]+.txt" -print 2> /dev/null
./1322143.txt
[ashok@linuxhost workdir]$
Hi are using Wordpress for your site platform? I'm new to the blog world but I'm
ReplyDeletetrying to get started and create my own.
Do you require any coding knowledge to make your own blog?
Any help would be greatly appreciated!
my webpage - this is great
My website > read more here
This blog is supported by Google, you can use it with your google account.
Deletethank you for sharing your blog. visit our website.
ReplyDeleteLinux Admin Training in Austin