10-29-2008
So, there is no formatting of the script...
bummer... and tough to read.
Can you reformat, and add a few comments throughout to help understand what you are doing at the various steps?
Last edited by joeyg; 10-29-2008 at 10:29 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
#!/bin/ksh
LOG_DATE=`date +%Y%m`
export LOG_DATE
cd D:/Informatica/Informatica_share/SrcFiles/l
# mv SITE_ACTIVITY${LOG_DATE}*.CSV D:/Informatica/Informatica_share/SrcFiles/SITE_ACTIVITY${LOG_DATE}*.CSV
# mv SITE_ACTIVITY20050914114546.CSV... (6 Replies)
Discussion started by: vivekanandarpat
6 Replies
2. UNIX for Advanced & Expert Users
#!/bin/ksh
LOG_DATE=`date +%Y%m`
export LOG_DATE
cd D:/Informatica/Informatica_share/SrcFiles/l
# mv SITE_ACTIVITY${LOG_DATE}*.CSV D:/Informatica/Informatica_share/SrcFiles/SITE_ACTIVITY${LOG_DATE}*.CSV
# mv SITE_ACTIVITY20050914114546.CSV... (2 Replies)
Discussion started by: vivekanandarpat
2 Replies
3. Shell Programming and Scripting
I have input file like this
Input file:
ABC|abc_etc_passwd
XYZ|XYZ_etc_passwd
zXY|XYZ_etc_passwd
IJK|test_etc_passwd
KLM|test_etc_passwd
i want to do following in a loop.
grep 'ABC' *abc_etc_passwd*
grep 'XYZ' *XYZ_etc_passwd*
grep 'ZXY' *ZXY_etc_passwd*
i have tried this
for i... (2 Replies)
Discussion started by: pinnacle
2 Replies
4. Solaris
I am new to solaris and I replaced a faulty tape drive sun DLT7000
But, I am getting the follwoing error when system reboots
ltid deamon error drive index 1 is not correct, drive name /dev/rmt/2cbn is incorrect no such file or directory.
I have two drives the other one is /dev/rmt/0cbn,... (8 Replies)
Discussion started by: latif1958
8 Replies
5. Linux
Dear All
On my Linux server, I need to separate the individual logs coming from various modules concurrently. Please find below a sample of the logs:
But when I run it, I am receiving the following error:
-bash: -f1.log : command not found
-bash: $LOGFILE : ambiguous redirect
Can you... (4 Replies)
Discussion started by: hadimotamedi
4 Replies
6. Shell Programming and Scripting
###############
#filename.sh
###############
CUREENT_DATE=02
log_file_path="$CUREENT_DATE"-"${0##%*/}`|cut -d "." -f1|awk -F "/" '{print $NF}'`"".log"
echo $log_file_path
################
#output required
02-filename.log (6 Replies)
Discussion started by: mohitmehral
6 Replies
7. Shell Programming and Scripting
Hello all; hope someone can help me cause I am going crazy trying to find a solution for (what I think is simple) issue...looked hard up and down this forum and tried several "solutions" with no avail...so here's my issue:
I have this (parent) script: copylsofdcmcadefttosftpwithmove.sh
... (3 Replies)
Discussion started by: gvolpini
3 Replies
8. Shell Programming and Scripting
Hello Brains,
I was trying to develop a script that would do nslookup using both name and ip of server and format the output and store in an output file. Please find the script below.
#!/usr/bin/ksh
cat $1 | tr "" "" |
while read ip name
do
ERROR="$(nslookup $ip | grep can't | awk -F"... (2 Replies)
Discussion started by: Praveen P
2 Replies
9. Shell Programming and Scripting
Hi everyone,
The following piece of awk code works fine if I use eval builtin
var='$1,$2'
ps | eval "awk '{print $var}'"
But when I try to knock off eval and use awk variable as substitute then I am not getting the expected result
ps | awk -v v1=$var '{print v1}' # output is $1,$2
ps |... (4 Replies)
Discussion started by: royalibrahim
4 Replies
10. Shell Programming and Scripting
Dear all,
I am using sed as an alternative to grep in order to get a specific line from each of multiple files located in the same directory. I am using sed because it prints the lines in the correct order (unlike grep).
When I write sed code that prints out the output I get it correct, but... (1 Reply)
Discussion started by: JaNaJaNa
1 Replies
LEARN ABOUT CENTOS
zipnote
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)