01-07-2004
If you want to achieve that effect, you could use an "exit" statement.
I somethimes put code below a final exit statement while I'm developing a script.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need help with a script. Here's what I want to do.
I have a file "upsrk.txt" which can be either under "/home/upsrk" OR "/home/oracle"
On some systems file "upsrk.txt" may not exist, in that case I want to just exit out of the script.
If the file is there, I want to check if I have the... (3 Replies)
Discussion started by: upsrk
3 Replies
2. Shell Programming and Scripting
Hi guys, hope you scripting gurus here can help me out, the logic in my script somehow not working the way it should, this script part of a bigger backup script suppose to do some checking on the cluster prior to bringing up the package on MC/SG after backend cloning operation, this portion is... (3 Replies)
Discussion started by: sparcguy
3 Replies
3. Shell Programming and Scripting
Hello folks
Hope all are fine, I have query need suggestion, if these lines two lines are already commeted no need to do anything, one more thing order of alpha, gama may be different.
I have a two lines in a file data.txt
%checksum
alpha gama beta penta hexa
I want to do... (8 Replies)
Discussion started by: learnbash
8 Replies
4. UNIX for Dummies Questions & Answers
test compare shown]
Replace this text with #test compare shown] (1 Reply)
Discussion started by: manoj.b
1 Replies
5. UNIX for Dummies Questions & Answers
Is there a command to put a comment (#) in a whole part of a shell script? (5 Replies)
Discussion started by: vero_81
5 Replies
6. Shell Programming and Scripting
Legends,
Please help me out to come out of below situation.
I have a file ABC.txt with the following entries. (example below. actual entries are more than 200 lines)
PM3_fun
PM4_fun
FIMr_mrg ... (5 Replies)
Discussion started by: sdosanjh
5 Replies
7. Shell Programming and Scripting
I want to find out which files under /etc have the the following section:
and then i would like to comment out the above section in all the files.
Please help. (3 Replies)
Discussion started by: proactiveaditya
3 Replies
8. Cybersecurity
Hey Guys,
I have a server, and a technical user on it (only for reading logs). I set up openssh, and the user can login only with ssh key pair.
Under this one technical user, there are a lots of public keys in the ~/.ssh/authorized_keys file. I would like to find out/log with which key the user... (3 Replies)
Discussion started by: lyynxxx
3 Replies
9. Shell Programming and Scripting
Hello,
I have a file, in which line 40 is commented. It is basically a cron job,
#05,35,50 * * * * /usr/local/scripts/my.sh
how i can i verify the line 40 is commented, if not then give me message not commented, otherwise provide us message it is commented. (5 Replies)
Discussion started by: learnbash
5 Replies
10. Shell Programming and Scripting
I have a file
cat /root/file
#import node1
#import node2
import node2
import node4
After sed/awk operation the file should be as follows
cat /root/file
#import node1
#import node2
#import node2
#import node4 (6 Replies)
Discussion started by: anil510
6 Replies
LEARN ABOUT DEBIAN
zip_get_file_comment
ZIP_GET_FILE_COMMENT(3) Library Functions Manual ZIP_GET_FILE_COMMENT(3)
NAME
zip_get_file_comment - get comment for file in zip
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
const char * zip_get_file_comment(struct zip *archive, zip_uint64_t index, int *lenp, int flags);
DESCRIPTION
The zip_get_file_comment function returns the comment for the file at position index in the zip archive. This pointer should not be modi-
fied or free(3) Ap d. If lenp is not NULL, the integer to which it points will be set to the length of the comment. If flags is set to
ZIP_FL_UNCHANGED, the original unchanged comment is returned.
RETURN VALUES
Upon successful completion, a pointer to the comment is returned, or NULL if there is no comment. In case of an error, NULL is returned
and the error code in archive is set to indicate the error.
ERRORS
zip_get_file_comment fails if:
[ZIP_ER_INVAL]
index is not a valid file index in archive.
SEE ALSO
libzip(3), zip_get_archive_comment(3)
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH March 10, 2009 ZIP_GET_FILE_COMMENT(3)