10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a file as :-
ABC
DEF
GHI
JKL
<BlankLine>
MNO
PQR
STU
VWX
<BlankLine>
YZA
I need it as below:-
ABCDEFGHIJKL;
MNOPQRSTUVWX; (3 Replies)
Discussion started by: jassi10781
3 Replies
2. Shell Programming and Scripting
Hi All,
Am trying to write wrapper shell/bash script on a utility tool for which i need to pass 2 files as arugment to execute utility tool.
Wraper script am trying is to do with above metion 2 files.
utility tool accepts :
a. userinfo file : which contains username
b. item file : which... (2 Replies)
Discussion started by: Optimus81
2 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
4. Shell Programming and Scripting
Hi,
I need to match lines after a pattern, upto the first blank line.
Searched in web and some forums but coulnt find the answer.
where <restart_step> =
10 -- Execute query
20 -- Write the contents to the Oracle table
30 -- Writing Contents to OUTPUT... (7 Replies)
Discussion started by: justchill
7 Replies
5. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
3 Replies
6. Shell Programming and Scripting
So i have a file which contains paths to JPG images separated by a space.
I have to separate them each path to another file. So, I have to search all strings that start from /home/ and ends with .jpg or .png
Then write each one to another file...
Can you please help me on doing this???:cool: (11 Replies)
Discussion started by: hakermania
11 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have reached at a specified offset from the start of file. My requirement is that I want to read only those lines, which have the string READ / ALTER / UPDATE. As soon as, none of these literals are found in the subsequent line, I want to stop reading. Is there any feature of grep which... (1 Reply)
Discussion started by: saurabhsinha23
1 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
I want to read a file starting with "*" up to till it encounters a blank line and to redirect this output to a different file.Plz suggest how to write a script for this.
e.g:-
* PK Sent Email (11.23)
CALYPSO 1243215 9116457 NEW TRAD FAILED Nov 23 2007 9:34AM OASYS: DPS: SINGCORP invalid... (1 Reply)
Discussion started by: adityam
1 Replies
9. Shell Programming and Scripting
Hi ,
I want to read a file starting with "*" up to till it encounters a blank line and to redirect this output to a different file.Plz suggest how to write a script for this.
e.g:-
* PK Sent Email (11.23)
CALYPSO 1243215 9116457 NEW TRAD FAILED Nov 23 2007 9:34AM OASYS: DPS: SINGCORP invalid... (1 Reply)
Discussion started by: adityam
1 Replies
10. Shell Programming and Scripting
In my script i am writing to a counter file the no of processes i had started,
that is each time i start a process, i will increment the content of counter file and also when the process ends i will decrement the content of the file.
after this i do some other activities, by now i want to... (1 Reply)
Discussion started by: senthilk615
1 Replies
Jifty::DBI::Column(3pm) User Contributed Perl Documentation Jifty::DBI::Column(3pm)
NAME
Jifty::DBI::Column - Encapsulates a single column in a Jifty::DBI::Record table
DESCRIPTION
This class encapsulates a single column in a Jifty::DBI::Record table description. It replaces the _accessible method in
Jifty::DBI::Record.
It has the following accessors: "name type default validator boolean refers_to readable writable length".
new
is_numeric
Returns true if the column is of some numeric type, otherwise returns false.
is_string
Returns true if this column is a text field
is_boolean
Returns true if this column is a boolean
serialize_metadata
Returns a hash describing this column object with enough detail to fully describe it in the database. Intentionally skips "record_class",
all column attributes starting with "_", and all column attributes which are undefined. The "known" attributes in the "attributes" hash
are flattened and returned as well. The list of known attributes are:
container
label hints render_as
display_length
valid_values
available_values
autocompleted
documentation
no_placeholder
Setting this to a true value causes "load_by_cols" in Jifty::DBI::record to not use a placeholder when loading the column. This can
allow the database to come up with better query plans in some cases.
serialize_metadata2
Returns a hash describing this column object with enough detail to fully describe it in the database. Intentionally skips "record_class",
all column attributes starting with "_", and all column attributes which are undefined.
validator
Gets/sets the validator coderef for the column.
read
DEPRECATED. Use "$column->readable" instead.
write
DEPRECATED. Use "$column->writable" instead.
length
DEPRECATED. Use "$column->max_length" instead.
until
DEPRECATED. Use "$column->till" instead.
active
Returns the a true value if the column method exists for the current application version. The current application version is determined by
checking the "schema_version" in Jifty::DBI::Record of the column's "record_class". This method returns a false value if the column is not
yet been added or has been dropped.
This method returns a false value under these circumstances:
o Both the "since" trait and "schema_version" method are defined and "schema_version" is less than the version set on "since".
o Both the "till" trait and "schema_version" method are defined and "schema_version" is greater than or equal to the version set on
"till".
Otherwise, this method returns true.
perl v5.14.2 2012-01-25 Jifty::DBI::Column(3pm)