![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| convert the below perl sript to shell script | mail2sant | Shell Programming and Scripting | 1 | 04-04-2008 10:36 AM |
| Shell Sript | jazz8146 | UNIX for Dummies Questions & Answers | 3 | 01-11-2008 11:07 AM |
| Shell Sript - Spell Checker Assign | ccfc1986 | Shell Programming and Scripting | 9 | 11-14-2007 09:52 PM |
| PGP Auto Respond | queenie680 | UNIX for Dummies Questions & Answers | 1 | 11-08-2007 07:00 PM |
| Volcheck does not respond | nikk | UNIX for Advanced & Expert Users | 2 | 01-10-2005 02:08 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sript need, please respond
Hi
I am looking for the script which can move 1month old data from a TXT file.actully in this file data is appended on daily basis.pleasehalp me out. Here is the file content : $head abc.txt. 20070301130052,xxz. 20070307132111,cvasjchgjhcg gacg chjbgasjkchjk. 20070307133029,gcvashcvgjchklk. 20070308070017,hbcjkbgcjkhk. 20070308084700,hjcgjhcg. 20070308114137,kjcghjk. $tail abc.txt 20080304113050,cgsjkchskjchskch. 20080304113053,cvbnsckhhkhcjs cjksdhcklsjcl. 20080304120046,cvbsdcbksdhj cvhbskcvnhsdkl svjscvkmj. 20080304120048,vgsdjkv vbsdkvhj vnsdvlmj vnm. I want to remain only one month data in this file and cut other data and mv that into new location. Thanks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
This is the Third thread you've started for this question.
unix script to takes the old data from a TXT file and compress them into new file Script needed Please stop multiple posting - it is against the rules of the forum; and if you want assistance, it would be best to provide what you have come up with yourself and ask for pointers rather than attempting to get others to do all the work. |
|
#3
|
|||
|
|||
|
anyways plz take care in posting duplicate threads.
Still then one suggestion. Why are you taking old data to a seperate file. Try to create new files based on date and append the data to that file. |
|
#4
|
|||
|
|||
|
apologies for this, will take care in future
Actually i there are other processes related to the thid file which will affect if i created more than one file. Thanks in advance |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|