Search results

  1. L

    Merging two csv files into one

    So I have two csv files that have a common key. gnu join by itself can produce lines of output for records which have a common key. What I would love to have happen, however, is when I use the -a 1 -a 2 , the program produce -e's values for each field of the merged output for the missing line...
  2. L

    Massaging text files

    I have a file with this format: Title 1 - Character Name - Character Name2 - CharacterB Name3 Title 2 - Character Name2 Title 3 - CharacterC Name4 and what I would like to end up with is a file like this: Character Name,Title 1 Character Name 2,Title 1,Title 2 CharacterB Name 3,Title 1...
  3. L

    vi map help sought

    My goal is to do the following vi actions in a map Find the 4th (or 5th if necessary) occurrence of the | symbol add to - or change - the letters between the 4th and 5th | symbols to XXX Seems like it would be simple. However, map Q 4f|lcwXXX^[ where the real command ends in an escape...
  4. L

    Trying to "accumulate" data - looking for help

    I have a data file of the basic form: aaa1 -> b -> c bbb2 -> b ccc3 -> d and what I want as a result is something like b,aaa1,bbb2 c,aaa1 d,ccc3 So I am trying this code: typeset -A CI if [ "$#" -eq 0 ] ; then echo "USAGE: $0 input_file" >&2 exit 1 fi prefix="--*> " exec <...
Top