11-04-2004
Help with scripts
script that ask for "enter a file name" and removes that file
and asks for confirmation before deletion
if executed the output might look as
enter the filename you intent to deleted
remover file? Y
file deleterd
I knwo the comand I would use
find . -name *.* -ok rm {}\; I guess... can someone help me
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi.. I am a beginner in the shell programming. And I have a homework about it. I will be very happy if someone can help me.
those are the questions:
1- Write a shell script which finds the sum of the numbers in the file "numbers.txt"
2-Write a shell script which changes the extensions of files... (5 Replies)
Discussion started by: burakkilic
5 Replies
2. Shell Programming and Scripting
Hi,
First, let me explain the issue I am trying to solve. We have a lot of expect scripts with the duplicated send/expect commands. So, I'd like to be able to extract the duplicated code into the common scripts that can be used by other scripts.
Below is my test where I am trying to call... (0 Replies)
Discussion started by: seva
0 Replies
3. UNIX for Dummies Questions & Answers
what is the difference between login and profile scripts versus the rc scripts? (1 Reply)
Discussion started by: rookie22
1 Replies
4. Shell Programming and Scripting
Hi,
I've written a script that runs on a Database server. It has to shutdown the Application server, do an Oracle Dump and then restart the Application server. Its been a long time since I wrote any shells scripts. Can you tell me if the scripts that I execute within my script will be executed... (3 Replies)
Discussion started by: brockwile1
3 Replies
5. Shell Programming and Scripting
Hi all,
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
Discussion started by: sirbrian
4 Replies
6. Shell Programming and Scripting
Hi,
I have to write a program to compute the checksums of files
./script.sh
I wrote the program using bash and it took me forever since I am a beginner but it works very well.
I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies
7. Shell Programming and Scripting
Dear Members,
I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc.
I would like to create a script which will will call other scripts based on the request action.
Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies
8. Shell Programming and Scripting
Hi all, I'm wondering if you could give me some advice. I am new to scripting and am getting rather frustrated that i can get my script to call another script if certain criteria is met, via command line, but I cannot get the same script to work thru the cron jobs.
My first script monitors... (8 Replies)
Discussion started by: echoes
8 Replies
9. Shell Programming and Scripting
Dear all,
I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.
Here is the snippet:-
#!/bin/bash
HSFILE=/root/Test/Components.txt
LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies
LEARN ABOUT DEBIAN
acheck
ACHECK.1(1) User Contributed Perl Documentation ACHECK.1(1)
NAME
acheck - Check common localization mistakes
SYNOPSIS
acheck [OPTIONS] [INPUT_FILE]
DESCRIPTION
This program parses a file checking for syntax rules and optionally asking Aspell for checking word spelling. It makes fix suggestions and
outputs a corrected file accordingly adding review comments if requested.
It tries to find the file type according to the extension or the first lines and loads rules accordingly.
It displays lines when they are parse.
When an error is found, a menu is displayed. Just press Enter if you don't want to change anything. If a choice suits you, enter the corre-
sponding number. If you want to fix it but no choice is correct, enter a space, then you will be asked for a string to replace the high-
lighted text. The script will replace the highlighted text with your choice and parse it again for new errors.
Here are all the available commands:
Enter, ignore.
Ignore.
Ctrl+L, redraw.
Rewrite the last line, suggestions and hints.
Space, edit.
Edit the highlighted text.
E, edit line.
Edit the whole line.
H, add hint.
Add the displayed hint as review comment. Use this if you want the translator to see the corresponding warning or error but you have no
correction.
N, next line.
Skip the rest of this line.
X, exit and discard all changes.
Quit without saving modifications, the script ask you for confirmation, you have to enter `yes' to exit otherwise parsing starts again
at the current mistake.
a, add in dictionary.
Add the highlighted word to you personal dictionary, capitalized as it is.
l, add lowercase in dictionary.
Lowercase the highlighted word to add it to your personal dictionary.
i, ignore word.
Ignore the highlighted word, same as Enter.
I, ignore all.
Ignore the highlighted word and add it to your session dictionary.
OPTIONS
Verbosity level:
-q, --quiet
quiet mode.
-v verbose, start at level $Debug + 1, add more for more verbosity (see below).
--verbose n
set verbosity level to n (see below).
Files:
-i, --input
input filename, can be '-' to read data from standard input.
-o, --output
output filename, can be '-' to write data to standard ouput. If no output filename is provided, input file is backed up with `bak_ext'
extension and input filename is used.
Spell check:
-s, --spell
check spelling with Aspell.
-d language, --dict language
use language dictionary for Aspell.
-n, --nospell
don't check spelling.
Mode:
-r, --review
review mode, add comments on lines beginning with $Comment after parsed line.
-t, --trans
translator mode, don't add comments, just fix errors.
others:
--rules ruleset
use ruleset rules set.
--type filetype
use filetype whatever the file type is.
--dump
Dump the rules to check and exit, use this for debugging purposes.
-V, --version
print version and exit.
-h, --help
print a short usage message and exit.
Verbosity Level
0 quiet, normal
only warnings and errors
1 debug
names of subroutines
2 debug verbose
names and arguments of subroutines
3 .. 5 debug very verbose
output parsing and checking details
SEE ALSO
acheck(5), acheck-rules(5)
AUTHOR
Nicolas Bertolissio <bertol@debian.org>
perl v5.8.4 2003-10-05 ACHECK.1(1)