10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I keep getting the following error
sed: -e expression #1, char 32: unterminated `s' command
sed: -e expression #1, char 35: unterminated `s' command
sed: -e expression #1, char 35: unterminated `s' command
whenever I use the following bash script
#! /bin/bash... (2 Replies)
Discussion started by: spbr
2 Replies
2. Shell Programming and Scripting
Hi
I am setting the variables like this :
setenv MODULE1 modem5__3
setenv MODULE2 modem5__2
setenv MODULE3 modem_ctrl_1_1
setenv MODULE4 modem_1_0
setenv COUNT 10
I am having a bash script as shown below
################################################
#!/bin/bash
for ((... (5 Replies)
Discussion started by: kshitij
5 Replies
3. Shell Programming and Scripting
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
4. Shell Programming and Scripting
Hi guys,
I am very new to linux, so please bear with me. https://www.unix.com/./images/smilies/smile.png
I need a simple script (bash / .sh) to start 2 programs at server startup. Both programs should run in a detached screen of their own.
So basically:
1) start a detached screen with... (2 Replies)
Discussion started by: lastcrafters
2 Replies
5. Shell Programming and Scripting
Hello,
can someone please help me to fix this script,
I have a 2 files, one file has hostname information and second file has console information of the hosts in each line, I have written a script which actually reads each line in hostname file and should grep in the console file and paste the... (8 Replies)
Discussion started by: bobby320
8 Replies
6. Shell Programming and Scripting
My script works like this.
1. First for loop - checks if it can access zip parameters in a directory
2. If unzip fails for any of the file in that directory, then it goes inside the second for loop - to list which file is that
3. My doubt is..Is there any way I can tell status for every 5000... (17 Replies)
Discussion started by: vidhyamirra
17 Replies
7. Shell Programming and Scripting
Hi,
I have a bash script which I have referenced in the rc.local of my fedora linux OS. However it doesnt respond the same as when run in terminal from fedora.
The bash script has a series of interactive questions that require user input as shown:
#!/bin/bash
echo "Do you want to use... (1 Reply)
Discussion started by: Crigamorfin
1 Replies
8. Slackware
I recently installed slackware 11 and have been very happy with it until I found out that some gnome related apps can cause gnome's network manager to alter the rc.init1 script by adding 3 lines to the script containing only the command, eth_up. This causes the script not to run properly and not... (1 Reply)
Discussion started by: djtrippin
1 Replies
9. Shell Programming and Scripting
I'm getting the following errors when I try to write a script to unzip some zip files. When I use the free trial copy of the commerical winzip program, however, they work fine. When I use -l or -t on unzip it indicates no errors. When I use the -o switch interactively from the bash command line it... (1 Reply)
Discussion started by: siegfried
1 Replies
10. UNIX for Dummies Questions & Answers
I am trying to unzip a 1.5g file from Oracle on a Sun Solaris box, but am getting the following error. Help!This is urgent.
note: didn't find end-of-central-dir signature at end of central dir.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode... (1 Reply)
Discussion started by: pkappaz
1 Replies
zipnote(1) General Commands Manual zipnote(1)
NAME
zipnote - write the comments in zipfile to stdout, edit comments and rename files in zipfile
SYNOPSIS
zipnote [-w] [-b path] [-h] [-q] [-v] [-L] zipfile
ARGUMENTS
zipfile Zipfile to read comments from or edit.
OPTIONS
-w Write comments to a zipfile from stdin (see below).
-b path
Use path for the temporary zip file.
-h Show a short help.
-q Suppress some informational messages.
-v Show version information.
-L Show software license.
DESCRIPTION
zipnote writes the comments in a zipfile to stdout. This is the default mode. A second mode allows updating the comments in a zipfile as
well as allows changing the names of the files in the zipfile. These modes are described below.
EXAMPLES
To write all comments in a zipfile to stdout use for example
zipnote foo.zip > foo.tmp
This writes all comments in the zipfile foo.zip to the file foo.tmp in a specific format.
If desired, this file can then be edited to change the comments and then used to update the zipfile.
zipnote -w foo.zip < foo.tmp
The names of the files in the zipfile can also be changed in this way. This is done by following lines like
"@ name"
in the created temporary file (called foo.tmp here) with lines like
"@=newname"
and then using the -w option as above.
BUGS
The temporary file format is rather specific and zipnote is rather picky about it. It should be easier to change file names in a script.
Does not yet support large (> 2 GB) or split archives.
SEE ALSO
zip(1), unzip(1)
AUTHOR
Info-ZIP
v3.0 of 8 May 2008 zipnote(1)