What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 12:53:02
bash errors: syntax error - ambiguous - file
$ echo hello > bash: syntax error near unexpected token `newline` $ echo hello > ${NONEXISTENT} bash: ${NONEXISTENT}: ambiguous redirect $ echo hello > "${NONEXISTENT}" bash: : No such file or directory Add solution -
-
Shell/Bash 2021-08-28 10:06:01
setting up C# project with VSCode
# Setting up C# project with VSCode: # 1. Open File Explorer and create a folder on your disk, then select the # file path and to open the Command Prompt at the current path, type: cmd # (For the purpose of this guide, the folder is called 'MyFol... Add solution -
C++ 2021-08-28 10:01:01
print all file names in directory cpp
#include <string> #include <iostream> #include <filesystem> namespace fs = std::filesystem; int main() { std::string path = "/path/to/directory"; for (const auto & entry : fs::directory_iterator(path)) std:... Add solution