Visit Our UNIX and Linux User Community

Sript need, please respond

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Sript need, please respond
# 1  
Old 03-05-2008
Sript need, please respond

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.

$tail abc.txt

I want to remain only one month data in this file and cut other data and mv that into new location.

Thanks in advance
# 2  
Old 03-05-2008
This is the Third thread you've started for this question.

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  
Old 03-05-2008
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  
Old 03-05-2008
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

Previous Thread | Next Thread
Test Your Knowledge in Computers #437
Difficulty: Medium
Vue.js is a free, proprietary JavaScript framework.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitoring Sript giving random end result

Hi Guys, I am developing a script to monitor GUI based FileNet Component "Component Manager" which logs it's running status in a log file. Log file is a huge file so in script I put last 300 lines of log file in seperate file and run script every 5 minutes. I am searching the string... (2 Replies)
Discussion started by: dhirajdsharma
2 Replies

2. Shell Programming and Scripting

compare dates using shell sript

I have 2 date feilds 2011-05-13:18:45 2011-05-13:18:30 I need to compare them and say its OK/NOK I tried this but dint work. systime=2011-05-13:18:45 shubtime=2011-05-13:18:30 if then echo" OK" else echo "NOK" fi In this its not same so the o/p should be NOK (2 Replies)
Discussion started by: LavanyaP
2 Replies

3. Programming

SQL Issue please respond !!!

Hi Folks, I have a issue regards space in the records. Example: 999207404 |sp818056|STEVEN |LAWRENCE | |2003 S Data Sales Mgr 77 |SVC ... (5 Replies)
Discussion started by: Haque123
5 Replies

4. Shell Programming and Scripting

convert the below perl sript to shell script

perl script: my $logdir = '/smp/dyn/logfiles/fsm/mp/mp'; $logdir = $logdir ."/mp${toDate}*"; i tried to make below .. but not working .. date +%m%d%y logdir = /smp/dyn/logfiles/fsm/mp/mp logdir=$logdir/mp"$date" but it was not working..... can someone please help me out in... (1 Reply)
Discussion started by: mail2sant
1 Replies

5. UNIX for Dummies Questions & Answers

Shell Sript

Hi All, I have four different files in four different directories. Each file contains exactly the same format logincode Forename Surname TutGroup Mark Basically i want to grab all the marks from each file and put them onto the end of one login code by using a shell script. I can grab all... (3 Replies)
Discussion started by: jazz8146
3 Replies

6. Solaris

server not respond

Hi all, i am phasing one problem yesterday.when i was login into sun server with my user id, i am trying to execute unix commands but the server responce is very slow. the command result will give after 5-10 min. i checked /var,/tmp and /export/home file system also.every thing is normal... (4 Replies)
Discussion started by: krishna176
4 Replies

7. Shell Programming and Scripting

Shell Sript - Spell Checker Assign

Hi Folks. I am currently working on a script that has to spell check a file and print the output to the screen in 2 columns like this. INCORRECT CORRECTION whio who weahter weather The file will allow the user to override the ispell command and save any... (9 Replies)
Discussion started by: ccfc1986
9 Replies

8. UNIX for Dummies Questions & Answers

PGP Auto Respond

This is relating PGP: I wrote a shell script to encrypt a file: pgpe -r <key> (file) Im looking to automate this but when I run my script it keeps running because it prompts: WARNING: The above key is not trusted to belong to: Do you want to use the key with this name? It's... (1 Reply)
Discussion started by: queenie680
1 Replies

9. Shell Programming and Scripting

Please respond immediately

Hi ..please tell me how to modinfy an existing file in a directory, i need commands like to open edit and save n execute the file in BASH. please respond immediately (3 Replies)
Discussion started by: deepti.1104
3 Replies

10. UNIX for Advanced & Expert Users

Volcheck does not respond

what should i do if there's no response by executing volcheck. Rgrds, --NIkk (2 Replies)
Discussion started by: nikk
2 Replies

Featured Tech Videos