01-07-2004
# comment
Hi guys and Gals AIX 5.1
If I had a # above several scripts would it comment out everything below it?
Like this
#
01 2 ** .....................................
02 31 .........................................
# this is a script
03 12 **..........................
Would everything below that first comment be commented out?
Last edited by rocker40; 01-07-2004 at 11:11 AM..
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_set_file_comment
ZIP_SET_FILE_COMMENT(3) Library Functions Manual ZIP_SET_FILE_COMMENT(3)
NAME
zip_set_file_comment - set comment for file in zip
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
int zip_set_file_comment(struct zip *archive, zip_uint64_t index); "const char *comment" "int len"
DESCRIPTION
The zip_set_file_comment function sets the comment for the file at position index in the zip archive to comment of length len. If comment
is NULL and len is 0, the file comment will be removed.
RETURN VALUES
Upon successful completion 0 is returned. Otherwise, -1 is returned and the error information in archive is set to indicate the error.
ERRORS
zip_set_file_comment fails if:
[ZIP_ER_INVAL]
index is not a valid file index in archive, or len is less than 0 or longer than the maximum comment length in a zip file
(65535).
[ZIP_ER_MEMORY]
Required memory could not be allocated.
SEE ALSO
libzip(3), zip_get_archive_comment(3), zip_get_file_comment(3), zip_set_archive_comment(3)
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH March 10, 2009 ZIP_SET_FILE_COMMENT(3)