10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I have 1000 files labelled data1.txt through data1000.txt. I want to write a script that prints out the number of lines in each txt file and outputs it in the following format:
Column 1: number of data file (1 through 1000)
Column 2: number of lines in the text file
Thanks! (2 Replies)
Discussion started by: evelibertine
2 Replies
2. Shell Programming and Scripting
I want to write a Perl script that manipulates multiple files. In the directory, I have files 250.*chr$.ped where * is from 1 to 1000 and $ is from 1-22 for a total of 22 x 10,000 = 22,000 files.
I want to write a script that only manipulates files 250.1chr*.ped where * is from 1 to 22.... (10 Replies)
Discussion started by: evelibertine
10 Replies
3. UNIX for Dummies Questions & Answers
I have a script where the the 9th line looks like this:
$filename=sprintf("250.1chr%d.ped", $N);
I want to modify this script 1000 times, changing 250.1chr%d.ped to 250.2chr%d.ped, 250.3chr%.ped.......and so on all the way to 250.1000chr%d.ped and store each output in files called
... (4 Replies)
Discussion started by: evelibertine
4 Replies
4. UNIX for Dummies Questions & Answers
Hi
Here is my script that calls my awk script
#!/bin/bash
set -x
dir="/var/local/dsx/csv"
testfile="$testfile"
while getopts " f: " option
do
case $option in
f ) testfile="$OPTARG";;
esac;
done
./scriptFile --testfile=$testfile >> $dir/$testfile.csv
It calls my awk... (1 Reply)
Discussion started by: ladyAnne
1 Replies
5. Shell Programming and Scripting
I would like to find whether a file exists in the UNIX machine. That i can check using
if ;then
echo "exists"
echo " `cat $file` "
else
echo "invalid file"
fi.
and i can find out using :
find / -name "filename" . But it i have wanted to search in all directories. How to get... (3 Replies)
Discussion started by: rparsa001
3 Replies
6. Shell Programming and Scripting
can anyone help me in writing script in UNIX for copying files in two server from the third server after checking the files in the third server and if there is anything new in the third server automatically it should be added to the rest of the two servers and if same file is existing in the two... (4 Replies)
Discussion started by: REKHA09
4 Replies
7. Shell Programming and Scripting
I'm getting the following errors when I try to write a script to unzip some zip files. When I use the free trial copy of the commerical winzip program, however, they work fine. When I use -l or -t on unzip it indicates no errors. When I use the -o switch interactively from the bash command line it... (1 Reply)
Discussion started by: siegfried
1 Replies
8. Shell Programming and Scripting
I am new to shell scripting and would appreciate any help I can get.
I need to write a Unix shell script that I will run whenever I have a tar file to uncompress(Korn shell). Please put in mind that I have different environements that I will run it on.
Thanks in advance ;) (4 Replies)
Discussion started by: nkem22
4 Replies
9. Shell Programming and Scripting
Hi there,
I am trying to do somehting similar, but on a wider scale.
I am trying to write a script that would open the home directory, open the first (of 650) user's folder
open the ?mail directory, which every user has
Then I need the script to read each of the files and folder names with... (2 Replies)
Discussion started by: technett
2 Replies
10. Shell Programming and Scripting
I have a problem with syntax methinks, when it comes to sed.
This is my script for a user to type sed commands:-
yes=y
function writefunction
{
$tool $command $newfilename $filename
}
echo
echo
echo "1. Type the name of the tool you are using i.e sed."
read tool
echo... (3 Replies)
Discussion started by: Trufla
3 Replies
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)