09-09-2011
Thank you to everybody.
The solution was to set IFS to newline so that the loop did not interpret whitespace as a field seperater.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
i have a server with 4 harddisks
now i want to somehow combine these 4 harddisks to show up to the system as 1 big harddisk, so i can put my web-root into that big virtual partition.
can you guys please point me into to the right direction to achieve this?
thanks a lot in advance! (2 Replies)
Discussion started by: scarfake
2 Replies
2. Shell Programming and Scripting
This is related to one of my previous post but now with a slight difference: I need the "Updated:" to be in one line as well as the "Information:" on one line as well. These are in multiple lines right now as seen below. These can have 2 or more lines that needs to be in one line.
System name:... (8 Replies)
Discussion started by: The One
8 Replies
3. Shell Programming and Scripting
I have 2 files: phone.txt and mobile.txt
ex. phone.txt
MOBILENO|DISABLE_DATE
919687877754|9/1/2011|
919687877762|9/1/2011|
919687880573|9/1/2011|
919687882658|9/2/2011|
Ex. mobile.txt
MOBILENO |TIME
919687880573|2011-09-17 12:23:40|
919687882658|2011-10-10 21:15:33|... (4 Replies)
Discussion started by: khingx
4 Replies
4. Shell Programming and Scripting
Hello Guys,
I have a small loop problem as below.
I have 3 different values to be used while running the same script -
va1="some-value1"
va2="some-value2"
va3="some-value3"
Now I want to use these three variable values to be used for running the same command, like -
while... (1 Reply)
Discussion started by: rockf1bull
1 Replies
5. Shell Programming and Scripting
i have below list of files in a directory.
/root/admin/files/file1.txt
/root/admin/files/file2.txt
/root/admin/files/file3.txt
/root/admin/files/pattern.txt
/root/admin/files/server.txt
i need combine the above text files in the below sequence,
file1.txt, pattern.txt,server.txt =>... (8 Replies)
Discussion started by: vel4ever
8 Replies
6. Shell Programming and Scripting
I am trying to combine 4 .dat files into one single Output file
Inputs are:- file123.dat, file256.dat, file378.dat & file490
Expected Output:-
FileName=file1
{text from file1}
EOF
{blank line}
FileName=file2
{text from file2}
EOF
{blank line}
FileName=file3
{text from file3}
EOF... (4 Replies)
Discussion started by: lancesunny
4 Replies
7. Shell Programming and Scripting
Hi Experts
Please help me out with the following thing:
2 files and want the output file: {No for using FOR loop because I got 22 million lines}
Tried that "It processes only 8000 records per hour"
I need a faster way out !!!
FileA:
9051
9052
9053
9054
9055
9056
9057
9058
9059
... (5 Replies)
Discussion started by: navkanwal
5 Replies
8. Shell Programming and Scripting
Hi All ,
I have a file with below data
# User@Host: xyz @
# Query_time: t1 Lock_time: t2 Rows_sent: n1 Rows_examined: n2
SET timestamp=1396852200;
select count(1) from table;
# Time: 140406 23:30:01
# User@Host: abc @
# Query_time: t1 Lock_time: t2 Rows_sent: n1 Rows_examined:... (6 Replies)
Discussion started by: rakesh_411
6 Replies
9. UNIX for Dummies Questions & Answers
Checklist
1.1; Contains Solaris
1.2; Contains Patches
1.3; <no output>
1.3.1; <no output>
Output1
1.1 Solaris 10 8/07 s10s_u4wos_12b SPARC
1.2 Patch: 127714-03 Obsoletes: Requires: 120011-14 Incompatibles: Packages: SUNWsshcu, SUNWsshdu, SUNWsshu Patch: 128253-01 Obsoletes:... (5 Replies)
Discussion started by: alvinoo
5 Replies
10. UNIX for Beginners Questions & Answers
My CSV file looks similar to this example (the K, L, and M are in the same cell as J but each on a new line within that cell):
1, A, B, C, D
2, E, F, G, H
3, I, J N, O,
K
L
M,
4, P, Q, R, S
I would like to have it look like this:
1, A,... (6 Replies)
Discussion started by: Kim Ashby
6 Replies
LEARN ABOUT DEBIAN
ledgersmb::dbobject::asset_class
LedgerSMB::DBObject::Asset_Class(3pm) User Contributed Perl Documentation LedgerSMB::DBObject::Asset_Class(3pm)
NAME
LedgerSMB::DBObject::Asset_Class - LedgerSMB Base Class for Asset Classes
SYNOPSIS
This library contains the base utility functions for creating, saving, and retrieving depreciation categories of assets.
STANDARD PROPERTIES
id Integer ID of record.
lable
Text description of asset class
asset_account_id
Integer id of asset account.
dep_account_id
Integer id of depreciation account.
method
Integer id of depreciation method.
METHODS
save
Properties used: id: (Optional) ID of existing class to overwrite. asset_account_id: Account id to store asset values dep_account_id:
Account id for depreciation information method: ID of depreciation method label: Name of the asset class unit_label: Label of the
depreciation unit
Typically sets ID if no match found or if ID not provided.
get_metadata
sets:
asset_accounts to arrayref of asset accounts dep_accounts to arrayref of depreciation accounts dep_methods to arrayrefo of depreciation
methods
get_asset_class()
Requires id to be set.
Sets all other standard properties if the record is found.
list_asset_classes
Sets classes to a list of all asset classes, ordered as per db.
Copyright (C) 2010, The LedgerSMB core team.
This file is licensed under the Gnu General Public License version 2, or at your option any later version. A copy of the license should
have been included with your software.
perl v5.14.2 2012-03-25 LedgerSMB::DBObject::Asset_Class(3pm)