10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
2. Shell Programming and Scripting
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)
Discussion started by: Max89
3. Shell Programming and Scripting
I'm almost pulling out my hair trying to figure out what's wrong with this... there's no reason I can see that it shouldn't be working. It seems that the code acts as though the conditional statement is true no matter what - I've even tried removing the negation operator, but it always goes into... (5 Replies)
Discussion started by: wildbluefaerie
4. UNIX for Dummies Questions & Answers
rm: Unable to remove directory /mnt/users/test/logs/: File exists
drwxrwxrwx 6 test echo 4096 Jul 3 22:36 ..
-rwxrwxrwx 1 test echo 97692804 Jul 3 22:36 .nfsDFA4
drwxrwxr-x 2 test echo 4096 Jul 3 23:00 .
M not able to delete... (4 Replies)
Discussion started by: solitare123
5. Shell Programming and Scripting
I'm writing a shell script that will create a folder if it does not exist yet. Here's the script: (this if statement is inside a while loop)
if ! test -d folderName
However, after the folder Pics has been created, every time the... (3 Replies)
Discussion started by: trivektor
i am using solaris 5.10. i can create two different files "test" and ".test" in the same directory. now suppose i want to change the attribute of the hidden file .test to visible is it possible???
since "." is just an attribute to mark a file hidden why is unix allows creation of "file" and... (14 Replies)
Discussion started by: vikashtulsiyan
7. Shell Programming and Scripting
I've been using the following code to make sure a shell script only runs under a "safe" directory.
#..........................................................#... (8 Replies)
Discussion started by: hackware
8. UNIX for Advanced & Expert Users
I am trying to test if there are files in a directory and if theres i want to get a list. Any ideas? Thanks in advance (1 Reply)
Discussion started by: RSAM2007
9. Shell Programming and Scripting
plz let me how to test output of "tail -1 filelist.lst" is file or directory.
-Bali Reddy (1 Reply)
Discussion started by: balireddy_77
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)
Discussion started by: santuna