Hi Guys here I am again,
I have two files in a specified location.
Location ex: /opt/xdm/input/
input file names: 1. abc_app.yyyymmdd.dtd
2. abd_app.yyyymmdd.dtd
I need to build a code that reads the files from the location based on the oldest date and cuts the date part... (5 Replies)
Hi,
Is it possible to remove the first part of the file name using find.
i.e i have something like 2006abc.txt , 1007bed.txt etc,
I wanna rename them to abc.txt , bed.txt
I tried some stupid way..
find . -name '*.txt' -exec mv {} `cut -f2-5 -d"_" {}` \;
somehow iam not getting it.
... (3 Replies)
I have an xml file, from where I need to take out Application2 entries and keep the others. I need to remove from <product> to </product> and the key element to look for while removing should be <application> as other pairs can be same for others.
<product>
... (10 Replies)
i have something like this in a file called mysqldump.sql
--
-- Table structure for table `Table11`
--
DROP TABLE IF EXISTS `Table11`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Table11` (
`id` int(11) NOT NULL... (14 Replies)
consider the following is the contents of the file
cat 11.sql
drop procedure if exists hoop1 ;
Delimiter $$
CREATE PROCEDURE hoop1(id int)
BEGIN
END
$$
Delimiter ;
.
.
.
.
drop procedure if exists hoop2;
Delimiter $$
CREATE PROCEDURE hoop2(id int)
BEGIN
END
$$ (8 Replies)
cat fileanme.txt
custom1=, custom2=, userPulseId=3005, accountPolicyId=1, custom3=, custom4=, homeLocationId=0, i need to make the fields appear in next line based on identifier (,) ie comma
so output should read
cat fileanme.txt
custom1=,
custom2=,
userPulseId=3005,
... (8 Replies)
consider below file contents
cat myOutputFIle.txt
8 CCM-HQE-ResourceHealthCheck:
Resource List :
No RED/UNKNOWN resource Health entries found
----------------------------------------------------------
9 CCM-TraderLogin-Status:
Number of logins: 0... (4 Replies)
I have the file:
s3_T0(2) Pos "1" "2"
s1_T1(2) Pos "1" "2"
---
0 0
1 0
0 1
1 1
---
1 2 "tau0"
1 2 "h10"
I want to patternmatch on ---
and get only the third part i.e.
1 2 "tau0"
1 2 "h10"
I wanted to start simple but even something like (5 Replies)
Gents,
Is there the chance to remove part of the file,
Taking in consideration this condition.
For each record the first row start with the string % VE
should be 56 rows for each records..
first row = % VE
last row = % sw
total 56 rows for each record.
Then in the case that the... (4 Replies)
Discussion started by: jiam912
4 Replies
LEARN ABOUT DEBIAN
lldptool-app
lldptool(8) Linux lldptool(8)NAME
APP - Show / manipulate APP TLV configuration
SYNOPSIS
lldptool -t -i ethx -V APP [-c app]
lldptool -T -i ethx -V APP [-d] app=prio,sel,pid
DESCRIPTION
The APP TLV is an informational TLV and will advertise the current configured application table. If the peer APP TLV and a local APP TLV
match the same selector and protocol field the local parameter is used.
ARGUMENTS
app Configures a local application data field using the three parameters priority (prio), selector (sel), and protocol (pid). The -d
option can be provided to remove an entry which matches the three parameters.
Theory of Operations
The APP TLV is an informational TLV for most end stations it is not expected that setting APP data should be required. Peer data will be
processed and added to the application data table by default assuming there does not already exist a local entry with matching selector and
priority fields.
By adding APP data to the application table it is available for applications, eg iscsid, to query. Applications query for a specific proto-
col and selector and may use this data to map traffic to the corresponding traffic class.
EXAMPLE & USAGE
Configure ISCSI application for priority 4 on eth2
lldptool -T -i eth2 -V APP app=4,2,3260
Configure FCoE application for priority 3 on eth2
lldptool -T -i eth2 -V APP app=3,1,35078
Remove FCoE application for priority 3 on eth2
lldptool -T -i eth2 -V APP -d app=3,1,35078
Display locally configured application table on eth2
lldptool -t -i eth2 -V APP -c app
Display last transmitted APP TLV on eth2
lldptool -t -i eth2 -V APP
SOURCE
o IEEE 802.1Qaz (http://www.ieee802.org/1/pages/dcbridges.html)
NOTES
Currently changing the default priority is not supported by default it is set to zero.
SEE ALSO lldptool(8), lldpad(8)AUTHOR
John Fastabend
open-lldp February 2010 lldptool(8)