![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Korne Shell Script... | marconi | Shell Programming and Scripting | 5 | 12-06-2007 08:08 PM |
| Korne Shell... | marconi | Shell Programming and Scripting | 1 | 12-06-2007 11:01 AM |
| Some Problem with Korne Shell// | marconi | Shell Programming and Scripting | 4 | 12-06-2007 07:57 AM |
| GOTO LOOP in KORNE SHELL | DeepakXavier | Shell Programming and Scripting | 1 | 11-10-2005 09:47 AM |
| Mailing in Korne shell | DeepakXavier | Shell Programming and Scripting | 5 | 10-09-2005 01:27 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Korne Shell Problem.
Hi Everyone,
I have tried with the following Code for each of the following, but that does not seem to serve the purpose. Can someone give some pointers please. 1) A Korne Shell which asks the user to enter the name of a file when searching it recursively (using the find command) in the home directory of this user. #!/usr/bin/ksh find * -type f -type d -path usr if [ –a file ] then echo -n "Enter the file name" fi 2) A Korne Shell which asks the user for a date (format AAMMJJ) and a directory and then searches recursively in this directory the list of files modified after the date chosen. #!/usr/bin/ksh if ['-d $1'+ 'date -t "%AA%MM%JJ"'] then echo -n "find all files modified after the chosen date" touch ' new date -nt "%AA%MM%JJ" find * -type f -type new date Thanks, Marconi. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
Hi,
Pls have a look at what I posted clearly. I have asked for some pointers after trying it and not the actual code. Thanks, Marc |
|
#4
|
|||
|
|||
|
That looks awful.
I thought you would be doing... Code:
... echo "Enter filename...." read WANTED find "$HOME" -type f -name "$WANTED" |
|||
| Google The UNIX and Linux Forums |