12-10-2001
To delete content of many file
Hi All,
I want to delete the content of some files,which are specified through wild-card option,but i want to restore the file.
I.e I just want to delete the contents file parameters shouldn't be changed.
[Touch is not my answer].
Please provide me the answer.
Thaning u all in advance
Athresh
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm just starting out in scripting (taking online classes) but I need to know how to clean out (delete) the content of a number of logs. All of the files end in 'trc'. Does anyone have a script or command (SED or AWK) I can use?
Julie (4 Replies)
Discussion started by: Jbolin01
4 Replies
2. Shell Programming and Scripting
Hi Friends
I have a file called processLog.txt file
processLog.txt
---------------
echo "line starts "$LINE
suppCode=${LINE:0:3}
#gatewayArchive=`scp root@mrp-gateway:/usr/local/apache/data/PLAT/MIMUS/upload/PROD/archive/112042708173000.txt /home/krishnaveni/scripts/tempFolder`
#echo... (5 Replies)
Discussion started by: kittusri9
5 Replies
3. Shell Programming and Scripting
OK, best is I explain what the operating enviroment is.
Linux, but Motomagx. It is a Linux operated mobile phone, Motorola V8.
I am writting a shell script, but got stuck.
I have to delete the complete content of file 1 in file 2.
I have attached the 2 files.
You can see that the content of... (2 Replies)
Discussion started by: rasputin007
2 Replies
4. Shell Programming and Scripting
Hello Team,
Any one suggest how to delte the below special character from a file which is having one column 10 rows of same below content.
----------------------------------------
Kosten|bersicht gemd_ ' =Welche Kosten kvnnen... (2 Replies)
Discussion started by: kanakaraju
2 Replies
5. Shell Programming and Scripting
To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
cd... (2 Replies)
Discussion started by: sreekumarhari
2 Replies
6. Shell Programming and Scripting
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
7. Shell Programming and Scripting
I have following script to ping multiple ips but i want to delete ip.csv file content after running script .....but before deleting content i have ask user yes/No prompt depend on user input Yes/no ip.csv content will delete..
#!/bin/bash
for enodeb in `cat /tmp/ip.csv`
do
ping -c 2... (3 Replies)
Discussion started by: Ganesh Mankar
3 Replies
8. Shell Programming and Scripting
Hello,
I have been trying to write a script where I could get awk to delete data before and after a matched pattern.
For eg
Raw data
Start
NAME = John
Age = 35
Occupation = Programmer
City = New York
Certification Completed = No
Salary = 80000
End
Start
NAME = Mary
Age = 25... (2 Replies)
Discussion started by: sidnow
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
How to Delete all mbox content in AIX?
Thanks. (2 Replies)
Discussion started by: big123456
2 Replies
LEARN ABOUT DEBIAN
exosip2_message
eXosip2 request outside of dialog(3) libeXosip2 eXosip2 request outside of dialog(3)
NAME
eXosip2 request outside of dialog -
Functions
int eXosip_message_build_request (osip_message_t **message, const char *method, const char *to, const char *from, const char *route)
int eXosip_message_send_request (osip_message_t *message)
int eXosip_message_build_answer (int tid, int status, osip_message_t **answer)
int eXosip_message_send_answer (int tid, int status, osip_message_t *answer)
Detailed Description
Function Documentation
int eXosip_message_build_request (osip_message_t **message, const char *method, const char *to, const char *from, const char *route)
Build a default request message.
This method will be updated to send any message outside of dialog In this later case, you'll specify the method to use in the second
argument.
Parameters:
message Pointer for the SIP request to build.
method request method. (like 'MESSAGE' or 'PING'...)
to SIP url for callee.
from SIP url for caller.
route Route header for request. (optional)
int eXosip_message_send_request (osip_message_t *message)
Send an request.
Parameters:
message SIP request to send.
int eXosip_message_build_answer (inttid, intstatus, osip_message_t **answer)
Build answer for a request.
Parameters:
tid id of transaction.
status status for SIP answer to build.
answer The SIP answer to build.
int eXosip_message_send_answer (inttid, intstatus, osip_message_t *answer)
Send answer for a request.
Parameters:
tid id of transaction.
status status for SIP answer to send.
answer The SIP answer to send. (default will be sent if NULL)
Author
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 3.1.0 Sun Jun 24 2012 eXosip2 request outside of dialog(3)