Search Results

Search: Posts Made By: chetan.c
21,427
Posted By chetan.c
Thanks Ashish/Corona688. @cero: Actually...
Thanks Ashish/Corona688.

@cero:
Actually i want the best practice to secure the Password.
So i should be setting appropriate permissions on the command file right?


Thanks,
Chetan.C
21,427
Posted By chetan.c
Encrypt DB password in Script
Hi,

I have a SQL which i want to run through a shell script.
query_result=`/home/oracle/product/11.2.0/bin/sqlplus -S uname/pwd@DBNAME <<!
set heading off feedback off trimspool on
set...
1,689
Posted By chetan.c
:)Thanks all!! That was the issue. @ Peasant...
:)Thanks all!!
That was the issue.
@ Peasant Yes will change it now to the condition for checking for the file.


Thanks,
Chetan.C
1,689
Posted By chetan.c
Infinite while loop script shows more than one process
Hi,
I have a script which triggers an infinite loop.

#!bin/bash
trig=`ls /home/trig.tch |wc -l`
function callj {
some commands...

}

while [ $trig -ne 0 ]
do
callj &
done

The...
1,034
Posted By chetan.c
Thanks johnson!!
Thanks johnson!!
1,034
Posted By chetan.c
For loop to read folder which are not under processing
Hi,

I want to read folders which do not have a file "processing" in a for loop ordered by timestamp.
Currently im doing like this.

Like

cd /home/working
for i in `ls -c1`
do
some...
971
Posted By chetan.c
awk recieving script variables.
Hi,

I have a script which recieves 3 variables.
#!/bin/bash
Directory=$1
Archive=$2
Log_File_Path=$3
...
...
...
gzip -l *.xml.gz |awk '{print $1"^"$2"^"$4}'|sed '$d'


In awk ...
2,063
Posted By chetan.c
Thanks!! its working Completing the script...
Thanks!! its working Completing the script now...thanks again!:b:

---------- Post updated at 07:18 AM ---------- Previous update was at 07:17 AM ----------



Hi Anchal,

Actually for each...
2,063
Posted By chetan.c
Thanks. Apologies I did not give the complete...
Thanks.
Apologies I did not give the complete information .

I require it to be in a for loop ,so that once the oldest directory is read the subsequent oldest directory is picked. The process...
2,063
Posted By chetan.c
Read directories sequential based on timestamp
Hi,
I have a directory structure like below
Directoryname create time
d1 12:00
d2 12:05
d3 12:08

I want to read the directories...
17,805
Posted By chetan.c
Hi Corona, Thanks a lot. So overlapping...
Hi Corona,

Thanks a lot.
So overlapping does happen in these cases.

The problem here is i want to process a lot number of files so i wanted to try to make process more number of files.

I...
17,805
Posted By chetan.c
Hi, The script which im running is executed...
Hi,

The script which im running is executed simultaneously for multiple folders.
So is there a chance of overlapping of data beacause of this multiple process?

Im seeing overlapping of data...
16,256
Posted By chetan.c
Hi Corona, Thanks. So if i have the...
Hi Corona,

Thanks.
So if i have the directoy structure in tar like below

/Folder1/Folder1.1/File1.txt
/folder2/Folder2.1/File2.txt

How can i use it to extract the files directly?

...
16,256
Posted By chetan.c
Extract files from tar ball without directory structure
Hi,
I have tar filw which has multiple directories which contain files.
When i extract using tar -xf the directory structure also get extracted.

I require only files and not directory...
1,257
Posted By chetan.c
Hi, Wanted to know if i can use awk for...
Hi,

Wanted to know if i can use awk for this as i'm using echo to print filename for each file ans this is making the script very slow.

Thanks,
Chetan.c

---------- Post updated at 06:44...
17,805
Posted By chetan.c
Thanks Corona.:) Yes will make sure i will...
Thanks Corona.:)

Yes will make sure i will post it right next time.
17,805
Posted By chetan.c
Hi Corona, Thanks a lot.!! :b: Actually...
Hi Corona,
Thanks a lot.!! :b:
Actually filename was not getting printed.
I had a similar problem for which i had found the soultion on this forum itself.
The code looks like this now.

...
17,805
Posted By chetan.c
Thanks drl. It helped me understand the...
Thanks drl.

It helped me understand the concept.

---------- Post updated at 02:06 AM ---------- Previous update was at 01:11 AM ----------



Hi Corona,

Actually i wanted the XML to...
17,805
Posted By chetan.c
Thanks Bartus. Can you tell me how I can...
Thanks Bartus.

Can you tell me how I can loop this for dynamic number of folders?

Like the number of folders may chnage and the function has to be called for the folders present only.
...
17,805
Posted By chetan.c
Hi Bartus, Is it like if there are 100...
Hi Bartus,

Is it like if there are 100 files then get 50 files and call function concurrently.

Like this?

function first {
#to_process=$1
cd $1
for i in *.txt
do
echo $i
awk '/<.*/...
17,805
Posted By chetan.c
Multi thread awk command for faster performance
Hi,

I have a script below for extracting xml from a file.

for i in *.txt
do
echo $i
awk '/<.*/ , /.*<\/.*>/' "$i" | tr -d '\n'
echo -ne '\n'
done
.

I read about using multi...
1,721
Posted By chetan.c
Hi, Firstly apologies for that double...
Hi,

Firstly apologies for that double post!.
Thanks for the responses.Will ensure it does not happen.

Thanks,
Chetan.C
1,721
Posted By chetan.c
Hi, Thanks for ther response. Would like to...
Hi,
Thanks for ther response.
Would like to add more information to the question.

The gzip file that im creating is by zipping individual stream of data through datastage.
I am calculating the...
2,418
Posted By chetan.c
Thanks Gary. But what i want to know is the...
Thanks Gary.
But what i want to know is the compressed byte offset.

Example:
Record1:
Compressed byte offset:0
Record2:
Compressed byte offset=Compressed byte length(Record1).

Something...
1,721
Posted By chetan.c
Gzip reader
Hi ,
I have gzip file.
Is it possible to script a code which can read from compressed byte offset to uncompressed byte length?


Regards,
Chetan.C
Showing results 1 to 25 of 51

 
All times are GMT -4. The time now is 08:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy