Hi,
Please find the attached scriplet and suggest me to fix the bug in this.
-----------------------------------
noofdirs=`ls *.tar | wc -l`
if ; then
let i=1
while ( $i <= $noofdirs ) ;
do
echo $i
mkdir $i
file1=`ls *.tar | head -1`
mv $file1 $i
i =... (2 Replies)
Hi, As I am new to filtering section of Unix I am facing a problem
I have following lines in text file :
Created RELEASE in dist/Apple_release_1_0_.zip
Created RELEASE in dist/Banana_release_1_0_.zip
Created RELEASE in dist/Mango_release_1_0_.zip
Created RELEASE in... (2 Replies)
Hi
I have a script that does a select from a table. I want the script to return a 0 status if a specific column has 'OK' value or return 1 if this column returns 'NOT OK'.
The output now is similar to:
COL1 COL2 STATUS
------- --------- -------
I want to be limited to... (1 Reply)
I want to replace all occurences of '$' in a LaTeX source code in the following way: The dollars on odd position in the file must be changed in '$latex ' and the other dollars can remain the same.
I was thinking to make a script which replaces all odd occurences of a given character with a... (4 Replies)
Hi have some xml like this
<example>
<Cell Name="Cell1" ConfigureHost="claas" Role="APPSERV,BACKEND">
<Node Name="aaaaa" Role="APPSERV,BACKEND,CLM"/>
<Node Name="vvvv" Role="APPSERV,BACKEND"/>
<Mercury Type="default" FQDN="ssssss"
PrimaryReturnFQDN=""/>
</Cell>
... (1 Reply)
Hi,
I have an application in 2 different directories, one is for OpenSuSE and the other for CentOS.
I wrote a script which chooses the right executable for the distribution. But it does not work.
-------------------
#!/bin/bash
if
then
( DN="/home/apps/applicationXY/Version3.1" )... (2 Replies)
Hi all,
If column 6 is negative then I want column 3 is be subtracted by 150. If column 6 is positive then I want 150 added to the value at column 2.
The file that looks like this:
Bull 38 158 HWI-ST600:206:D0L90ACXX:8:2214:15503:17988 0 -... (2 Replies)
I am trying to parse files kkapjil kkpcjil kkexjil ...which have autosys job names. The objective is to parse each file...do an autorep -j <job name > -q and write it as output with a line for condition at the end of the each job. The problem I am facing is with the box jobs...as autorep -j <box... (0 Replies)
Hi ,
my file look likes below ,
cat file.csv
12/09/2014,50,5,0,300
12/09/2014, ,5,0,300
12/09/2014,50,,,300
i need to split file , the first one contains values (2nd column is 50 , 3rd and fourth column is null )
the second file contains all others
firstfile
... (2 Replies)