in winxp
del *.* /Q /S
Write permission (w)
write a lex program to delete space from the program
In UNIX, this is the "sticky bit"... if set on a directory, only the owner of the directory, the owner of the individual file, and the superuser are allowed to delete files created in that directory. If not set, anyone with write permission on the directory can delete or rename files in it.
see : Write_a_shell_program_using_the_if-the-else_to_test_whether_a_variable_name_is_a_directory_or_a_file
Use function unlink to erase files.
mere ko batao yaar mere ko to khud ko ne pta
This is not strictly true; the way the program may have been written it may save files in the bin directory but that is not usual or standard. When you write a program to save files to a directory you can specify a relative or an absolute path name, and in that way specify exactly where you want the file to be saved. It is all part of the I/O system API.
# shell script example if [ -f $1 ]; then echo $1 is a file elsif [ -d $1 ]; then echo $1 is a directory fi
new->next = current; current->next = new;
write a program of phone dirictory
WHAT I NEED DONE in .bash_profile define a function go_show, that willGo to a specific directoryPrint your current locationPrint the contents of your current directoryThe directory this function takes you to will be specified as an argument to the function on the command line. You will need to use a positional parameter to do this
You can write them in whatever directory you want. You need to compile them with your kernel, however.