get list of directories bash
To get a list of directories in C using bash, you can use the following command:
#include <stdio.h>
#include <stdlib.h>
int main() {
system("ls -d */");
return 0;
}
To get a list of directories in C using bash, you can use the following command:
#include <stdio.h>
#include <stdlib.h>
int main() {
system("ls -d */");
return 0;
}