1

How to pass "*" in command line arguments.?

view story
linux-howto

http://stackoverflow.com – see i have below code #include<stdio.h> int main ( int argc, char *argv[] ) { int i=0; for(i=1;i<argc-1;i++) printf(" %s \n",argv[i]); return 0; } compiles and run as follows gcc test.c ./a.out 1 * 2 and now its o/p is scarred..! o/p is : 1 a.out Desktop Documents Downloads ipmsg.log linux-fusion-3.2.6 Music Pictures Public Templates test.c (HowTos)