Here I give an example of simple bash if condition.
#!/bin/env bash if [ $(whoami) == "root" ]; then echo "Welcome, master..."; else echo "Welcome, student..."; fi
This is simple C code.
#include <stdio.h>
#include <unistd.h>
void PressEnterToContinue()
{
int c;
fflush( stdout );
do c = getchar(); while ((c != '\n') && (c != EOF));
}
main()
{
printf("Hello wordl");
printf("Press enter to exit");
PressEnterToContinue();
printf("Bye...");
return 0;
}
It looks gorgeous, right? :)
Test :)
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete