Sponsored Content
Full Discussion: Increment Numbers in File
Top Forums Shell Programming and Scripting Increment Numbers in File Post 302725225 by pparthiv on Friday 2nd of November 2012 12:38:32 AM
Old 11-02-2012
Thanks bipinajith. Works perfectly. Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

read numbers from file and output which numbers belongs to which range

Howdy experts, We have some ranges of number which belongs to particual group as below. GroupNo StartRange EndRange Group0125 935300 935399 Group2006 935400 935476 937430 937459 Group0324 935477 935549 ... (6 Replies)
Discussion started by: thepurple
6 Replies

2. Shell Programming and Scripting

Check file and increment

My scripts excepts 4 files ABCD_01 ABCD_02 ABCD_03 ABCD_04 I want to check for these files , and increment counter one by one . at the end i would like to echo as 4 of 4 expected instances of file found . I tried something like thsi $counter =1 if counter=counter+1 i need... (5 Replies)
Discussion started by: ultimatix
5 Replies

3. Shell Programming and Scripting

File existence and increment

count=0; while read line; do ] && let count=count+1; done < file_name.txt echo echo "$count of 10 files found " echo The scenario is a follows : I have a file which contains a list of filenames present in particular directory . I am checking fo the existence of the file and... (5 Replies)
Discussion started by: ultimatix
5 Replies

4. UNIX for Dummies Questions & Answers

increment numbers in several parts of a string

I know how to do produce this: string01 string02 string03 several different ways. But how do I do produce this (without getting lost in recursion): string01morestring100yetmore10 string02morestring101yetmore20 string03morestring102yetmore30 ...... (2 Replies)
Discussion started by: uiop44
2 Replies

5. Shell Programming and Scripting

Increment a value in a configuration file.

Experts, I would appreciate if someone took the time to express there opinion /approach in creating a new change daily to a configuration file. I create a new log file each day and I wish to have a browser based reader display the new file. To achieve this I would need to create a new... (2 Replies)
Discussion started by: jaysunn
2 Replies

6. Shell Programming and Scripting

the smallest number from 90% of highest numbers from all numbers in file

Hello All, I am having problem to find what is the smallest number from 90% of highest numbers from all numbers in file. I am having file with thousands of lines and hundreds of columns. I am familiar mainly with bash but I am open to whatever suggestion witch will lead to the solutions. If I... (11 Replies)
Discussion started by: Apfik
11 Replies

7. Shell Programming and Scripting

To increment the values from the file

Hi I have the file called "file.txt" which contains the following output $cat file.txt sandy <version>1</version> karen <version>2</version> Rob <version>3</version> peter <version>4</version> i want to write a command which will add the value 1 to the digits and show the output... (2 Replies)
Discussion started by: sidh_arth85
2 Replies

8. Shell Programming and Scripting

Increment value in text file

Hi Guys, I am new to shell programing, I have a csv file which has 50k records and I have got the requirement to increment the value in second column after each 5000 records. for example below A,B,C,D //Header 1,1,London,UK 1,1,Manchester,UK 1,1,Glasgow,UK . . . 1,1,Newyork,USA... (7 Replies)
Discussion started by: rizzu1555
7 Replies

9. Shell Programming and Scripting

[Solved] How to increment and add variable length numbers to a variable in a loop?

Hi All, I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies

10. Shell Programming and Scripting

Adding (as in arithmetic) to numbers in columns in file, and writing new file with new numbers

Hi again. Sorry for all the questions — I've tried to do all this myself but I'm just not good enough yet, and the help I've received so far from bartus11 has been absolutely invaluable. Hopefully this will be the last bit of file manipulation I need to do. I have a file which is formatted as... (4 Replies)
Discussion started by: crunchgargoyle
4 Replies
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)
All times are GMT -4. The time now is 10:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy