Search Results

Search: Posts Made By: graymj
2,230
Posted By graymj
Thanks Guy's I had problems trying to get ...
Thanks Guy's
I had problems trying to get
awk -F "[, ]" 'NR == FNR {if($1 == "TLAXIS/") {sub("TLAXIS/", X); v = $0}; next} $0 ~ /^GOTO/ && $(NF - 1) == "PT" {sub(" PT.*", v)}1' file file
...
2,230
Posted By graymj
COOL! Trying it now! Question, can this be done...
COOL! Trying it now! Question, can this be done with sed or grep? Just trying to understand various method! Thank in Advance! -mike
2,230
Posted By graymj
EXAMPLE
Summery, every value from ",-0.0841797,-0.9622495,0.2588236" is inserted at end on every line that starts with "GOTO"

SPINDL/1200
TLAXIS/,-0.0841797,-0.9622495,0.2588236
RAPID...
2,230
Posted By graymj
Grep or sed to search, replace/insert chars!
HI All
Im trying to come up with an approach to finding a string, using a portion of that string to insert it on lines starting with the value "GOTO" appending to end of line after removing PT's (...
Showing results 1 to 4 of 4

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