1) to make the file visible. Please remove the . from the file name.
2) when you remove . the file name turns to file.
3) but there is already a file with the name "file".
4) So you have to rename the .file to some other name.
I Hope there is no other soln. than renaming.
Because Unix directory does not supports 2 files with same name
so you can append a symbol like % infront of .file like %file
or you can rename to another file.
to make it visible.
Is there a way for a bash script to test if it can cd into a directory without actually attempting to cd into it?
I am looking for something along the lines of:
#code to execute
except in this case I don't want to test if the directory exists; what I want is to test... (8 Replies)
I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
This is the code:
while test 1 -eq 1
if test $a = stop
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
I'm trying to test if a directory specified in a script parameter is available or not.
I wrote a little code to do so, but there's a problem because I receive an error message.
#Verify command parameter
echo 'Incorrect command parameter'
echo... (3 Replies)