Sponsored Content
Full Discussion: File Processing
Top Forums Shell Programming and Scripting File Processing Post 302520129 by expert on Thursday 5th of May 2011 11:45:32 PM
Old 05-06-2011
File Processing

i am having the input file as
below

123456789: xxxxx12xxxxxxxxxxxxxxxxxx a_cnt[1]
123456789: xxxxxxxxxxxxxxxxxxxxxxx a_cnt[2]
123456789: a_cnt[3] xxxxaq1wsxxxxxxxxxxxx12xxxxxxxxxx
123456789: xxxxxxxxxxxxasxxxx a_cnt[4]

i need the numbers in the backets of a_cnt[**]

O/p required as below
1
2
3
4


thanks in advance..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Have a shell script check for a file to exist before processing another file

I have a shell script that runs all the time looking for a certain type of file and then it processes the file through a series of other scripts. The script is watching a directory that has files uploaded to it via SFTP. It already checks the size of the file to make sure that it is not still... (3 Replies)
Discussion started by: heprox
3 Replies

2. Shell Programming and Scripting

Checking for a control file before processing a data file

Hi All, I am very new to Shell scripting... I got a requirement. I will have few text files(data files) in a particular directory. they will be with .txt extension. With same name, but with a different extension control files also will be there. For example, Sample_20081001.txt is the data... (4 Replies)
Discussion started by: purna.cherukuri
4 Replies

3. Shell Programming and Scripting

how to change the current file processing to some other random file in awk ?

