Search Results

Search: Posts Made By: Nexeu
11,583
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/.|' {}
11,583
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:...
11,583
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...
11,583
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...
11,275
Posted By Nexeu
File line 3 bad format: κ.txt File line 3 bad...
File line 3 bad format: κ.txt
File line 3 bad format: μci.txt
File line 3 bad format: μg.txt
File line 3 bad format: μm.txt
Processing list file: "../Syllable/list0H"
Processing list file:...
11,275
Posted By Nexeu
OS X Yosemite Version 10.10.3 MacBook Pro...
OS X Yosemite
Version 10.10.3

MacBook Pro (Retina, 13-inch, Late 2013)
Processor 2.8 GHz Intel Core i7
Memory 16 GB 1600 MHz DDR3
Graphics Intel Iris 1536 MB

I've installed these using...
11,275
Posted By Nexeu
I don't think I have -t option on mv either ...
I don't think I have -t option on mv either


Processing list file: "../Syllable/list0H"
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
mv:...
11,275
Posted By Nexeu
OMG that's a lot of work. THANK YOU SO MUCH! I...
OMG that's a lot of work. THANK YOU SO MUCH! I will give it a try now :D

---------- Post updated at 03:01 AM ---------- Previous update was at 02:36 AM ----------

I have this verbose list below...
11,275
Posted By Nexeu
What if we execute commands one by one, will it...
What if we execute commands one by one, will it be easier? There was a time I was executing many different command lines by writing them all in a text editor and saved it as Unix Executable File . I...
11,275
Posted By Nexeu
Sorry. It should be left behind in current...
Sorry. It should be left behind in current folder. :o 0H should be those that contain [] but no hyphens :)
11,275
Posted By Nexeu
Yes I wanted...
Yes I wanted [noo-muh-noh-uhl-truh-mahy-kruh-skop-ik-sil-i-koh-vol-key-noh-koh-nee-oh-sis, nyoo-] inside 18H, overlooking that there was one more - after the , :o . The files normally doesn't have ,...
11,275
Posted By Nexeu
Thank you so much for very thoughtful questions....
Thank you so much for very thoughtful questions. :D It makes it easier put into words now :)

Yes I would like to count hyphens just in between the [] on the 3rd line. :o

If the filename is just...
11,275
Posted By Nexeu
Oh, sorry I kind of miscounted the hyphens :D and...
Oh, sorry I kind of miscounted the hyphens :D and yes I was basically too focused just on the word that I forgot to count other hyphens on the line as well.
What I really wanted to do was to sort...
11,275
Posted By Nexeu
@RudiC : You mean I should regroup them by moving...
@RudiC : You mean I should regroup them by moving into folders like aa, ab, ac and etc?

@Don Cragun : I have a word file named Pneumonoultramicroscopicsilicovolcanoconiosis.txt which has 18...
11,275
Posted By Nexeu
I think that make sense :D . I only seem to have...
I think that make sense :D . I only seem to have 14 files that starts with "file".
I tried the command and I have this result. I probably have to use "for file in" or "find" [Sorry my coding...
11,275
Posted By Nexeu
Sorry, I am trying to move file containing more...
Sorry, I am trying to move file containing more than two hyphens - at the 3rd line of each files to a new directory as a try-out first. But the commands seemed to be also moving files less than two...
11,275
Posted By Nexeu
I didn't try the one-by-one command method as...
I didn't try the one-by-one command method as there is too many, however, I'd tried :
awk 'FNR==3 && 1<gsub ("-", "&") {printf "%s%c", FILENAME, "\000"}' file* | xargs -I {X} -0 mv {X}...
11,275
Posted By Nexeu
Hi I am so so sorry for the late reply guys....
Hi

I am so so sorry for the late reply guys. I lost the file and it took me quite awhile to retrieve those back as the internet is slow here.

So,

Here's the info of the file size :...
11,275
Posted By Nexeu
There seems to be error. Got to do with mv...
There seems to be error. Got to do with mv command.

Untitleds-MacBook-Pro:~ Nexeu$ awk 'FNR==3 && 1<gsub ("/", "&") {printf "%s%c", FILENAME, "\000"}' /Users/Nexeu/Documents/TEST/killer.txt |...
11,275
Posted By Nexeu
Untitleds-MacBook-Pro:~ Nexeu$ awk 'FNR==3 &&...
Untitleds-MacBook-Pro:~ Nexeu$ awk 'FNR==3 && 1<gsub ("/", "&") {printf "%s%c", FILENAME, "\000"}' /Users/Nexeu/Documents/TEST/killer.txt | xargs -0 echo mv -t /Users/Nexeu/Documents/IPA
mv -t...
11,275
Posted By Nexeu
Oh no :( my awk doesn't seem to work either. I...
Oh no :( my awk doesn't seem to work either. I don't think I could achieve doing one by one as it's about 690,000 files :S I guess I'm doomed. :|
11,275
Posted By Nexeu
Move File Containing More Than two "-" at 3rd Line To New Directory
Hi Guys

I am trying to move file containing more than two - at the 3rd line of each files to a new directory. The files are something like this :

****** Text ******

[text-text-text]
/text/...
2,377
Posted By Nexeu
It worked perfectly, thank you so much :D
It worked perfectly, thank you so much :D
2,377
Posted By Nexeu
Split Every Line In Txt Into Separate Txt File, Named Same As The Line
Hi All

Is there a way to export every line into new txt file where by the title of each txt output are same as the line [or its content]?

I have this txt files containing names:

Kandra...
5,098
Posted By Nexeu
Yes, I saved it as MS-DOS txt or Window...
Yes, I saved it as MS-DOS txt or Window Formatted. I tried both but couldn't do sed. Maybe I will try .csv next time :)
Showing results 1 to 25 of 43

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