tag:blogger.com,1999:blog-27515264053865803742024-03-13T11:10:16.742-04:00unsigned_nerdunsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.comBlogger387125tag:blogger.com,1999:blog-2751526405386580374.post-63934554870596545302024-03-08T00:48:00.002-05:002024-03-08T00:49:09.643-05:00How to format alternate rows with different background colors in LibreOffice Calc?<div dir="ltr"><a href="https://ask.libreoffice.org/t/how-to-apply-alternate-row-background-colors-and-how-to-apply-this-in-tables-that-already-have-conditional-formatting/53045/2">https://ask.libreoffice.org/t/how-to-apply-alternate-row-background-colors-and-how-to-apply-this-in-tables-that-already-have-conditional-formatting/53045/2</a></div> unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-73455516019034027122024-03-08T00:48:00.001-05:002024-03-08T00:48:39.736-05:00How to format alternate rows with different background colors in LibreOffice Calc?<a href="https://ask.libreoffice.org/t/how-to-apply-alternate-row-background-colors-and-how-to-apply-this-in-tables-that-already-have-conditional-formatting/53045/2">https://ask.libreoffice.org/t/how-to-apply-alternate-row-background-colors-and-how-to-apply-this-in-tables-that-already-have-conditional-formatting/53045/2</a>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-49547917203054887562024-02-03T23:56:00.001-05:002024-02-03T23:56:17.530-05:00How to reference the previous string in Zsh command-line<div>In `zsh`, you can get the last string in a list of strings separated by spaces by using parameter expansion. Here's a simple command to achieve this:</div><div><br></div><div>```zsh</div><div># Assuming a list of strings separated by spaces</div><div>list_of_strings="string1 string2 string3 string4"</div><div># Use parameter expansion to get the last string</div><div>last_string=${(s: :)list_of_strings}[-1]</div><div><br></div><div># Print the last string</div><div>echo $last_string</div><div>```</div><div><br></div><div>In this example, `(s: :)` is a parameter expansion flag that splits the variable `list_of_strings` on spaces, treating it as an array. `[-1]` then accesses the last element of this array.</div><div><br></div><div>To put this into a function that you can use in an interactive shell to get the last string before the cursor, you can use the following `zsh` function:</div><div><br></div><div>```zsh</div><div># Define the function to get the last string before the cursor</div><div>get_last_string_before_cursor() {</div><div> # Split LBUFFER into an array of words</div><div> local words=(${(z)LBUFFER})</div><div> # Get the last word</div><div> local last_word=${words[-1]}</div><div> # Print the last word</div><div> echo $last_word</div><div>}</div><div><br></div><div># Create a ZLE (Zsh Line Editor) widget that binds the function</div><div>zle -N get_last_string_before_cursor_widget get_last_string_before_cursor</div><div><br></div><div># Bind the widget to a keyboard shortcut, for example, Ctrl + t</div><div>bindkey '^T' get_last_string_before_cursor_widget</div><div>```</div><div><br></div><div>Add this function to your `.zshrc` file. After reloading your shell, you can press `Ctrl + t` to print the last string before the cursor on the command line.</div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-63570782471625673452023-10-13T22:33:00.001-04:002023-10-13T22:36:03.733-04:00xdotool workaround for opening an email in conversation view in thunderbird 115.3.1<p>With a recent update of Thunderbird, I've noticed that when I open an
<br />email with conversation view (with Ctrol+Shift+O), the messages are
<br />not
properly sorted anymore. I had to click the sort-by-date menu and
<br />sort-by-thread menu, respectively, every time.
<br /> </p><p>I've written a script to automate that boring process as you can see below.
<br />
<br /> #!/usr/bin/bash
<br />
<br /> xdotool mousemove 500 500
<br /> xdotool click 1
<br /> xdotool key ctrl+shift+o
<br /> sleep 1
<br /> xdotool key --delay 100 alt+v s e
<br /> sleep 1
<br /> xdotool key ctrl+shift+o
<br /> sleep 1
<br /> xdotool key --delay 100 alt+v s t
<br /> sleep 1
<br /> xdotool key 0x002a
<br /> xdotool mousemove 500 335
<br />
<br />I store this script in dom0 and name it xdo-thread. I map this script
<br />with F5 key. Now, every time I want to see the messages in
<br />conversation
view, I simply press F5. </p><p><br /> There's one tricky part I'd like to point out. The line "xdotool
click 1" is a trick. Without it, we can't use "xdotool key". I'm not
sure what the reason is yet. Maybe it's about window focus.</p>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-36789675806430409052023-07-09T11:59:00.001-04:002023-07-09T11:59:26.830-04:00High-speed trains<div>Someone has once said “Life is a journey, not a destination.” However, for</div><div>decades, technological advancement in high-speed trains has been only focusing</div><div>on decreasing the time it takes to travel from one place to another. That’s</div><div>purely an oversight of how much quality time we can have to make bonds with</div><div>our friends, family members, the mother nature, and even ourselves while we’re</div><div>traveling on the trains.</div><div><br></div><div>We can’t deny that the most famous nation that has been developing the</div><div>fastest high-speed trains is Japan with its state-of-the-art Shinkansen, aka the</div><div>bullet train. It claims that within the next few years, their bullet train will be</div><div>able to travel at the maximum of 320 Km/h. That sounds crazy, isn’t it?</div><div>There’s also the so-called Hyperloop, an ambitious engineering project, which</div><div>was recently reintroduced to the world by SpaceX, a high-tech company owned</div><div>by one of the richest and smartest guy on earth, Elon Musk. With this tech-</div><div>nology, they aim to reach a top speed of 1,220 Km/h, which is 4 times higher</div><div>than the Japanese’s!</div><div><br></div><div>However, nowadays, more and more people are starting to see the importance</div><div>of journey and ways to spend quality time with those they love. This is exactly</div><div>how the low-speed train idea was born. Imagine you are traveling by a train</div><div>which is passing through a fantastic scenery in Hokkaido or Switzerland which</div><div>could take your breath away. I bet you wouldn’t want a high-speed train during</div><div>the trip.</div><div><br></div><div>In conclusion, we should combine both the high-speed and low-speed train</div><div>technologies into a new one called, mixed-speed train. This train will travel</div><div>fast when it is passing through dull areas and slow when it is passing through</div><div>wonderful places. I’m writing this article on a train. Next station, Changi</div><div>Airport. Thank you for reading.</div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-82152947090608935212023-06-08T23:20:00.001-04:002023-06-08T23:20:53.178-04:00I loved BG<strong>Poem</strong><br>by Langston HughesI loved my friend.<br>He went away from me.<br>There’s nothing more to say.<br>The poem ends,<br>Soft as it began—<br>I loved my friend.<div><br></div><div><strong>Poem</strong><br>by ... I loved my friend.<br>BG went away from me.<br>There’s nothing more to say.<br>The poem ends,<br>Soft as it began—<br>I loved my BG.<br></div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-20687787163662351302023-06-08T04:34:00.001-04:002023-06-08T04:34:01.088-04:00How to record video without sound on Android?<p> Line Camera + Samsung's Screen Recording (without Sound)<br /></p>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-31779785877453368312023-05-11T11:41:00.001-04:002023-05-11T11:41:53.812-04:00Was life really better?<pre class=" language-tex"><code class=" language-tex"><span class="token function selector">\begin</span><span class="token punctuation">{</span><span class="token keyword">document</span><span class="token punctuation">}</span>
<span class="token function selector">\maketitle</span>
People often talk about how life was better in the `good old days', but
how true is that? Let's look into my views of life before and after the
smartphone era.
Life was absolutely different when there was no smartphone. Your bosses
and co-workers could not easily reach out to you via instant messaging
apps after work hours or while on holidays. If they really needed to
contact you, they had to give you a call. Giving someone a call means
that it has to be a matter of utmost importance. This helped filtering
out less important or disorganized matters from reaching out to us.
Moreover, even within work hours, allowing other people to text you any
time they wish is a great distraction at work which reduces productivity
tremendously. Every time we get distracted by someone, involuntarily,
while we are working on something, it will take an average of 23 minutes
and 15 seconds to refocus <span class="token function selector">\cite</span><span class="token punctuation">{</span><span class="token keyword">lastoe20</span><span class="token punctuation">}</span>. In order to circumvent this
problem, some companies allow each employee to set his/her own
workplace-distraction-hours. Anyone who needs to talk to another person
has to check his/her schedule first.
However, I agree that there are many benefits that come with smartphone.
Things such as Duolingo, a language learning app, which allows us to
learn new languages at any time and places we want, or Google Maps,
which makes it extremely easy to travel without having to give too much
effort into planning, are really useful.
In conclusion, there are countless benefits we can get from smartphone,
but we have to be aware of the pitfalls that come with it.
<span class="token function selector">\begin</span><span class="token punctuation">{</span><span class="token keyword">thebibliography</span><span class="token punctuation">}</span><span class="token punctuation">{</span>10<span class="token punctuation">}</span>
<span class="token function selector">\bibitem</span><span class="token punctuation">{</span>lim23<span class="token punctuation">}</span> Alex Lim et al,
<span class="token function selector">\textit</span><span class="token punctuation">{</span>Constant companion: Our lives with mobile phones
https://www.straitstimes.com/multimedia/graphics/2023/05/mobile-phones-singapore/<span class="token punctuation">}</span>,
The Straits Times,
10<span class="token function selector">\textsuperscript</span><span class="token punctuation">{</span>th<span class="token punctuation">}</span> May 2023.
<span class="token function selector">\bibitem</span><span class="token punctuation">{</span>fried18<span class="token punctuation">}</span> Jason Fried et al,
<span class="token function selector">\textit</span><span class="token punctuation">{</span>It Doesn't Have to Be Crazy at Work<span class="token punctuation">}</span>,
Harper Business,
2<span class="token function selector">\textsuperscript</span><span class="token punctuation">{</span>nd<span class="token punctuation">}</span> October 2018.
<span class="token function selector">\bibitem</span><span class="token punctuation">{</span>lastoe20<span class="token punctuation">}</span> Stacey Lastoe,
<span class="token function selector">\textit</span><span class="token punctuation">{</span>https://www.themuse.com/advice/this-is-nuts-it-takes-nearly-30-minutes-to-refocus-after-you-get-distracted<span class="token punctuation">}</span>,
TheMuse.com,
19<span class="token function selector">\textsuperscript</span><span class="token punctuation">{</span>th<span class="token punctuation">}</span> June 2020.
<span class="token function selector">\end</span><span class="token punctuation">{</span><span class="token keyword">thebibliography</span><span class="token punctuation">}</span>
<span class="token function selector">\end</span><span class="token punctuation">{</span><span class="token keyword">document</span><span class="token punctuation">}</span></code></pre>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-59728784707036593562023-05-08T04:18:00.001-04:002023-05-08T04:18:41.168-04:00How to enter unicode character in Linux?You can enter unicode character in Linux by:<div><br></div><div> Ctrl + Shift + u</div><div><br></div><div>follows by the unicode number, e.g., 1F43E for the Paw Prints character.</div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-56542839320631888402023-05-07T00:21:00.001-04:002023-05-07T00:21:19.243-04:00Paw Prints in UnicodeUnicode U+1F43E 🐾<div><br></div><div>is the cat's paw print character!</div><div><br><div><br></div></div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-83558577723608295712023-04-23T08:50:00.002-04:002023-04-23T08:50:22.557-04:00Should people have animals as pets?<p> Archaeology suggests that people might first have animals, such as dogs and cats, as pets since at least 12,000 years ago. After a very long period of time, animals that have been consistently kept in captivity and selectively bred became friendly to human, unlike their wild relatives. However, how can we be certain that pets are really happy when being cared for by people?<br /> Pets provide their owners with emotional benefits. They help people cope with anxiety and stress. Elderly adults who often have less interaction with other people can find companionship with their pets. There are many examples of people who found their purpose in life after being introduced to pets.<br /> On the other hand, notwithstanding the benefits for human, pets may not really want to be kept in captivity. As a living creature, shouldn't they be allowed to decide on what they actually want? Shouldn't we allow them to live freely outside and come to our houses whenever they feel like, such as stray cats?<br /> In conclusion, we will continue to have pets because the ten thousand years of pet culture will not be able to changed easily. Therefore, we should take a good care of our pets and provide them with whatever they need to increase the chance that they will live happily in our house in return for their helps on our emotional health. "In ancient time, cats were worshipped as gods, they have not forgotten this." - Terry Pratchett.</p>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-3477147207079611792023-04-23T05:58:00.002-04:002023-04-23T08:50:33.391-04:00The camel and the cat<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/a/AVvXsEjDqMQtrFbuhZLMZ_yt9Wec1fpwhUL559K5KhtShV3_0UVLmdA13LRMmhyQDfddgeguf08DK9XkRWagWAlVJYhPp5ONC06Dk17SaF_YtbBLLF79i5LgUw89qvhvqI-EqN3AlHpMD2I7JJ5XHjhGv2GQYu61T3MsHNtHgO066mKcqO63_WpLqbFZ52Pz" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/a/AVvXsEjDqMQtrFbuhZLMZ_yt9Wec1fpwhUL559K5KhtShV3_0UVLmdA13LRMmhyQDfddgeguf08DK9XkRWagWAlVJYhPp5ONC06Dk17SaF_YtbBLLF79i5LgUw89qvhvqI-EqN3AlHpMD2I7JJ5XHjhGv2GQYu61T3MsHNtHgO066mKcqO63_WpLqbFZ52Pz" width="400">
</a>
</div><div><br></div><div><br></div><div>Once upon a time, a camel, who always obeyed the rules, was traveling through an arid desert. It was really hot and dry. The camel walked pass a few wells every day. However, every time the camel found a new well, there was always a sign warning it not to drink the water. The camel was exhausted. Day after day, it still couldn't find a well without the warning sign. The camel thought it would die from dehydration soon. One day, the camel saw another well, as always, with a warning sign. But, this time, the camel also saw a cat, who always didn't care about any rules, coming out from a nearby tunnel. The cat was also thirsty. The cat also saw the warning sign. But, the cat ignored it, went straight to the well, and drank the water. The camel was completely stunned. The camel decided to follow the cat and drank the water from the well too. After the camel had finished drinking, the camel asked the cat why the cat ignored the warning sign. The cat said the weather was really hot, the water was there to be drunk, the cat only saw what were necessary to be seen.</div><div><br></div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com1tag:blogger.com,1999:blog-2751526405386580374.post-20538993337650078492023-04-11T05:03:00.002-04:002023-04-11T05:53:56.835-04:00How to convert plain text file (.txt) into PDF via LibreOffice command-line?<div>Nowadays, major Linux distributions come with LibreOffice pre-installed. Isn't it better for text-based users to use LibreOffice's command-line tool to convert their plain text files into PDF without having to install other programs?</div><div><br></div>% libreoffice --convert-to "pdf" file.txtunsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-49883836061746039892022-08-02T08:01:00.000-04:002022-08-02T08:02:05.157-04:00How to use grep with any whitespace chars including newline?$ grep -z "k\s\+bank"
<br>
<br>
<br><a href="https://stackoverflow.com/questions/38009374/grep-any-whitespace-character-including-newline-in-single-pattern">https://stackoverflow.com/questions/38009374/grep-any-whitespace-character-including-newline-in-single-pattern</a>
<br>
<br>
<br>-unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-55263503798671353972022-07-06T04:16:00.001-04:002022-07-06T04:16:44.926-04:00How to delete a buffer in vim without losing the split window<a href="https://stackoverflow.com/questions/4465095/how-to-delete-a-buffer-in-vim-without-losing-the-split-window">https://stackoverflow.com/questions/4465095/how-to-delete-a-buffer-in-vim-without-losing-the-split-window</a>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-57194715303496652442021-12-02T00:47:00.001-05:002021-12-02T00:47:47.098-05:00vim special commands1. Search through the history of commands
<br>
<br>?
<br>ctrl+f
<br>
<br>
<br>
<br>
<br>2. Paste onto the command line
<br>
<br>ctrl+r
<br>+
<br>
<br>
<br>
<br>
<br>3. Remove a buffer
<br>
<br>:bwipeoutunsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-41703945127290872022021-10-05T23:23:00.001-04:002021-10-05T23:23:32.427-04:00How to create a new ownCloud user from command-lineOC_PASS=[password] occ user:add --password-from-env --group="[oc_group_name]" [oc_username]
<br>
<br>e.g. OC_PASS=JaiRetRes occ user:add --password-from-env --group="bestgroup" thanyaunsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-69491394001816208942021-10-02T01:19:00.001-04:002021-10-02T01:19:48.452-04:00ui.vision: click to download a csv fileonDownload | some-file.csv | yes
<br>clickAndWait | name=someBtnDownloadCSV
<br>
<br>Where some-file.csv and someBtnDownloadCSV are variables.unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-60492976972348638852021-10-01T23:54:00.001-04:002021-10-01T23:54:24.123-04:00ui.vision taking screenshotcaptureScreenshot | xyz-current
<br>localStorageExport | xyz-current.pngunsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-22311588240209770452021-05-30T05:16:00.001-04:002021-05-30T05:16:52.747-04:00Fingerbot plus<div>Fingerbot Plus: The ultimate robot to automate everything by Adaprox — Kickstarter<br></div><div><a href="https://www.kickstarter.com/projects/adaprox/fingerbot-plus">https://www.kickstarter.com/projects/adaprox/fingerbot-plus</a><br></div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-54991316387184284642021-05-25T11:10:00.002-04:002021-05-25T11:10:59.158-04:00VirtualBox Running Slow - Windows 10 - Power Mode: High Performance<p> Windows 10 Guest running on Debian Host</p><p><br /></p><p>Very slow all of a sudden</p><p><br /></p><div style="text-align: left;"><i>This time I could fix it by setting Windows 10's Power Mode to be High Performance</i></div><div style="text-align: left;"><i>This started happening for me too, after the Win 10 1803 update. Super annoying.</i></div><div style="text-align: left;"><i><br />But I found that Windows 10 Pro users can lock in the power plan using Group Policy Editor</i></div><div style="text-align: left;"><i><br />First set the power plan, but don't reboot right away.</i></div><div style="text-align: left;"><i>To do this, run CMD prompt as admin</i></div><div style="text-align: left;"><i>In the command prompt, type powercfg –restoredefaultschemes and press Enter.</i></div><div style="text-align: left;"><i>Go to Control Panel > Power Options and select "High Performance" from Control Panel > Power Options, but do not reboot the PC yet.</i></div><div style="text-align: left;"><i>Make whatever custom changes you want to your High Performance plan using Change plan settings > Change advanced power settings, but still do not reboot the PC yet</i></div><div style="text-align: left;"><i><br />Now from the taskbar search type gpedit.msc and run as admin</i></div><div style="text-align: left;"><i>This opens Group Policy Editor</i></div><div style="text-align: left;"><i>Navigate to Computer Configuration -> Administrative Templates -> System -> Power Management</i></div><div style="text-align: left;"><i>In the right hand pane double click on "Select an active power plan"</i></div><div style="text-align: left;"><i>In the window that pops up select "Enabled"</i></div><div style="text-align: left;"><i>This will allow you to then select "High Performance" from the drop down menu</i></div><div style="text-align: left;"><i>Select Apply and OK to close out</i></div><div style="text-align: left;"><i>Now reboot the PC.</i></div><div style="text-align: left;"><i><br />Now when you go to Control Panel > Power Options it will say "Some settings are managed by your system administrator", with the options below that grayed out. But you should be able to see below that it's set at High Performance, even though the option to change settings will be grayed out as it's now handled by Group Policy Editor. </i></div><div style="text-align: left;"><i><br />If you don't do the first part of these instructions which include setting your plan before using Group Policy Editor, then Group Policy Editor will just set whatever the default is for High Performance. This may not include all the power options you want. So be sure to set the power plan options first before using Group Policy Editor to lock in the changes</i></div><p style="text-align: left;"><br /><br /> </p><p>Ref:</p><ul style="text-align: left;"><li>https://silicophilic.com/virtualbox-running-slow/</li><li>https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings-winpc/windows-power-plan-will-not-changewindows10/254d2a4e-7fda-4e2b-bf98-acef8e6e0eb1<br /></li></ul>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-16779042951834797432021-03-05T04:23:00.001-05:002021-03-05T04:23:28.227-05:00How to write Thai cheque<div><a href="http://topicstock.pantip.com/social/topicstock/2009/02/U7546493/U7546493.html">http://topicstock.pantip.com/social/topicstock/2009/02/U7546493/U7546493.html</a><br></div><div><br></div>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-9443524487102341562021-02-12T07:18:00.001-05:002021-02-12T07:18:29.814-05:00How to upgrade Debian 9 (Stretch) to Debian 10 (Buster)<a href="https://phoenixnap.com/kb/how-to-upgrade-debian-9-stretch-to-debian-10-buster">https://phoenixnap.com/kb/how-to-upgrade-debian-9-stretch-to-debian-10-buster</a>unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-33322312190818089742020-12-14T09:16:00.001-05:002020-12-14T09:16:58.082-05:00how to blur image with imagemagick command line, `convert`convert week.png -filter Gaussian -blur 0x3 week-b.png && gqunsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0tag:blogger.com,1999:blog-2751526405386580374.post-45353817826586012822020-12-11T08:22:00.000-05:002020-12-11T08:23:11.037-05:00how to rsync only some sub directories* is wildcard
<br>*** means all files and directories
<br>
<br>`cat filelist`
<br>>
<br>> + 01 SomeDir/
<br>> + 01 SomeDir/08 */***
<br>
<br>`rsync -avz --delete --include-from filelist --exclude '*'
<br>/data/samba/hello/ user@10.10.1.2:synced/hello`unsigned_nerdhttp://www.blogger.com/profile/09690416211198633842noreply@blogger.com0