What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-30 13:00:01
windows shortcuts
[Windows key] # Open the start menu [Windows-Taste] + [E] # Start Explorer [Windows key] + [R] # Run dialog [Windows key] + [pause] # System properties (= Control Panel \ System and Security \ System) [Windows key] + [L] # Locks the computer ## Arra... Add solution -
Shell/Bash 2021-08-30 12:14:02
bash list all files that contain pattern
# Basic syntax: ls search_pattern # Example usage: # Say you have a directory containing the following files and you only # want to list .png files file1.txt file2.txt image1.png image2.png # Typing: ls *.png # Will return: --> image1.png image2.png Add solution -
-
Shell/Bash 2021-08-30 11:10:01
bash make directories using specific text from filenames
# Basic syntax: for file in /input/directory/search_pattern; do substring=${file:start#:length} mkdir "/output/directory/prepended_text_${substring}_appended_text" done # Where: # - The search_pattern should return the set of files you want t... Add solution -
Other 2021-08-30 10:09:02
find files windows
# For finding file use dir followed by string matching file name or regex # pattern and add "/s" for searching recursively in subfolders: dir /s "regex_or_file_name" # For finding file contained in a searched directory use "/b&quo... Add solution -
Shell/Bash 2021-08-30 09:06:02
bash perform operation on all files in directory
# Basic syntax: find . -maxdepth 1 -type f -exec your_command {} \; # Where: # - . specifies the current directory (this can be changed to any # directory) # - -maxdepth 1 prevents find from searching directories recursively # - -type f specifies that th... Add solution -
-
Other 2021-08-30 02:27:02
android add search to action bar
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { val menulayout = inflater.inflate(R.menu.yourmenu,menu) val searchManager = requireContext().getSystemService(Context.SEARCH_SERVICE) as SearchManager val se... Add solution