Search Results

Search: Posts Made By: Nexeu
13,036
Posted By Nexeu
It works! Thank you so much Scrutinizer! So...
It works! Thank you so much Scrutinizer!

So the solution is as follows:
tag -0 -f "Note" . | xargs -0 -I {} rename 's|(.*)/|$1/.|' {}
13,036
Posted By Nexeu
I tired : tag -0 -f "Note" . | xargs -0 -I {}...
I tired :
tag -0 -f "Note" . | xargs -0 -I {} rename -n 's|.*/|$0/.|' {}

It starts to add the '.' to the file, however it removed out the subdirectory completely like this:...
13,036
Posted By Nexeu
Hi Scrutinizer, Thanks for the quick...
Hi Scrutinizer,

Thanks for the quick response.

for tag command :
tag -0 -f "Note" . | xargs -0 -I {} echo {}

It only echo out a list of files including directories. Something like this...
13,036
Posted By Nexeu
find files in sub dir with tag & add "." at the beginning [tag -f "Note" . | xargs -0 {} mv {} .{}]
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 09:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy