Search Results

Search: Posts Made By: vsachan
2,407
Posted By vsachan
Thanks rbatte1....its working and giving me the...
Thanks rbatte1....its working and giving me the result. But it is very slow, if it is a large file.Could you help me to find is there any way we can make the execution fast for this command.
2,407
Posted By vsachan
Find the original file size of encrypted file
Hi,
I am trying to find out the original file size of an encrypted file in SunOS.
The file was decrypted with gpg command.

I want to know the size of the orginal file without decrypting it. I am...
1,630
Posted By vsachan
Balance the load of files across queues using shell script
Hi,
I need to balance the load to be processed by the system using shell script.
The scenario is like below:

Suppose there are some files in a directory:

-rw-rw-r-- 1 usr usrgrp ...
1,431
Posted By vsachan
Loop in shell script
Hi Friends, I have a file. the content is as below:
file1:
/A/B/C/abc.txt
2013-07-28 13:50:00,2013-07-31 01:00:00,5,710
/A/B/C/xyz.txt
2011-09-21 18:30:00,2013-07-30 06:15:00,15,65135 ...
2,286
Posted By vsachan
Thanks Don Cragun..yes now the code is working...
Thanks Don Cragun..yes now the code is working fine with large data.
2,286
Posted By vsachan
Thanks Joyeg...I had the script to calculate the...
Thanks Joyeg...I had the script to calculate the difference but it is taking too much time..Let me explain you the logic that is being used by me:
for i in `cat calc_file_list.txt`
do
echo "$i"...
2,286
Posted By vsachan
Difference between 2 dates
Hi Friends,

I have a file that has the contents like below:
file1.txt
5,13/07/2013 23:25:25,14/07/2013 19:40:21
5,13/07/2013 23:25:25,14/07/2013 19:40:43
5,12/07/2013 23:50:50,13/07/2013...
10,411
Posted By vsachan
Thanks Corona...what to write inside the...
Thanks Corona...what to write inside the query...But I am not able to form the query..If possible, could you please mention the coding steps as I do not have too much idea of shell scripting?
10,411
Posted By vsachan
Hi Corona...Thanks for the info...but what is...
Hi Corona...Thanks for the info...but what is this header and footer...could you please modify your script with the sql query..I mean where to put ... so that I can understand?
10,411
Posted By vsachan
Thanks for your suggestion Spacebar.... :) but...
Thanks for your suggestion Spacebar.... :)
but I can not touch the database...So we need to only use shell script.
10,411
Posted By vsachan
Hi Corona, Thanks for the suggestion..but still...
Hi Corona,
Thanks for the suggestion..but still it is not working...
the input text file is like below:
1234
7654
9654
5412
7653
.
.
.
9873
6513

I need to run sql query inside a script...
10,411
Posted By vsachan
Shell script to run sql query having a long listing of parameters
Hi,
I have a query regarding execution of a sql query having long listing of parameters ..I need to execute this query inside a shell script.

The scenario is like....

Suppose I have a file...
3,117
Posted By vsachan
sftp using password not working in unix
Sorry to post this thread as it has been asked several times. But my question is that I need to write a shell script to transfer a file from machine A to machine B using sftp. I generated pvt-pub key...
29,561
Posted By vsachan
Error : cat: 0652-050 Cannot open
After processing around 300 files , I am getting the below error.Please help me to resolve it

cat: 0652-050 Cannot open /dir1/dir2/dir3/dir/abc.txt
mv: 0653-401 Cannot rename...
22,744
Posted By vsachan
Find files only in current directory...not subdirectories
Hi,
I have to find files only in the current directory...not in the sub directories.
But when I use Find command ... it searches all the files in the current directory as well as in the...
3,921
Posted By vsachan
thanks chihung....but 20:06 and 20:09 are...
thanks chihung....but 20:06 and 20:09 are variables..that are supplied by the user...how to pass variables...
3,921
Posted By vsachan
Thanks Corona... But it is giving error... ...
Thanks Corona...
But it is giving error...
gunzip -c ABCDEF.gz | awk -F, -v T1="20:00:00" -v T2="20:01:00" '{if(T1>=$2)&&(T2<=$2) print $0'

error is:
Syntax Error The source line is 1.
The...
3,921
Posted By vsachan
How to Compare timestamp
Hi,
my script is accepting the time from user. Then I have to select all records from file that lie between the time stamp supplied by user.

For eg
File format:
-----------...
1,218
Posted By vsachan
The file format is like : ...
The file format is like :
00.87.123.45|54999999999|98765|-|[15/NOV/2011:20:02:08...
1,218
Posted By vsachan
search a number in very very huge amount of data
Hi,
I have to search a number in a very long listing of files.the total size of the files in which I have to search is 10 Tera Bytes.

How to search a number in such a huge amount of data...
4,796
Posted By vsachan
Thanks all of you...awk '!x[$0]++' file its...
Thanks all of you...awk '!x[$0]++' file its working

:)
4,796
Posted By vsachan
the problem is that the file size is 100 MB - 150...
the problem is that the file size is 100 MB - 150 MB

input file:
---------
1,2, ,TTT,DDFG,
1,2, ,TTT,DDFG,
1,2, ,TTT,DDFG,
7,8, ,TTT,DDFG,
1,2, ,TTT,DDFG,
1,2, ,TTT,DDFG,

output file...
4,796
Posted By vsachan
Remove duplicate lines from a 50 MB file size
hi,
Please help me to write a command to delete duplicate lines from a file. And the size of file is 50 MB. How to remove duplicate lins from such a big file.
1,975
Posted By vsachan
Thanks a lot Corona688. Can you please explain...
Thanks a lot Corona688. Can you please explain the code so that in future I can write the logic myself.

:)
1,975
Posted By vsachan
join rows based on the column values
Hi,
Please help me to convert the input file to a new one.

input file:
--------
1231231231 3 A
4561223343 0 D
1231231231 1 A
1231231231 2 A
1231231231 4 D
7654343444 2 A
4561223343 1 D...
Showing results 1 to 25 of 41

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