Sponsored Content
Full Discussion: Simplified file conversion
Top Forums Shell Programming and Scripting Simplified file conversion Post 303017404 by manas_ranjan on Tuesday 15th of May 2018 10:46:45 AM
Old 05-15-2018
thanks but i don't think it's printing in right order.
it's printing like this

Code:
0       Leader, 13,15,11        Isr, 1, 1
1       Leader, 14,11,12        Isr, 1, 1
2       Leader, 15,12,13        Isr, 1, 1
3       Leader, 11,13,14        Isr, 1, 1
4       Leader, 12,14,15        Isr, 1, 1

 

10 More Discussions You Might Find Interesting

1. Solaris

COnversion utility xhtml file to Postscript file

Hi, Can any suggest me some utility to convert xhtml file to postscript file format? Also tell me from where to down load such utility.. With Regards, Dattatray (0 Replies)
Discussion started by: dattatray.b
0 Replies

2. Linux

Simplified find command to find multiple file types

Hi, I'm using the following command to find the multiple requierd file types and its working fine find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies

3. Shell Programming and Scripting

shell or perl script needed for ldif file to text file conversion

This is the ldf file dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com objectClass: sdcsSubscriber objectClass: top postalCode: 29600 sdcsServiceLevel: 10 sdcsCustomerType: 14 givenName: Adelia sdcsBlackListAll: FALSE sdcsOwnerType: T-Mobile sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies

4. Shell Programming and Scripting

Conversion of below Tabs Tex file into CSV format file : shell script needed

Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given Name Domain Contact Phone Email Location ----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
Discussion started by: sreenath1037
7 Replies

5. Shell Programming and Scripting

Conversion of spaces Text file into CSV format file

Input file (each line is separaed by spaces )given below: Name Domain Contact Phone Email Location ----------------------- ------------------------------------------------ ------- -----... (18 Replies)
Discussion started by: sreenath1037
18 Replies

6. Linux

File conversion and removing special characters from a file in Linux

I have a .CSV file when I check for the special characters in the file using the command cat -vet filename.csv, i get very lengthy lines with "^@", "^I^@" and "^@^M" characters in between each alphabet in all of the records. Using the code below file filename.csv I get the output as I have a... (2 Replies)
Discussion started by: dhruuv369
2 Replies

7. Shell Programming and Scripting

Simplified awk script for if else statements

Hi, The below awk script that i did is working fine. It gives me the results that i want. But, the script is not smart and very long as i have 8 conditions to meet. The sample script below only show 2 conditions. awk 'BEGIN{FS=OFS=" ~ |\t"} {if (($7>$9) && ($6>$8)){ Ql= $7-$6; Sl=... (6 Replies)
Discussion started by: redse171
6 Replies

8. What is on Your Mind?

New Simplified Log Out for UNIX.COM

Hi, I changed the logout code to just simply log out and go back to the page you were viewing: Was (ending code): eval(standard_error(fetch_error('cookieclear', create_full_url($vbulletin->url), $vbulletin->options, $vbulletin->session->vars), '', false)); Now: $goto = "Location:... (0 Replies)
Discussion started by: Neo
0 Replies

9. What is on Your Mind?

Simplified Registration Page with nCaptcha

At Ravinder's request, I have simplified the new member registration page on both mobile and desktop: Mobile: https://www.unix.com/members/1-albums214-picture909.jpeg Desktop (big image): https://www.unix.com/members/1-albums215-picture907.png (2 Replies)
Discussion started by: Neo
2 Replies

10. UNIX for Beginners Questions & Answers

Simplified Code? Acceptable?

Hi Folks - I have the following peice of code that I believe is uncecesarily long and I modified it to shorten it up. I was hoping one could comment and confirm my approach was acceptable? Original: if then pushd "${_INTRAPATH}" #Search for lines in... (1 Reply)
Discussion started by: SIMMS7400
1 Replies
HACKING(3pm)						User Contributed Perl Documentation					      HACKING(3pm)

