find_ext : fix for hidden files.
This commit is contained in:
parent
392da9769f
commit
4c66a9c553
|
@ -486,12 +486,18 @@ Command|Description
|
||||||
---|---
|
---|---
|
||||||
`ffmpeg_mux_audio <SOUND> <RESULT>`|Mux external audio into one container with video (replaces original audio). Run inside dir with original video. <SOUND> names should be the same for each video.
|
`ffmpeg_mux_audio <SOUND> <RESULT>`|Mux external audio into one container with video (replaces original audio). Run inside dir with original video. <SOUND> names should be the same for each video.
|
||||||
|
|
||||||
## Files.
|
## File.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`o <FILE>`|Open file with the default GUI app.
|
`o <FILE>`|Open file with the default GUI app.
|
||||||
|
|
||||||
|
## Find.
|
||||||
|
|
||||||
|
Command|Description
|
||||||
|
---|---
|
||||||
|
`find_ext`|Find all file extensions recursively.
|
||||||
|
|
||||||
## Fix.
|
## Fix.
|
||||||
|
|
||||||
Contains simple fixes for various issues.
|
Contains simple fixes for various issues.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Find all file types recursively.
|
# Find all file extensions.
|
||||||
find_types()
|
find_ext()
|
||||||
{
|
{
|
||||||
local types=($(find -type f | sed "s/.*\.//"))
|
local types=($(find -type f | sed -e "s/.*\///" -e "s/^\.//" -e "/\./!d" -e "s/.*\.//"))
|
||||||
echo "${types[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '
|
echo "${types[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue