The Archives

  • 10.Aug.17
    Interlacing file lines shell | fernape | (0)
    Recently I needed to mix several files into one single file. The point was that I needed to interlace the files so I had all the first lines of every file followed by all the second lines and so on. Put it simply, this is what I had: fapesteguia@fapesteguia:~/test$ cat file1 file 1 row 1 file 1 row 2 file 1 row 3 file 1 row 4 file 1 row 5 file 1 row 6 file 1 row 7 file 1 row 8 file 1 row 9 file 1 row 10 fapesteguia@fapesteguia:~/test$ cat file2 file 2 row 1 file 2 row 2 file 2 row 3 file 2 row 4 file 2 row 5 file 2 row 6 file ...
  • 22.Apr.10
    Reverting to a previous version with svn (rollback) shell | pfortuny | (1)
    To rollback (that is, revert to a previous version) some files/dirs... using subversion, you need as Aral Balkan explains to Merge the previous version Commit Like this (assumming you want to roll back from version 61 to 58): pera $ svn merge r61:58 https://my.project.at.sourceforge/svnroot/project/dir1/src/ [... output ...] pera $ svn ci -m "Reverted to version 58" which is strange but works. Forget about the revert command, it has a different functionality. You may want to run pera $ svn merge --dry-run r61:58 ........ to check the changes which will take place before messing everything up.