Sunday 15 January 2012

regex - Copy/Paste Text with Conditional Formatting -


I have prepared a text file along with the path of files used in a specific project on my system.
Here's an example to generate text file

 % C / BL_PROJECTS / PRJ_BMB / investment / REEL_06 / MISSING_SCAN / 240,413 / Promise Pegasus / BMB / RED Epic Data / r3d / day 81 / 20-10-12 / CAM B / B 184_1020 RM / B 184_1020RM RDM / B 184_C002_1020JV.RDC / B 184_C002_1020JV_001.R3D% C / BL_PROJECTS / PRJ_BMB / INPUT / REEL_06 / MISSING_SCAN / 240413 / Promise Pegasus / BMB / Red Epic Data / R 3D / Day 81 / 20-l0-l2 / CAM a / A211_102080 / A211_102080.RDM / A211_C002_1020W8.RDC / A211_C002_1020W8_001.R3D   

I have the orders in a way that Second lesson from I am trying to find the place of the generated source code with the fl-cp-sync "/ segment / images / front of each line and the output path attached at the end of each row "/ section / images / SOMEOTHERPATH ...

for example:

  fl- CP -Sync" / section / images / BL_PROJECTS / PRJ_BMB / investment / REEL_06 / MISSING_SCAN / 240,413 / Pegasus / BMB from promi / Red bulky figure / R 3D / Day 81 / 20-l0-l2 / CAM / BB L84_l020 RM / B L84_l020armkardim / B 184_C002_1020JV.RDC / B 184_C002_1020JV_0 01.R3D "" / vol / images / SOOOTHERPATH / BL_PROJECTS / PRJ_BMB / INPUT / REEL_06 / MISSING_SCAN / 240413 / Promise Pegasus / BMB / Red bulky figure / R 3D / Day 81 / 20-l0-l2 / CAM / BB 184_1020 rm / b 184_1020rm rdm / b 184_C002_1020JV.RDC / b 184_C002_1020JV_001.R3D "FL-CP-sync" / section / images / BL_PROJECTS / PRJ_BMB / investment / REEL_06 / MISSING_SCAN / 240413 / promise Pegasus / BMB / Red Epic Figures / r3d / day 81 / 20-10-12 / cam A / A211_102080 / A211_102080.RDM / A211_C002_1020W8.RDC / A211_C002_1020W8_001.R3D "" / Volume / Images / SOMEOTHERPATH / BL_PROJECTS / PRJ_BMB / INPUT / REEL_06 / MISSING_SCAN / 240413 / Promise Pegasus / B MB / Red bulky figure / R 3D / Day 81 / 20-l0-l2 / CAM A / A 2ll_l02080 / A 211_102080 .RDM / A211_C002_1020W8.RDC / A211_C002_1020W8_001.R3D "  

There Is any way that I can use this terminal or a batch script easily using SSH?

You can use GNU:

  sed -r -e's # ^% C (. *) # "/ Section / i Mages \ 1" # '-e' #. * # Fl-cp -sync & amp; & Amp; # 'File.txt    

No comments:

Post a Comment