Search Results

Search: Posts Made By: mhssatya
835
Posted By mhssatya
thanks. it moves the files correctly except...
thanks.

it moves the files correctly except the one i want but throws error like

cannot move /home/huft/test to a sub-direcotry of itself 'home/huft/test/test'

how to have not get this...
835
Posted By mhssatya
Help with command
Hi,

I have different files in a directory along with a file named test.log.

I need to move all the files in the directory except the test.log file to a different directory.

How can we do...
2,709
Posted By mhssatya
Awesome!!!!! Perfect. But why is this...
Awesome!!!!!

Perfect. But why is this different behavior on different boxes?
2,709
Posted By mhssatya
The script checks a file and then writes the data...
The script checks a file and then writes the data rows to the new file.

The file will be like this format

Header
Data
Conut of data rows

If the data rows equals the last row in the file...
2,709
Posted By mhssatya
Script behaving differently on two servers
All,

I have a script that runs on 2 servers and there seems to be something wrong. It's producing different results on the 2 servers.

Here is the script on server1 which is behaving...
3,851
Posted By mhssatya
IFS="|" means input field sepeator is "|". ...
IFS="|" means input field sepeator is "|".

IFS=Input Field Seperator
4,811
Posted By mhssatya
Jim, The line.txt file is still 0 bytes.
Jim,

The line.txt file is still 0 bytes.
4,811
Posted By mhssatya
I am still getting message
I am still getting message
4,811
Posted By mhssatya
How to read a particular line in a file with 500000 records init
I am trying to open a file and check a record. The file has 543267 records and I want to check the record 514455. I am trying to open in vi and go to that line

:514455 but i get the error not...
8,316
Posted By mhssatya
Thanks Reborg!!!
Reborg,

Let me get back to you on this. Once again thanks for your reply's man. Please keep looking in this thread as i will post the problem if any.

Thanks my friend,
Satya
8,316
Posted By mhssatya
Thanks for coming back
Reborg,

Your reply gives me lot of boost man. Thanks for your reply.

The number of fields will always be the same either in the header or data rows.

But if the entire row or record is...
8,316
Posted By mhssatya
Critical situation
Sravan,

Thanks Sravan for your reply.

Vgersh/Reborg,

Did you get a chance to look at it? Please help.
8,316
Posted By mhssatya
Please help!!! Critical situation
Reborg,

I don't know whether you got a chance to look at the problem or not. Each record in the file is having around 50 fields and each of them seperated by "|". So because of this the records...
1,533
Posted By mhssatya
Please help Moderators. Unix Masters.
Hi Vgersh,

I have a quick problem that needs to be solved as soon as possible. I am using a script written by Reborg for doing a file manipulation on files. The script is in the posted forum...
8,316
Posted By mhssatya
Please Read REBORG
Reborg,

Sorry I haven't been able to get back to you till now. The code is working fine but there is a problem with the file i am receiving. It's having more than 50 fields each seperated by "|"...
8,316
Posted By mhssatya
Reborg, Sorry I am bad!!! I am getting the...
Reborg,

Sorry I am bad!!! I am getting the below error: Are we missing brackets some where. I tried with some changes but it didn't work.

syntax error The source line is 37.
The error...
8,316
Posted By mhssatya
Reborg, If I want to throw the error along...
Reborg,

If I want to throw the error along with the filename having error in rowcount what should I change? Just specifying FILENAME at error portion is not throwing the file having error. ...
8,316
Posted By mhssatya
Reborg, Thank you very much for the...
Reborg,

Thank you very much for the explanation my friend.
8,316
Posted By mhssatya
Reborg, Can you please explain just the 3...
Reborg,

Can you please explain just the 3 main loops in your script if you don't mind?

I will appreciate if you can so that I will not have gaps in my understanding and what's actually it is...
8,316
Posted By mhssatya
Reborg, It's working!!!!! I have changed...
Reborg,

It's working!!!!! I have changed that to what Vgresh has suggested in earlier posts. It's working now.

changed portion here:



to



Once again I am learning a lot from this...
8,316
Posted By mhssatya
Reborg, It created the file CARE01_DLY_ ...
Reborg,

It created the file CARE01_DLY_ The date portion is missing though. Are we missing any where?
8,316
Posted By mhssatya
Reborg, It created the file with name...
Reborg,

It created the file with name ${1}_${date+%Y%m%d). I should have kept single quotes i guess. Kindly suggest.
8,316
Posted By mhssatya
Reborg, You are simply great man!!!! :) ...
Reborg,

You are simply great man!!!! :)

I just changed the code so that I am not hard coding the name of the final file. Please let me know if this works. I am just including the...
8,316
Posted By mhssatya
Reborg, It's not writing the data to the...
Reborg,

It's not writing the data to the CARE01_DLY_20060725 file but it created one file with name CARE01_DLY_AUS_20060725_new with one line of data.

Please see output from below:

3
7
3...
8,316
Posted By mhssatya
Reborg: Just a small question. If at the...
Reborg:

Just a small question. If at the end of writing data rows into new files for each respective file if I want to append all the data rows into one single file what should i do? This should...
Showing results 1 to 25 of 59

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