10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello there,
I'm using a read-while loop to preserve the word Failed within a text file. For example, if the word Failed exist twice in a single text file, my STDOUT should re-direct to a new text file and display Failed twice.
My output is attached to this thread. I would like output to... (4 Replies)
Discussion started by: SysAdminRialto
4 Replies
2. Shell Programming and Scripting
Hi all
This is my first post. Please bear with me with all my mistakes. I started learning shell since couple of days now and this might be quite basic for all, i want to search for files in a directory containing specific string and replace it with new string. The code i wrote is quite bulky... (2 Replies)
Discussion started by: theprogrammer
2 Replies
3. UNIX for Dummies Questions & Answers
strange :)
can you tell why?:cool:
#!/bin/bash
echo " enter your age "
read age
if ; then
echo " you do not have to pay tax "
elif ]; then
echo " you are eligible for income tax "
else
echo " you dont have to pay tax "
fi (3 Replies)
Discussion started by: me.
3 Replies
4. Shell Programming and Scripting
Hi ,
I am trying to make a cron job to delete the contents of a directory in a linux environment.The contents created before 2 days should get deleted by this job.Here is what i have written :
/usr/bin/find / -name *.log -ctime +2 -exec /bin/rm -f {} \;
Is it correct....If not so,please... (9 Replies)
Discussion started by: d8011
9 Replies
5. Shell Programming and Scripting
What's the best way to delete everything in a directory, but not the directory itself, without using shell wildcards? (9 Replies)
Discussion started by: pdc
9 Replies
6. Shell Programming and Scripting
This should be an easy question for you gurus. :)
How can I create a regular expression to match all files in the current directory that have only one period in their file name, and also not contain the string "abc" before the period?
It would match:
foo.txt
foobar.log
It would not... (4 Replies)
Discussion started by: blondie53403
4 Replies
7. Solaris
Hi Guys,
I have an user's home directory set to /home/A
And A contains the following directories B & C
Is there some way in solaris by which i can prevent the directories B and C from getting deleted by the user but the contents of the directories B & C can be deleted ?
Also i have... (2 Replies)
Discussion started by: localhost
2 Replies
8. UNIX for Dummies Questions & Answers
Hey guys!
I'm so glad I found this site, I've had so many questions and have been left alone for roughly a year scanning man pages but It's just not quite cutting it for some things.
So, I often like to list directories when browsing around my local machine, a friend's machine, or my web... (6 Replies)
Discussion started by: bbilheimer
6 Replies
9. UNIX for Dummies Questions & Answers
I want to list the contents of a directory, but I do not want to use the ls, is there another way?? (3 Replies)
Discussion started by: carl_vieyra
3 Replies
10. UNIX for Dummies Questions & Answers
I just moved my mail server (qmail in maildir format) from a solaris box to a RedHat linux box. When I select some inboxes in pine, I get a directory listing of the inbox, its not automatically opening the qmail cur directory.
This doesn't happen with all, and it doesn't happen at all on... (0 Replies)
Discussion started by: cross
0 Replies