07-11-2019
That worked out beautifully. And yes, the asset name could be any FQDN so no spaces at all. Thanks a lot!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to get a total number of tapes w/out headers or footers in a ERV file and append it to the file. For some reason I cannot get it to work. Any ideas?
#!/bin/sh
dat=`date +"%b%d_%Y"`
+ date +%b%d_%Y
dat=Nov16_2006
tapemgr="/export/home/legato/tapemgr/rpts"... (1 Reply)
Discussion started by: gzs553
1 Replies
2. Shell Programming and Scripting
Hi Gurus,
I have a requirement like this and have to create a UX shell scripts. Thanks in advance.
File-in:
------
Header2007-12-012007-11-21
100|xyz|was
101|wsa|qws
......
.......
Output should be:
-------------------
2007-12-01|100|xyz|was
2007-12-01|101|wsa|qws
......
.......... (7 Replies)
Discussion started by: vsubbu1000
7 Replies
3. Linux
say i have these many file in a directory named exam.
1)/exam/newfolder/link.txt.
2)/exam/newfolder1/
and i create a tar say exam.tar
well the problem is,
when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories.
on the... (2 Replies)
Discussion started by: Tanvirk
2 Replies
4. Programming
hi all,
In an mp3 file , data is arranged in sequence of header and data ,how to retrieve data between two headers. Is the data between two headers fixed? because as per theory it says 1152 samples will be there , but dont knw how many bits one sample correspond to?
it would help if any c... (2 Replies)
Discussion started by: shashi
2 Replies
5. UNIX for Dummies Questions & Answers
So, I have a file that has some duplicate lines. The file has a header line that I would like to keep at the top.
I could do this by extracting the header from the file, 'sort -u' the remaining lines, and recombine them. But they are quite big, so if there is a way to do it with a single... (1 Reply)
Discussion started by: Digby
1 Replies
6. Shell Programming and Scripting
Hi All,
I need to BCP out a table into a text file along with the table headers. Normal BCP out command only bulk copies the data, and not the headers.
I am using the following command: bcp database1..table1 out file1.dat -c -t\| -b1000 -A8192 -Uuser -Ppassword -efile.dat.err
Regards,... (0 Replies)
Discussion started by: shilpa_acc
0 Replies
7. Shell Programming and Scripting
Hello All,
I have a file in the following format. I want to extract the date(020090930, 020090929) in the string "STPAGE020090930" and "STPAGE020090929" and prefix it to all lines below them. The output must be put into a new file.
STPAGE020090930
xyzz aalc... (3 Replies)
Discussion started by: john2022
3 Replies
8. UNIX for Dummies Questions & Answers
Friends,
I need help with the following in UNIX.
Merge all csv files in one folder considering only 1 header row and ignoring header of all other files.
FYI - All files are in same format and contains same headers.
Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies
9. Shell Programming and Scripting
I would like to print the output beginning with a header from a seperate file like this:
awk 'BEGIN{FS="_";print ((getline < "header.txt")>0)} { if (! ($0 ~ /EL/ ) print }" input.txtWhat am i doing wrong? (4 Replies)
Discussion started by: sdf
4 Replies
10. Shell Programming and Scripting
Hi
I have in put file A.txt
ABCDE1 JFHFJFJF3 1 1 SC1 12/10
ABCDE2 JFHFJFJF5 1 1 SC1 12/10
ABCDE3 JFHFJFJF5 1 1 SC1 12/10
ABCDE4 JFHFJFJF6 1 1 SC1 12/10
I want output in .csv with header:
Name SUb_N x y No Board
ABCDE1 JFHFJFJF3 1 1 SC1 12/10
ABCDE2 JFHFJFJF5 1 1 SC1... (7 Replies)
Discussion started by: pareshkp
7 Replies
LEARN ABOUT DEBIAN
ledgersmb::dbobject::asset
LedgerSMB::DBObject::Asset(3pm) User Contributed Perl Documentation LedgerSMB::DBObject::Asset(3pm)
NAME
LedgerSMB::DBObject::Asset - LedgerSMB Base Class for Fixed Assets
SYNOPSIS
This library contains the base utility functions for creating, saving, and retrieving fixed assets for depreciation
STANDARD PROPERTIES
id (integer)
Unique id number of asset.
description (text)
Text description of asset.
tag (text)
Arbitrary tag identifier, unique for current, non-disposed assets.
purchase_value (numeric)
Numeric representation of purchase value.
salvage_value (numeric)
Numeric representation of estimated salvage value.
usable_life (numeric)
Numeric representation of estimated usable life.
purchase_date (date)
Date item was purchase
start_depreciation (date)
Date item is put into service, when depreciation should start. If unknown we use the purchase_date instead.
location_id (int)
ID of business location where asset is stored.
department_id (int)
ID of department where asset is stored
invoice_id (int)
ID of purchasing invoice
asset_account_id (int)
ID of account to store asset value
dep_account_id (int)
ID of account to store cumulative depreciation
exp_account_id (int)
ID of account to store expense when disposed of.
obsolete_by (int)
Obsolete by other asset id. Undef if active, otherwise the id of the active asset that replaces this. Used for partial depreciation.
asset_class_id (int)
ID of asset class.
METHODS
save
Uses standard properties
Saves the asset item to the database
Sets any properties set by the database that were not in the original object, usually ID (if no match to current ID or if ID was
undef).
import_file
Parses a csv file. Sets $self->{import_entries} to an arrayref where each member is an arrayref of fields. It is up to the workflow
script to handle these entries.
Header information is set to $self->{import_header}.
get Gets a fixed asset, sets all standard properties. The id property must be set.
search
Searches for asset_items matching criteria. Sets $self->{search_results} to the result.
Search criteria set by the following properties: * id * asset_class * description * tag * purchase_date * purchase_value * usable_life
* salvage_value * start_depreciation * warehouse_id * department_id * invoice_id * asset_account_id * dep_account_id
Tag and description are partial matches. All other matches are exact. Undef matches all values.
save_note
Saves a note. Uses the following properties:
* id * subject * note
get_metadata
Sets the following:
* asset_classes: List of all asset classes * locations: List of all warehouses/locations * deprtments: List of all departments *
asset_accounts: List of all asset accounts * dep_accounts: List of all depreciation accounts * exp_accounts: List of all expense
accounts
get_next_tag
Returns next tag number
Sets $self->{tag} to that value.
import_asset
Uses standard properties. Saves record in import report for batch review and creation.
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(3pm)