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 Chris Miller 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. seifou45

    split row by group of ten in each row splited

    hi : 100000000000000000000 thanks . it works fine
  2. seifou45

    split row by group of ten in each row splited

    Hi The problem is located in second Line They must follow the first one for All lines splitted after 10th .
  3. seifou45

    split row by group of ten in each row splited

    hi mikrom: it works fine but I did a big mistakes in my description of my texte file . sorry I didn't pay attention . have a look on the newest data ...
  4. seifou45

    split row by group of ten in each row splited

    Hi mikrom: Sorry for my delay I'll test it and Get back To you. Thanks a lot of.
  5. seifou45

    split row by group of ten in each row splited

    Hi mikrom: I have changed awk code as your recomandation but I got only two lines : awk -F'[&]' -v RS='[;\n]' 'NF>1{k=$1} {gsub(/;/, "", $NF);print k,",PUT,Uid=",$NF,";"}' tek.txt result after execution : ADD=ARGX,FID,Uid=100-31-PAX ,PUT,Uid= 100-447-PAX ; ADD=ARGX,FID,Uid=100-31-PAX...
  6. seifou45

    split row by group of ten in each row splited

    hi again: I want to split my line after (10th of &). my awk code create 20 lines , I want only two which conatin 10 of & and so on . awk -F'[,]' -v RS='[&\n]' 'NF>1{k=$1} {gsub(/.{10}/,"& ");gsub(/;/, "", $NF);print k,",PUT,Uid=",$NF,";"}' tek I have an extra Uid= in first line after...
  7. seifou45

    split row by group of ten in each row splited

    hi all: I have a thousand of variable rows in texte file , I took an examlpe of one row : ADD=ARGX,FID,Uid=100-31-PAX&100-41-PAX&100-57-PAX&100-65-PAX&100-77-PAX&100-119-PAX&100-175-PAX&100-194-PAX&100-225-PAX&100-257-PAX&100-262-PAX&...
  8. seifou45

    parse text file

    hi Mikrom: sorry for my late response I was sick . the scipt works fine thanks a lot of . just last thing can you explain please the script . for example : data_nr it is a variable assigned to NR number of recored and in the next block NR == data_nr+1 new assignement with commparison...
  9. seifou45

    parse text file

    hi all: I have just registred to start a new thread regarding use of awk to parse text file and I' m new in awk language I took a portion of data from texte file : DATA DATA GHR1 BRAND...

Part and Inventory Search

Back
Top