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
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
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
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
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
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
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
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
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
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
LEARN ABOUT CENTOS
struct_cfg80211_beacon_data
STRUCT
CFG80211_BEAC(9) Actions and configuration STRUCT CFG80211_BEAC(9)
NAME
struct_cfg80211_beacon_data - beacon data
SYNOPSIS
struct cfg80211_beacon_data {
const u8 * head;
const u8 * tail;
const u8 * beacon_ies;
const u8 * proberesp_ies;
const u8 * assocresp_ies;
const u8 * probe_resp;
size_t head_len;
size_t tail_len;
size_t beacon_ies_len;
size_t proberesp_ies_len;
size_t assocresp_ies_len;
size_t probe_resp_len;
};
MEMBERS
head
head portion of beacon (before TIM IE) or NULL if not changed
tail
tail portion of beacon (after TIM IE) or NULL if not changed
beacon_ies
extra information element(s) to add into Beacon frames or NULL
proberesp_ies
extra information element(s) to add into Probe Response frames or NULL
assocresp_ies
extra information element(s) to add into (Re)Association Response frames or NULL
probe_resp
probe response template (AP mode only)
head_len
length of head
tail_len
length of tail
beacon_ies_len
length of beacon_ies in octets
proberesp_ies_len
length of proberesp_ies in octets
assocresp_ies_len
length of assocresp_ies in octets
probe_resp_len
length of probe response template (probe_resp)
AUTHOR
Johannes Berg <johannes@sipsolutions.net>
Author.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT CFG80211_BEAC(9)