This is in fact a piece of a script for processing files associated with a particular application, and part of the script uses unzip to process files according to these variables.
Hi,
I have a program that searches for a particular string patten. I am however having difficulty passing the varible $i (in a loop) as the string pattern to replace. Using either perl or sed search and replace statements, I get the same kinda result. For example, using the perl:
for i in... (3 Replies)
I'm working on making a menu system on an HP-UX box with Bash on it. The old menu system presents the users with a standard text menu with numbers to make selections. I'm re-working the system and I would like to provide something more akin to iterative search in Emacs.
I have a list of 28... (2 Replies)
Hey, im trying to validate a user input and need some help. The input needs to be just a single letter. Im using a case to so this eg:
read answer
case $answer in
*) echo "OK"
;;
*) echo "This is a number"
read answer
;;
*) echo... (2 Replies)
Hi all, I currently have a script which uses read -p for user interaction. e.g.
read -p "New user? " user
Is it possible to have it so if the user enters nothing and just presses return it can resort to a specified value instead?
Thanks! :) (5 Replies)
I am starting to learn how to use bash and I would like the script to do the following:
Asks the user for his/her name
Asks the user for one number
Asks the user for another number
Then it adds the two numbers,
Also multiply the two numbers
I have the part where you get the name, and I... (3 Replies)
hi all,
i have a script that need user input provide all variables that needed to complete a job.
this is my current script:
echo "type file source and it full path :"
read INPUTFILE
if || ;
then
echo "ERROR: you didn't enter a file source or file source is not... (2 Replies)
Below is a simple script to prompt for user input while suggesting an editable default value at the prompt:
shortname=user1
read -e -i $shortname -p "Please enter the username you would like to add: " input
USERNAME="${input:-$shortname}"
Please enter the username you would like to add:... (3 Replies)
I have the basic command written in bash
for element in 1 2
do
if ]; then
set el = "t"
else
set el = "p"
fi
done
but i get the following error
syntax error near unexpected token `for'
` for element in 1 2'
What should i do differently? (3 Replies)
Discussion started by: ncwxpanther
3 Replies
LEARN ABOUT CENTOS
zipcloak
zipcloak(1) General Commands Manual zipcloak(1)NAME
zipcloak - encrypt entries in a zipfile
SYNOPSIS
zipcloak [-d] [-b path] [-h] [-v] [-L] zipfile
ARGUMENTS
zipfile Zipfile to encrypt entries in
OPTIONS -b path
--temp-path path
Use the directory given by path for the temporary zip file.
-d
--decrypt
Decrypt encrypted entries (copy if given wrong password).
-h
--help
Show a short help.
-L
--license
Show software license.
-O path
--output-file zipfile
Write output to new archive zipfile, leaving original archive as is.
-q
--quiet
Quiet operation. Suppresses some informational messages.
-v
--version
Show version information.
DESCRIPTION
zipcloak encrypts all unencrypted entries in the zipfile. This is the default action.
The -d option is used to decrypt encrypted entries in the zipfile.
zipcloak uses original zip encryption which is considered weak.
Note: The encryption code of this program is not copyrighted and is put in the public domain. It was originally written in Europe and can
be freely distributed from any country including the U.S.A. (Previously if this program was imported into the U.S.A, it could not
be re-exported from the U.S.A to another country.) See the file README.CR included in the source distribution for more on this.
Otherwise, the Info-ZIP license applies.
EXAMPLES
To be added.
BUGS
Large files (> 2 GB) and large archives not yet supported.
Split archives not yet supported. A work around is to convert the split archive to a single-file archive using zip and then use zipcloak
on the single-file archive. If needed, the resulting archive can then be split again using zip.
SEE ALSO zip(1), unzip(1)AUTHOR
Info-ZIP
v3.0 of 8 May 2008 zipcloak(1)