NAME
HACKING.pod - contributing to TAP::Harness ABOUT
This is the guide for TAP::Harness internals contributors (developers, testers, documenters.) If you are looking for more information on how to use TAP::Harness, you probably want <http://testanything.org/wiki/index.php/TAP::Parser_Cookbook> instead. Getting Started See the resources section in META.yml or Build.PL for links to the project mailing list, bug tracker, svn repository, etc. For ease of reference, at the time of writing the SVN repository was at: http://svn.hexten.net/tapx To get the latest version of trunk: git clone git://github.com/Perl-Toolchain-Gang/Test-Harness.git For best results, read the rest of this file, check RT for bugs which scratch your itch, join the mailing list, etc. Formatting perltidy The project comes with a ".perltidyrc", which perltidy will automatically use if the project root is your working directory. This is setup by default to read and write the perl code on a pipe. To configure your editor: o vim In ".vimrc", you can add the following lines: nnoremap <Leader>pt :%!perltidy -q<cr> " only work in 'normal' mode vnoremap <Leader>pt :!perltidy -q<cr> " only work in 'visual' mode In other words, if your "Leader" is a backslash, you can type "pt" to reformat the file using the ".perltidyrc". If you are in visual mode (selecting lines with shift-v), then only the code you have currently have selected will be reformatted. o emacs For emacs, you can use this snippet from Sam Tregar (<http://use.perl.org/~samtregar/journal/30185>): (defun perltidy-region () "Run perltidy on the current region." (interactive) (save-excursion (shell-command-on-region (point) (mark) "perltidy -q" nil t) (cperl-mode))) (defun perltidy-all () "Run perltidy on the current region." (interactive) (let ((p (point))) (save-excursion (shell-command-on-region (point-min) (point-max) "perltidy -q" nil t) ) (goto-char p) (cperl-mode))) (global-set-key "M-t" `perltidy-region) (global-set-key "M-T" `perltidy-all) Tests and Coverage ... Writing for Compatibility ... Use TAP::Object TAP::Object is the common base class to all TAP::* modules, and should be for any that you write. Exception Handling Exceptions should be raised with Carp: require Carp; Carp::croak("Unsupported syntax version: $version"); require Carp; Carp::confess("Unsupported syntax version: $version"); Deprecation cycle Any documented sub that needs to be changed or removed (and would therefore cause a backwards-compat issue) must go through a deprecation cycle to give developers a chance to adjust: 1. Document the deprecation 2. Carp a suitable message 3. Release 4. Change the code 5. Release Documentation The end-user and API documentation is all in the 'lib/' directory. In .pm files, the pod is "inline" to the code. See perlpod for more about pod. Pod Commands For compatibility's sake, we do not use the =head3 and =head4 commands. "=head1 SECTION" Sections begin with an "=head1" command and are all-caps. NAME VERSION SYNOPSIS CONSTRUCTOR METHODS CLASS METHODS SOME OTHER SORT OF METHODS SEE ALSO "=head2 method" The "=head2" command documents a method. The name of the method should have no adornment (e.g. don't C<method> or C<method($list, $of, $params)>.) These sections should begin with a short description of what the method does, followed by one or more examples of usage. If needed, elaborate on the subtleties of the parameters and context after (and/or between) the example(s). =head2 this_method This method does some blah blah blah. my @answer = $thing->this_method(@arguments); =head2 that_thing Returns true if the thing is true. if($thing->that_thing) { ... } "=item parameter" Use "=item" commands for method arguments and parameters (and etc.) In most html pod formatters, these do not get added to the table- of-contents at the top of the page. Pod Formatting Codes L<Some::Module> Be careful of the wording of "L<Some::Module>". Older pod formatters would render this as "the Some::Module manpage", so it is best to either word your links as ""(see <Some::Module> for details.)"" or use the "explicit rendering" form of ""<Some::Module|Some::Module>"". VERSION The version numbers are updated by Perl::Version. DEVELOPER DOCS/NOTES The following "formats" are used with "=begin"/"=end" and "=for" commands for pod which is not part of the public end-user/API documentation. note Use this if you are uncertain about a change to some pod or think it needs work. =head2 some_method ... =for note This is either falsely documented or a bug -- see ... developer =begin developer Long-winded explanation of why some code is the way it is or various other subtleties which might incite head-scratching and WTF'ing. =end developer deprecated =for deprecated removed in 0.09, kill by ~0.25 Committing to Subversion If you have commit access, please bear this in mind. Development is done either on trunk or a branch, as appropriate: If it's something that might be controversial, break the build or take a long time (more than a couple of weeks) to complete then it'd probably be appropriate to branch. Otherwise it can go in trunk. If in doubt discuss it on the mailing list before you commit. perl v5.14.2 2012-06-05 HACKING(3pm)
All times are GMT -4. The time now is 10:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy