About 542,000 results
Open links in new tab
  1. bash - Refactor code using sed - Unix & Linux Stack Exchange

    Nov 2, 2015 · How do I write a sed script the rearranges/refactors a string of characters of a file? The contents of my file are: for(int i=0; i<old(a, 10); i++) sum += old(c*c, i*a) And I want the modified contents to look like: for(int i=0; i<new(10,0,a); i++) sum += new(i*a, c*c) Does the new () function take a variable number of arguments?

  2. Migrating Unix to Linux - Enable Sysadmin

    Apr 27, 2020 · The success of a migration from Unix to Linux is going to start with a solid investigation. There are several things on which to focus. There are two ways to approach this, and I've found a hybrid of both can yield the best results.

  3. Unix to linux migration - unix2dos - Stack Overflow

    May 23, 2012 · I am migrating my code from UNIX to LINUX and I know unix2dos command is not available in SUSE 11.0. Please let me know if. alias unix2dos='recode lat1..ibmpc' will have the same effect as that of unix2dos?

  4. replacing one word by another in an entire directory - unix

    Jun 14, 2013 · I'm refactoring some code, and I decided to replace one name by another, let's say foo by bar. They appear in multiple .cc and .h files, so I would like to change from: Foo key(); to Bar key();...

  5. Automated mass refactoring of source code. - GitHub

    The OpenRewrite project (managed by Moderne) is an open-source automated refactoring ecosystem for source code, enabling developers to effectively eliminate technical debt within their repositories.

  6. Refactoring via SHELL utilities - The UNIX and Linux Forums

    Oct 6, 2011 · We are to create a BASH script called rafactor.sh. This program takes in two (or three) arguments. A Java class name, (without the .java extension) and a "new" Java class name (again with no extension), optionally a directory may be given as an argument.

  7. Secure Oldies II: Refactoring and Make it Compile on macOS and Linux.

    May 12, 2022 · First of all we'd need to refactor out the header inclusion between Windows and Unix Headers. For that I'd create a file with #ifdef for each platform. I'll name it platform.h. The contents of this header is only platform specific header inclusion. We add needed headers and add #ifdef for WIN32 :

  8. Problem of Using 'sed' to Edit Code - Unix & Linux Stack Exchange

    Nov 4, 2019 · sum += oldmethod(b*b+i-3, i%a); This looks like it would be safer to use an IDE to refactor this code. Using regular expressions for code is dodgy. Why don't you just make oldmethod() call newmethod()? One of the arguments in your second line is i%a.

  9. Source refactoring and porting to linux - Metin2 - Metin2Dev

    Jul 12, 2016 · - Code cleanup. - C++ 11 compatibility. - Removing the obsolete/unused parts of the current source. - Refactoring the most important mechanisms (Character handling, packet handling, guild handling, status handling, etc). - Porting the source to Linux.

  10. Modernization: Developing your code migration strategy - Red Hat

    Aug 26, 2022 · When it comes to modernizing an existing code base, it comes down to one of two choices: Either embark on a total rewrite (essentially creating a whole new application), or buckle down and refactor your existing code and configuration.

  11. Some results have been removed
Refresh