dot_files | My dot files | Configuration Management library
kandi X-RAY | dot_files Summary
kandi X-RAY | dot_files Summary
dot_files
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dot_files
dot_files Key Features
dot_files Examples and Code Snippets
Community Discussions
Trending Discussions on dot_files
QUESTION
I've made a manager for my dot files that creates sym links between each of the dot files in my dot_files/ dir and my $HOME.
I'm trying to write a script that deletes all of these specific sym links and no others.
Here's my O(n^2) solution that does the job fine.
...ANSWER
Answered 2019-Apr-03 at 19:19bash
has associative arrays. We can store a unique identifier for each dotfile and then check the home directory files for a match.
I believe this is O(m+n) compared to your original O(m*n).
Here's an example using inode:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dot_files
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page