07-25-2006
hey tmarikle,
I am sorry to give you wrong data. Actually I am trying this in two diferent boxes. I was replicating the scenario which I was giving you all the time. But I posted you the output of the other box.
Its not to misguide you. But the issue I am having is, as I told you in my previous mail and I am not able to figure it out and I see it in both boxes.
File Size Location 1 Size Location 2 Difference
./filesize3.sh[31]: 5336821:/home/rpmuser/COB_bw_5.3.0/5.3/admin-plugins/BWAdmin.war: unexpected `:'
for this line of code:
FILE_SIZE_1=${i%%:*)} is what I am not able to understand. When I comment it out, I get '0' for Filesize1 and other results are right.
Please let me know if you have a resolution and thank you once again for your time.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I've got a log file which has entries that look like this:
-------------------------------------------------------------------------------
06/08/04 07:57:57
AMQ9002: Channel program started.
EXPLANATION:
Channel program 'INSCCPQ1.HSMTSPQ1' started.
ACTION:
None. ... (3 Replies)
Discussion started by: m223464
3 Replies
2. Shell Programming and Scripting
Hi,
I have a file which has the contents as below :
07:38:36 EST
date 20041117
07:39:06 EST
07:00:29 EDT
date 20050504
07:25:16 EDT
07:00:40 EDT
date 20050505
07:23:12 EDT
I need to delete the new line character from all lines except 3rd,6th,9th etc. lines so that i get the output... (14 Replies)
Discussion started by: Sabari Nath S
14 Replies
3. UNIX for Dummies Questions & Answers
I've done this before but I can't remember how. Too long away from vi.
I want to do a search are replace, but I want the replace to be a join.
Example
see spot run
see spot walk
see spot run fast
see spot hop
%s/run$/<somehow perform a join with the next line>/g
so the results... (0 Replies)
Discussion started by: ifermon
0 Replies
4. Shell Programming and Scripting
Hi ,
I want to join two lines in a file, where the second line contain query string. if it doesn't contain that string i don't want to join
e.g.
Input file is as following:
name fame game
none none none
name fame game
cat eat mice
I need output file as
name fame game
none none... (2 Replies)
Discussion started by: ashrafonics
2 Replies
5. Shell Programming and Scripting
Hi,
I have two text files, that need their data joining/concatenation. 'Paste' works for this.
But have an issue when there is mismatch in number of rows in each file.
E.g.
(main file) File1 - has 20 rows
File2 - has 30 rows.
Command 'paste file1 file2 > file3' joins all lines.
I want the... (4 Replies)
Discussion started by: sharath160
4 Replies
6. Shell Programming and Scripting
Hi All,
I need the command to join 2 lines into one. I found lots of threads but none give me the sollution. Probably because unix scripting is one of my best features ;)
I got a logfile where line 2 needs to be joined with line 1, lines 4 needs to be joined with line 3 etc
If you need... (16 Replies)
Discussion started by: rene21976
16 Replies
7. Shell Programming and Scripting
Hi Guys,
Was trying to attempt the below using awk and sed, have no luck so far, so any help would be appreciated.
Current Text File: The first line has got an "\n", and the second line has got spaces/tabs then the word and "\n"
TIME SERVER/CLIENT TEXT... (6 Replies)
Discussion started by: eo29
6 Replies
8. Shell Programming and Scripting
I have a plain test file with a delimeter ''. In this file some lines are broken into two. The first part of these broken line will have 6 columns and the second part will have 4. These broken lines will be consicutive.
I want to join the two consicutive lines which are having 6 fields and 4... (8 Replies)
Discussion started by: ratheeshjulk
8 Replies
9. Shell Programming and Scripting
Hi all,
I'm excited to the part of unix.com forum, and noob to it.
I have an query, where I have an file and it contains data like this
use
thread
when
posting
do
no
I was expecting the result as
use thread
thread when
when posting
posting do
do no
use thread when
thread when... (6 Replies)
Discussion started by: Jose Nirmal
6 Replies
10. Shell Programming and Scripting
Hi - I have req to join broken lines and remove empty lines but should NOT be in one line. It has to be as is line by line. The challenge here is there is no end of line/start of line char.
thanks in advance
Source:-
2003-04-34024|04-10-2003|Claims|Claim|01-13-2003|Air Bag:Driver;... (7 Replies)
Discussion started by: Jackceasar123
7 Replies
LEARN ABOUT OSX
jvisualvm
jvisualvm(1) General Commands Manual jvisualvm(1)
NAME
jvisualvm - Java Virtual Machine Monitoring, Troubleshooting, and Profiling Tool
SYNOPSIS
jvisualvm [ options ]
PARAMETERS
Options, if used, should follow immediately after the command name. Options may be in any order. For a discussion of parameters that apply
to a specific option, see OPTIONS below.
DESCRIPTION
Java VisualVM is an intuitive graphical user interface that provides detailed information about Java technology-based applications (Java
applications) while they are running on a given Java Virtual Machine (JVM(*)). The name Java VisualVM comes from the fact that Java Visu-
alVM provides information about the JVM software visually.
Java VisualVM combines several monitoring, troubleshooting, and profiling utilities into a single tool. For example, most of the function-
ality offered by the standalone tools jmap, jinfo, jstat and jstack have been integrated into Java VisualVM. Other functionalities, such as
some of those offered by the JConsole tool, can be added as optional plug-ins.
OPTIONS
The following option is possible when you launch Java VisualVM.
-J<jvm_option>
Pass this <jvm_option> to the JVM software.
USAGE
Java VisualVM is useful to Java application developers to troubleshoot applications and to monitor and improve the applications' perfor-
mance. Java VisualVM can allow developers to generate and analyse heap dumps, track down memory leaks, perform and monitor garbage collec-
tion, and perform lightweight memory and CPU profiling. Plug-ins also exist that expand the functionality of Java VisualVM. For example,
most of the functionality of the JConsole tool is available via the MBeans Tab and JConsole Plug-in Wrapper plug-ins. You can choose from a
catalog of standard Java VisualVM plug-ins by selecting 'Tools' | 'Plugins' in the Java VisualVM menus.
Start Java VisualVM with the following command:
% jvisualvm <options>
SEE ALSO
For more details about Java VisualVM see the following pages.
o Java VisualVM developers' site @
https://visualvm.dev.java.net
o Java VisualVM in Java SE platform documentation @
http://java.sun.com/javase/6/docs/technotes/guides/visualvm/index.html
(* The terms "Java Virtual Machine" and "JVM" mean a Virtual Machine for the Java platform.)
26 Mar 2008 jvisualvm(1)