C3Fire

Difference between revisions of "Config/Session Example"

From C3LearningLabs
Line 57: Line 57:
 
<br>
 
<br>
 
<br>
 
<br>
−
 
−
= Copy existing configuration =
 
−
 
−
== Linux Commands==
 
−
 
−
===Rename multiple files in folder===
 
−
:Install Linux: <code>sudo apt-get install mmv</code><br>
 
−
:Install Mac: <code>brew install mmv</code><br>
 
−
 
−
:<code>mmv <FROM>\* <TO>\#1</code><br>
 
−
 
−
Example:<br>
 
−
<source>$ ls
 
−
a1.txt a2.txt a3.txt
 
−
mmv a\* b\#1
 
−
ls
 
−
b1.txt b2.txt b3.txt</source>
 
−
 
−
Example:<br>
 
−
 
−
:;Mac
 
−
:<code>cd /Users/regogranlund/dev/C3Systems/C3Systems/resources/C3Fire/SessionDef/P4FWRU-1</code><br>
 
−
:<code>mmv P8F3WR3U2\* P4FWRU\#1</code>
 
−
 
−
:;Linux
 
−
:<code>cd /home/rego/dev/C3Systems/C3Systems/resources/C3Fire/SessionDef/P4FWRU-1</code><br>
 
−
:<code>mmv P8F3WR3U2\* P4FWRU\#1</code>
 
−
 
−
:;WSL Window Subsystem Linux
 
−
:<code>cd /mnt/c/dev/C3Systems/C3Systems/resources/C3Fire/SessionDef/P4FWRU-1</code><br>
 
−
:<code>mmv P8F3WR3U2\* P4FWRU\#1</code>
 
−
 
−
===Replace string in multiple files===
 
−
 
−
:<code>sudo find . -type f -name "*.txt" -print0 | xargs -0 sed -i "" -e 's/[FROM]/[TO]/g'</code>
 
−
 
−
Example:<br>
 
−
 
−
:;Mac
 
−
:<code>cd /Users/regogranlund/dev/C3Systems/C3Systems/resources/C3Fire/SessionDef/P4FWRU-1</code>
 
−
:<code>sudo find . -type f -name "*.con*" -print0 | xargs -0 sed -i "" -e 's/P8F3WR3U2/P4FWRU/g'</code>
 
−
 
−
 
−
:'''Linux'''  (Works but give error message "sed: can't read : No such file or directory")
 
−
:<code>cd /Users/regogranlund/dev/C3Systems/C3Systems/resources/C3Fire/SessionDef/P4FWRU-1</code>
 
−
:<code>sudo find . -type f -name "*.con*" -print0 | xargs -0 sed -i "" -e 's/P8F3WR3U2/P4FWRU/g'</code>
 

Revision as of 10:30, 26 September 2023


Demo Configurations

The following demo configurations are included in the installation


FireFighting
P1-F4
P2-F8
LogisticsWater
P1-F4W2
LogisticsWaterFuel
P1-F4W1G1
FireBreak
P1-F4B1
P1-F8B4
RescuePersons
P1-F2R1T1
UAV
P1-F4UAV1
P2-F4UAV1



Project Configurations

The following projects configurations are included in the installation

}