Search Results

Search: Posts Made By: sentak
1,571
Posted By sentak
I am using ksh
I am using ksh
1,571
Posted By sentak
File processing
Hello,

I am trying to find a solution which could be simple rather than coding unnecessary code. Scenario I have is :-

I have a line sequential text file and while reading the file I need to...
9,750
Posted By sentak
How to delete first 10 words from file
Hi,

Could you please let me know, how to delete first 10 words from text files using vi?

10dw will delete it from current line, how to do it for all the lines from file?

Thanks
12,857
Posted By sentak
That's the problem.. When rsysnc copies the...
That's the problem.. When rsysnc copies the incomplete files, the target server picks up the incomplete file and process.. Which we don't want to do it.. That's why we need some kind of way to stop...
Forum: Solaris 02-14-2008
4,685
Posted By sentak
Many thanks for all your replies. Really...
Many thanks for all your replies. Really appreciate your response.

Is there a way in rsync to ignore incomple files?
12,857
Posted By sentak
Thanks for the details. We have thought about all...
Thanks for the details. We have thought about all these options... Since we do scp using wild card, option 3 flag option is not possible...

Anyway do you know any option in rsync to ignore the...
Forum: Solaris 02-13-2008
4,685
Posted By sentak
How to ignore incomplete files
On Solaris, suppose there is a directory 'dir'.
Log files of size approx 1MB are continuously being
deposited here by scp command. I have a script that scans
this dir every 5 mins and moves away...
12,857
Posted By sentak
How to ignore incomplete files
On Solaris & AIX, suppose there is a directory 'dir'.
Log files of size approx 1MB are continuously being
deposited here by scp command. I have a script that scans
this dir every 5 mins and moves...
3,422
Posted By sentak
I just used grep -n to and do awk to get the...
I just used grep -n to and do awk to get the first line number and get the last line number. calculate the number of lines based on lin number and Use tail to get the last chunk.

Hope above helps.
3,422
Posted By sentak
All, Thanks for all your response. I have...
All,

Thanks for all your response. I have managed to solve the problem using grep & tail.
3,422
Posted By sentak
I don't have gawk on my system. I am using sun...
I don't have gawk on my system. I am using sun OS.

But I am tring the below, which is not working either

awk '{
if( $1 == "**********************************" )
{
...
3,422
Posted By sentak
Thanks for the response. But I tried on my file...
Thanks for the response. But I tried on my file and I am getting the below error

nawk: input record ` Disconnected from O...' too long
3,422
Posted By sentak
file edit help
Hi,

Could anyone give me a idea how to strip the lines from a given file. example

***********
1st occurence
1st occurence
1st occurence
1st occurence
***********
2nd occurence
2nd...
Showing results 1 to 13 of 13

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