06-30-2010
Thanks
Works well, thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to write a sed script which from
batiato:
batiato/giubbe:
pip_b.2.txt
pip_b.3.txt
pip_b.3mmm.txt
bennato:
bennato/peterpan:
123.txt
consoli:
pip_a.12.txt
daniele: (2 Replies)
Discussion started by: one71
2 Replies
2. UNIX for Advanced & Expert Users
Hi
Is there any command where we can insert a line "2|||" before every line starting with "3|"
my input is as follows
1|ETG|12345
3|79.58|||GBP||
1|ETG|12345
3|79.58|||GBP||
1|ETG|12345
2|EN_GB||Electrogalvanize 0.5 m2 ( Renault )
1|ETG|12345
3|88.51|||GBP||
desired output... (10 Replies)
Discussion started by: laxmi131
10 Replies
3. Shell Programming and Scripting
Hi,
i need to delete a lines after searching a particular string but this searching should only happen after the 4th line..
basically imagine a file like this
From: abcd.yahoo.com
To: cdeb.yahoo.com
Subject: hi all
sdfsd
sadasd
asdasd
dfsdf
From: abcd.yahoo.com
To:... (3 Replies)
Discussion started by: depakjan
3 Replies
4. Shell Programming and Scripting
Here is an interesting problem that I am seeing when using 'sed'. The goal
is to print out the names of the Oracle SID's on a system and here is the
command I am using:
ps -ef|grep ora|grep pmon|awk '{print $NF}'|sed 's/ora_pmon_//'
The output of the command after the awk is this:
... (3 Replies)
Discussion started by: soleil4716
3 Replies
5. Shell Programming and Scripting
Please let me know wat would be sed command to delete any partcular line from a file and also moving lines below it to up.
ie wen line #9 is deleted data in line #10 should move to #9 and so on. (2 Replies)
Discussion started by: fidelis
2 Replies
6. Shell Programming and Scripting
And I want to delete the characters longer than 20 for each line start with #. The other lines should remain the same. I think this can be done by sed. Could anyone help me with this? Thanks!
my input file:
#ZP_05494889.1_Clostridium_papyrosolvens... (3 Replies)
Discussion started by: ritacc
3 Replies
7. Shell Programming and Scripting
Hi, if in between strings "<section" and "</section>" across multiple lines there occurs the string "ole-present", delete all line breaks and replace any tabs or multiple spaces with a single space. Looking for an AWK or SED solution. Thank you.
<section ...
status = "ole-present"
...... (2 Replies)
Discussion started by: pioavi
2 Replies
8. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
9. Shell Programming and Scripting
Hi All,
I'm appending a line before a pattern and after another pattern(;) but omitting the first pattern - same as if comes duplicates before the second pattern.
Also, I'm adding a word before the first pattern -
Here is my file
select blah blah
hello
select blah blah
;
select... (6 Replies)
Discussion started by: Mannu2525
6 Replies
10. Shell Programming and Scripting
Hello,
I'm trying to figure out how to speed up the following as I want to use multiple commands to search thousands of files.
is there a way to speed things up?
Example I want to search a bunch of files for a specific line, if this line already exists do nothing, if it doesn't exist add it... (4 Replies)
Discussion started by: f77hack
4 Replies
LEARN ABOUT DEBIAN
config::model::models::lcdd::picolcd
Config::Model::models::LCDd::picolcd(3pm) User Contributed Perl Documentation Config::Model::models::LCDd::picolcd(3pm)
NAME
Config::Model::models::LCDd::picolcd - Configuration class LCDd::picolcd
VERSION
version 2.021
DESCRIPTION
Configuration classes used by Config::Model
generated from LCDd.conf
Elements
KeyTimeout
KeyTimeout is the time in ms that LCDd spends waiting for a key press before cycling through other duties. Higher values make LCDd use
less CPU time and make key presses more detectable. Lower values make LCDd more responsive but a little prone to missing key presses. 500
(.5 second) is the default and a balanced value. Optional. Type integer. upstream_default: '500'.
Backlight
Sets the initial state of the backlight upon start-up.Optional. Type enum. choice: 'on', 'off'. upstream_default: 'on'.
Brightness
Set the initial brightness . Works only with the 20x4 device. Optional. Type integer. upstream_default: '1000'.
OffBrightness
Set the brightness while the backlight is 'off' . Works only with the 20x4 device.Optional. Type integer. upstream_default: '0'.
Contrast
Set the initial contrast Optional. Type integer. upstream_default: '1000'.
Keylights
Light the keys? Optional. Type enum. choice: 'on', 'off'. upstream_default: 'on'.
Key0Light
If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.
There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled. Optional. Type enum. choice: 'on',
'off'. upstream_default: 'on'.
Key1Light
Optional. Type uniline. default: 'on'.
Key2Light
Optional. Type uniline. default: 'on'.
Key3Light
Optional. Type uniline. default: 'on'.
Key4Light
Optional. Type uniline. default: 'on'.
Key5Light
Optional. Type uniline. default: 'on'.
LircHost
Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is
disabled.Optional. Type uniline. default: '127.0.0.1'.
LircPort
UDP port on which LIRC is listening Optional. Type integer. upstream_default: '8765'.
LircFlushThreshold
Threshold in jiffies of synthesized gap that triggers flushing the IR data to lirc 100 means 6.1ms. legal: 16 - 32767; Use 0 to
disable.Optional. Type integer. upstream_default: '100'.
SEE ALSO
o cme
perl v5.14.2 2012-11-09 Config::Model::models::LCDd::picolcd(3pm)