Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux command: find
(view source)
Revision as of 15:47, 9 August 2018
371 bytes added
,
15:47, 9 August 2018
no edit summary
Line 5:
Line 5:
== find case ignoring ==
== find case ignoring ==
find . -iname "fileName.txt"
find . -iname "fileName.txt"
+
+
== find video files ==
+
find . -type f -exec file -N -i -- {} + | grep video
+
or if you only want the filenames ...
+
find . -type f -exec file -N -i -- {} + | sed -n 's!: video/[^:]*$!!p'
+
+
== Exclude extension ==
+
find Vídeos/popcorntime/ -type f -not -name "*.torrent" -not -name "*.jpg" -not -name "*.srt" -not -name "*.txt" -exec mv "{}" /media/rafa/HM_030/video/ \;
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version