Horje
how to remove all files except one in linux Code Example
how to remove all files except one in linux
# if you are using a loop

shopt -s extglob

rm -rf !("abc.txt" | "abc.log" )  # others will be removed except these two

shopt -u extglob 




Shell

Related
debian give write permission Code Example debian give write permission Code Example
tar extract to folder Code Example tar extract to folder Code Example
Error: That port is already in use. Code Example Error: That port is already in use. Code Example
how to push code to another remote git repository Code Example how to push code to another remote git repository Code Example
how to make a list bash Code Example how to make a list bash Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8