Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. keungn

    How to replace append a prefix and suffix with sed/awk

    many thanks. This really helps.
  2. keungn

    How to replace append a prefix and suffix with sed/awk

    PH - your solution partially working. The prefix and suffix works Here's the input MTR16016002001000000000000000OA 2100670 000000000010000000100470000000NN NNE 000 E0000001 MTR16016002001000000000000000CA 909079 000000000290000002900570000000NN NNE 000...
  3. keungn

    How to replace append a prefix and suffix with sed/awk

    Oops. forgot the attachment Here's the script #!/usr/bin/ksh #set -x MVRSFile=$1 MDMS_MVRS_Fileformat=$2 dateext=`date '+%Y%m%d%H%M%S'` #echo $dateext > GoodOutput.log #echo $dateext > BadOutput.log while read line do # do somthing on each $line # save each line in a...
  4. keungn

    How to replace append a prefix and suffix with sed/awk

    Thx PHV. I've attached the script and test file with your solution and getting an error. awk:0602-533 Cannot find or open file MTR16016002001000000000000000OA.
  5. keungn

    How to replace append a prefix and suffix with sed/awk

    I've following lines in a file and I need to suffixed with "E" to the 2nd field if the length of 2nd field is greater then 7 digits. For Example: MTR16016002001000000000000000OA 2100670 000000000010000000100470000000NN NNE 000 E0000001 change to...

Part and Inventory Search

Back
Top