Use Unix commands in Windows
Developers who are more used to Unix style operating systems may sometimes end up in organizations where Windows is the preferred OS. And these developers terribly miss powerful features of Unix based editors (vi), text processors (awk, sed) etc.
While there are software available which can provide functionality similar to Linux distributions on Windows, if may not be always possible to install them on your work PC. This is where docker comes to your rescue. As long as you have docker on your machine, you should be able to leverage the power of Unix.
docker run -it -v C:/for_docker: /var bash
The above command uses the 'bash' image to run the Unix environment. It mounts the 'C:/for_docker' folder on the Windows machine to the '/var' folder of the Unix container. The '-it' options makes you logged into the container after the command is run.
Move the files which you might want to be processed with Unix commands to the 'C:/for_docker' and they will be available in the '/var' folder of the container ready to be used.
Last updated
Was this helpful?