02-22-2010
Yes. Thank you very much. I didn't know the relation between IFS and read...
And a very interesting article about de useless use of...
Thank you again
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am new to shell scripting, and I am trying to create a script that reads an input like the following
firstname:lastname:age
firstname:lastname:age
firstname:lastname:age
in a text file. I have a 2 part question. First how do I open the file in a shell script. And then how can... (7 Replies)
Discussion started by: TexasGuy
7 Replies
2. Programming
We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these... (2 Replies)
Discussion started by: Rajeshsu
2 Replies
3. UNIX for Advanced & Expert Users
I am not able to receive the message on socket in the current process when its waiting for its child to exit.
code looks something like below
//in one thread of the current process
//thread 1
===============================================
int numBytes = read(sockid,buf,SIZE); //Now the... (2 Replies)
Discussion started by: swap007
2 Replies
4. Shell Programming and Scripting
i need to read record by record i use script
#!/bin/ksh
for i in 'cat filename'
do
echo $1
done
but i dont get expected result
i just get filename echoed on screen (4 Replies)
Discussion started by: er_zeeshan05
4 Replies
5. Shell Programming and Scripting
Can anyone tell me how to read a file in perl having junk characters . I have only one junk character which is repeated many times in the file. While i'm reading and printing the file , it is displaying till the 1st occurence of that junk character and rest of the file is not being read. (1 Reply)
Discussion started by: k_surya
1 Replies
6. Shell Programming and Scripting
Hi Guys,
I am having a file which does not have any name when i do a ls -l
-rw-r--r-- 1 dctrdat1 dctrdata 35 Feb 09 08:04
-rw-r--r-- 1 dctrdat1 dctrdata 11961 Feb 08 06:40 DAI_data.txt
Now i want to see what is inside that file. Can you please let me know how to read... (9 Replies)
Discussion started by: mac4rfree
9 Replies
7. Shell Programming and Scripting
How do I filter only comments and still keep Line breaks at the end of the line!?
This is one of the common tasks we all do,, How can we do this in a right way..!?
I try to ignore empty lines and commented lines using following approach.
test.sh
# \040 --> SPACE character octal... (17 Replies)
Discussion started by: kchinnam
17 Replies
8. UNIX and Linux Applications
In LVM I have one volume grp and it has two logical volumes A and B and both are full,so I extended my volume grp to 1GB with another hard disk and add this space to A and put my resr data .Now problem is that I get data from first hard disk only but I m unable to find data which is in second hard... (0 Replies)
Discussion started by: Rahul chauhan
0 Replies
9. Shell Programming and Scripting
I want to read a file -line by line which consists of the following statements
Chr18:4000-4010
Chr20:4020-4030
Chr15:8000-8050
Pls. give a expression to read the line like this from a file
Chr18:4000-4010
the given two replies reading like that
Chr18:-10
but it is important to... (2 Replies)
Discussion started by: hravisankar
2 Replies
10. Shell Programming and Scripting
Hi,
I am trying to write a shell script to help with some digital signature work currently being undertaken where we have a file that contains a number of rows ending with ^M.
What I need to do is concatenate this using shell scripting and retain the control character. E.G.
abc^M... (5 Replies)
Discussion started by: chris01010
5 Replies
LEARN ABOUT PHP
dbplus_rcreate
DBPLUS_RCREATE(3) 1 DBPLUS_RCREATE(3)
dbplus_rcreate - Creates a new DB++ relation
SYNOPSIS
resource dbplus_rcreate (string $name, mixed $domlist, [bool $overwrite])
DESCRIPTION
Creates a new relation. Any existing relation sharing the same $name will be overwritten if the relation is currently not in use and
$overwrite is set to TRUE.
PARAMETERS
o $name
-
o $domlist
- A combination of domains. May be passed as a single domain name string or as an array of domain names. This parameter should
contain the domain specification for the new relation within an array of domain description strings. A domain description string
consists of a domain name unique to this relation, a slash and a type specification character. See the db++ documentation, espe-
cially the dbcreate(1) manpage, for a description of available type specifiers and their meanings.
Note
This function will also accept a string with space delimited domain description strings, but it is recommended to use an
array
o $overwrite
-
RETURN VALUES
NOTES
Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in
a future release of PHP. This function should be used at your own risk.
PHP Documentation Group DBPLUS_RCREATE(3)