Sponsored Content
Top Forums Shell Programming and Scripting Help parse comma separated list Post 302466424 by NoMadBanker on Tuesday 26th of October 2010 10:52:56 AM
Old 10-26-2010
"ls -1 /HOME/Daily_????????.txt | tail -2 | head -1" seems to work like a charm..

Thanks
NMB
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unix shell script to parse the contents of comma-separated file

Dear All, I have a comma-separated file. 1. The first line of the file(header) should have 4 commas(5 fields). 2. The last line of the file should have 1 comma(2 fields). Pls help me in checking this condition in a shell script. And the number of lines between the first line and last... (11 Replies)
Discussion started by: KrishnaSaran
11 Replies

2. Shell Programming and Scripting

Parse apart strings of comma separated data with varying number of fields

I have a situation where I am reading a text file line-by-line. Those lines of data contain comma separated fields of data. However, each line can vary in the number of fields it can contain. What I need to do is parse apart each line and write each field of data found (left to right) into a file.... (7 Replies)
Discussion started by: 2reperry
7 Replies

3. Shell Programming and Scripting

Perl script to parse output and print it comma separated

I need to arrange output of SQL query into a comma separated format and I'm struggling with processing the output... The output is something like this: <Attribute1 name><x amount of white spaces><Atribute value> <Attribute2 name><x amount of white spaces><Atribute value> <Attribute3... (2 Replies)
Discussion started by: Juha
2 Replies

4. Shell Programming and Scripting

Output of command in comma separated list

Hi; I have an output of a particular command say $command fstl:r-x ajay:r-x how can i get this in comma separated list, eg: fstl:r-x,ajay:r-x Thnks; (4 Replies)
Discussion started by: ajaypadvi
4 Replies

5. Shell Programming and Scripting

Need Help - comma inside double quote in comma separated csv,

Hello there, I have a comma separated csv , and all the text field is wrapped by double quote. Issue is some text field contain comma as well inside double quote. so it is difficult to process. Input in the csv file is , 1,234,"abc,12,gh","GH234TY",34 I need output like below,... (8 Replies)
Discussion started by: Uttam Maji
8 Replies

6. UNIX for Dummies Questions & Answers

[solved] Comma separated values to space separated

Hi, I have a large number of files which are written as csv (comma-separated values). Does anyone know of simple sed/awk command do achieve this? Thanks! ---------- Post updated at 10:59 AM ---------- Previous update was at 10:54 AM ---------- Guess I asked this too soon. Found the... (0 Replies)
Discussion started by: lost.identity
0 Replies

7. Shell Programming and Scripting

awk to parse comma separated field and removing comma in between number and double quotes

Hi Experts, Please support I have below data in file in comma seperated, but 4th column is containing comma in between numbers, bcz of which when i tried to parse the file the column 6th value(5049641141) is being removed from the file and value(222.82) in column 5 becoming value of column6. ... (3 Replies)
Discussion started by: as7951
3 Replies

8. UNIX for Beginners Questions & Answers

How to extract fields from a CSV i.e comma separated where some of the fields having comma as value?

can anyone help me!!!! How to I parse the CSV file file name : abc.csv (csv file) The above file containing data like abv,sfs,,hju,',',jkk wff,fst,,rgr,',',rgr ere,edf,erg,',',rgr,rgr I have a requirement like i have to extract different field and assign them into different... (4 Replies)
Discussion started by: J.Jena
4 Replies

9. UNIX for Beginners Questions & Answers

Remove duplicates from comma separated list

Hi, I have following input file: niki niki niki1 niki niki2 niki,niki2 niki3 niki,niki3,niki niki4 niki4,blabla niki5 jkjkl niki6 niki60,niki6 I would like to delete lines with identical matches completely and remove the selfmatches in the other lines. ... (2 Replies)
Discussion started by: niki0211
2 Replies
rlog(1) 						      General Commands Manual							   rlog(1)

NAME
rlog - print log messages and other information on RCS files SYNOPSIS
[options] file ... DESCRIPTION
prints information about RCS files. Files ending in are RCS files; all others are working files. If a working file is given, tries to find the corresponding RCS file first in directory then in the current directory, as explained in rcsintro(5). prints the following information for each RCS file: RCS file name, working file name, head (i.e., the number of the latest revision on the trunk), access list, locks, symbolic names, suffix, total number of revisions, number of revisions selected for printing, and descriptive text. This is followed by entries for the selected revisions in reverse chronological order for each branch. For each revision, prints revision number, author, date/time, state, number of lines added/deleted (with respect to the previous revision), locker of the revision (if any), and log message. Without options, prints complete information. The options below restrict this output. Options recognizes the following options: Print information about revisions whose check-in date and time fall within the ranges given by the semicolon-separated list of dates. A range of the form or selects the revisions that were deposited between d1 and d2 (inclusive). A range of the form or selects all revisions dated d or earlier. A range of the form or selects all revisions dated d or later. A range of the form d selects the single, latest revision dated d or earlier. The date/time strings d, d1, and d2 are in the format explained in co(1). Quoting is normally necessary, especially for and Note that the separator is a semicolon. Print only RCS file name, working file name, head, access list, locks, symbolic names, and suffix. Print information about locked revisions. If the comma-separated list lockers of login names is given, only the revisions locked by the given login names are printed. If the list is omitted, all locked revisions are printed. Ignore RCS files that have no locks set; convenient in combination with or Print information about revisions given in the comma-separated list revisions of revisions and ranges. A range rev1-rev2 means revisions rev1 to rev2 on the same branch, means revi- sions from the beginning of the branch up to and including rev, and means revisions starting with rev to the head of the branch containing rev. An argument that is a branch means all revisions on that branch. A range of branches means all revisions on the branches in that range. Print only the name of the RCS file; convenient for translating a working file name into an RCS file name. Print information about revisions whose state attributes match one of the states given in the comma-separated list states. Print the same as plus the descriptive text. Prints information about revisions checked in by users whose login names appearing in the comma-separated list logins. If logins is omitted, the user's login is assumed. prints the intersection of the revisions selected with the options and EXAMPLES
Print the names of all RCS files in the subdirectory named that have locks: Print the headers of those files: Print the headers plus the log messages of the locked revisions: Print complete log information: Print the header and log messages of all revisions checked in after 1:00am on December 25th, 1991: Print the header and log messages of those revisions that were created between 10:00am and 2:00pm on July 4th, 1992: DIAGNOSTICS
The exit status always refers to the last RCS file operated upon, and is 0 if the operation was successful, 1 if unsuccessful. AUTHOR
was developed by Walter F. Tichy. SEE ALSO
ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsmerge(1), rcsfile(4), rcsintro(5). rlog(1)
All times are GMT -4. The time now is 12:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy