Search Results

Search: Posts Made By: Blue Solo
900
Posted By Blue Solo
[Solved] Perform an operation to all directories
Sorry, about this thread - I solved my own problem! Thanks for taking a look.

edit by bakunin: no problem, but it would have been a nice touch to actually tell us what the solution was. This would...
1,596
Posted By Blue Solo
Replace string, grab files, rename and move
Hello there! I'm having a lot of trouble writing a script.

The script is supposed to:
1) Find all files with the name "Object.mtl" within each folder in the directory:...
3,507
Posted By Blue Solo
The problem is solved already, but thank you for...
The problem is solved already, but thank you for replying.
3,507
Posted By Blue Solo
Hmm close, but still seems to have errors: sed:...
Hmm close, but still seems to have errors:
sed: rm: No such file or directory
sed: -rf: No such file or directory
^These two errors are repeated for every Object.obj that is supposed to be removed
3,507
Posted By Blue Solo
Getting an error: find: -exec: no...
Getting an error:

find: -exec: no terminating ";" or "+"
3,507
Posted By Blue Solo
Sed files in a Directory
Hello. I need to be able to run this sed command to all files named Object.obj in subfolders named Prop00 to Prop151 (hexadecimal) in the main folder convert. Please let me know if there is a...
1,032
Posted By Blue Solo
You are a genius and I am envious of your...
You are a genius and I am envious of your abilities. It took me longer to write my original post than took you to respond with a solution.
1,032
Posted By Blue Solo
Major File Reformat
Hello, I have many lengthy files that need to be reformatted. I was hoping a sed or awk script could fix this.

Here is an example of the original format:
P0037
# Degree: 32.999981
# COMMAND: 03...
2,978
Posted By Blue Solo
Thank you so much! It finally works! :)
Thank you so much! It finally works! :)
2,978
Posted By Blue Solo
Oh wow, thanks! The tip about the DOS to Unix was...
Oh wow, thanks! The tip about the DOS to Unix was great.
So that deleted all the duplicates, but it did not rename the duplicates in the step2 to their kept duplicate.

Thanks so far!
2,978
Posted By Blue Solo
Is there a way to order all the newmtl mXXX based...
Is there a way to order all the newmtl mXXX based on map_Kd XXX.bmp so that they are all grouped together and right next to each other? This should fix the error with:
nawk '!a[$NF]++'...
2,978
Posted By Blue Solo
I installed nawk and ran this in terminal: nawk...
I installed nawk and ran this in terminal:
nawk '!a[$NF]++' RS='' /Users/user/Desktop/LevelIndices2.mtl

It returned every line of text that was in the file LevelIndices2.mtl. Am I supposed to...
2,978
Posted By Blue Solo
I opened terminal.app and pasted: awk...
I opened terminal.app and pasted:

awk '!a[$NF]++' RS='' /Users/user/Desktop/LevelIndices2.mtl
newmtl m2
Kd 1.000000 1.000000 1.000000;
Ka 0 0 0 illum 2
Ns 64
d 1.000000
map_Kd...
2,978
Posted By Blue Solo
It is running each line as a command: ...
It is running each line as a command:

MacBook-Pro:~ user$ newmtl m2
-bash: newmtl: command not found
MacBook-Pro:~ user$ Kd 1.000000 1.000000 1.000000;
-bash: Kd: command not found...
2,978
Posted By Blue Solo
I am not familiar with this. How do I use this...
I am not familiar with this. How do I use this and what will it do?
2,978
Posted By Blue Solo
Removing Duplicate Variables : SED?
I have a file that needs to index and remove all duplicate variables (keeping the first of the duplicated). Then in another file, from the index I need to find and replace all those duplicated...
Showing results 1 to 16 of 16

 

Featured Tech Videos

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