Hello, say suppose i am processing an file emp.dat the field of which are deptno empno empname etc now say suppose i want to change the file to emp.lst then how can i do it? Here i what i attempted but in vain BEGIN{ system("sort emp.dat > emp.lst") FILENAME="emp.lst" } { print... (2 Replies)
Discussion started by: salman4u
2 Replies

4. Shell Programming and Scripting

How to processing the log file within certain dates based on the file name

Hi I am working on the script parsing specific message "TEST" from multiple file. The log file name looks like: N3.2009-11-26-03-05-02.console.log.tar.gz N4.2009-11-29-00-25-03.console.log.tar.gz N6.2009-12-01-10-05-02.console.log.tar.gz I am using the following command: zgrep -a --text... (1 Reply)
Discussion started by: shyork2001
1 Replies

5. Shell Programming and Scripting

How to make parallel processing rather than serial processing ??

Hello everybody, I have a little problem with one of my program. I made a plugin for collectd (a stats collector for my servers) but I have a problem to make it run in parallel. My program gathers stats from logs, so it needs to run in background waiting for any new lines added in the log... (0 Replies)
Discussion started by: Samb95
0 Replies

6. Shell Programming and Scripting

help with file processing

Hi , I have a memory file like this with two columns: @C010 AA @C011 AA @C012 FE @C013 FF @C014 F7 @C015 FF first is memory add, second is the data. I wan to convert into a serial sequence starting from '00000' all the way to 'FFFFF' with those fields from the above file... (15 Replies)
Discussion started by: return_user
15 Replies

7. Shell Programming and Scripting

Recursive file processing from a path and printing output in a file

Hi All, The script below read the path and searches for the directories/subdirectories and for the files. If files are found in the sub directories then read the content of the all files and put the content in csv(comma delimted) format and the call the write to xml function to write the std... (1 Reply)
Discussion started by: Optimus81
1 Replies

8. Programming

awk processing / Shell Script Processing to remove columns text file

Hello, I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this : This is the output of ls command : I stored the output in a file filelist 1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies

9. UNIX for Dummies Questions & Answers

awk - Rename output file, after processing, same as input file

I have one input file ABC.txt and one output DEF.txt. After the ABC is processed and created output, I want to rename ABC.txt to ABC.orig and DEF to ABC.txt. Currently when I am doing this, it does not process the input file as it cannot read and write to the same file. How can I achieve this? ... (12 Replies)
Discussion started by: High-T
12 Replies
editmoin(1)						      General Commands Manual						       editmoin(1)

NAME
editmoin - Edit MoinMoin wiki pages in your favourite editor SYNOPSIS
editmoin http://moinmo.in/WikiSandBox editmoin -t SomeTemplate http://moinmo.in/WikiSandBox DESCRIPTION
editmoin allows you to edit Moin wiki pages with your preferred editor. It means you can easily edit your pages, without the usual limita- tions of most web browsers' text areas. Its usage is simple and straightforward. Just provide moin's web page url as the first parameter. For example: editmoin http://moinmo.in/WikiSandBox You can also use the -t parameter, to inform a template to base this page on. For example: editmoin -t SomeTemplate http://moinmo.in/WikiSandBox CHANGE SETTINGS
While you're editing a page you'll notice that a few settings are available at the top of the page. These settings are preceded by a @ sym- bol, and are immediately followed by the page body. These settings allow you to inform, for example, if you want subscribing users to be notified of your changes, or provide a comment for your change. Their functionality is simple, and their meaning, format, and usage should be obvious to you. SELECTING YOUR EDITOR
The default editor is vi. If you want to use any other, just set the EDITOR environment variable accordingly. SETTING YOUR USERNAME
For editmoin to be able to authenticate you against the moin site you're accessing, it must know your username. For that, you must edit the file ~/.moin_users and insert URL ID pairs in it. For example: http://moinmo.in YourUserName http://wiki.ubuntu.com http://example.com/moin/moin.cgi AnotherUserName If the server needs Basic HTTP Authentication you can use something like: https://user:password@example.com/moin/moin.cgi YourUserName For using shortcuts (see below), and also for better control, defining URLs without usernames in that file is valid. SETTING YOUR MOIN ID EXPLICITLY
In remote times, authentication was done in moin using an ID, consisting mostly of numbers. Nowadays moin was improved to work with a more traditional username/password scheme. Even then, if the traditional username scheme mentioned above doesn't work for you, IDs may still be obtained after authentication, when the moin site sends your browser a MOIN_ID or MOIN_SESSION cookie. Setting moin IDs consists of changing a file named ~/.moin_ids and inserting URL ID pairs in it. For example: http://moinmo.in 987654321.321.54321 http://wiki.canonical.com http://example.com/moin/moin.cgi 123456789.123.12345 If the server needs Basic HTTP Authentication you can use something like: https://user:password@example.com/moin/moin.cgi 123456789.123.12345 You can use a command like this to create a ~/.moin_ids file from your current Firefox profile: sqlite3 -separator ' ' .mozilla/*/*.default/cookies.sqlite "SELECT host,value FROM moz_cookies WHERE name LIKE 'MOIN_SESSION'" | sed 's_^_https://_' > ~/.moin_ids For using shortcuts (see below), and also for better control, defining URLs without IDs in that file is valid. ALIASES
Besides using shortcuts, it's also possible to define URL aliases in a file named ~/.moin_aliases. This file should contain lines with pairs of "alias translation". For instance: script http://moinmo.in/ScriptMarket With this line present, one may execute a command like follows: editmoin script/EditMoin and get the expected result. Notice that unlike shortcuts, aliases must match exactly to be considered. After the alias is translated, the resulting URL is also pro- cessed for matching shortcuts as specified below. SHORTCUTS
Instead of using the whole URL, you may use a shortcut, which consists of any substring of an URL contained in ~/.moin_users and/or ~/.moin_ids, followed by a slash and an optional subpath. For instance: editmoin canonical/FrontPage PROXIES
If you're behind a proxy, set the http_proxy environment variable, as usual. BACKUPS
Editing a moin page may take several minutes, or even hours sometimes. With this in mind, after you change some page it is saved in a file named ~/.moin_lastedit even before trying to commit it. This gives an extra protection against casual problems. Note that this file is overwritten every time a page is successfuly changed, so save it somewhere if you want to keep it. AUTHOR
editmoin was written by Gustavo Niemeyer <gustavo@niemeyer.net>. This manpage was written by Martin Pitt <mpitt@debian.org> for the Debian GNU/Linux System (but may be used by others), based on editmoin's home page. Martin Pitt February 16, 2008 editmoin(1)
All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy