02-03-2011
if you don't mind can i give a simple solution for that..
take tha file name as a variable and add it to the file it self as first column or last column and print the file.
then it will give your our put.
you try it..
or else i wil give the code..
regards
rajesh
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Am new to scripting. So i just need your ideas to help me out. Here goes my requirement.
I have two csv files
1.csv 2.csv
abc,1.24 abc,1
def,2.13 def,1
I need to compare the first column of 1.csv with 2.csv and if matches then need to compare... (2 Replies)
Discussion started by: chinnahyd
2 Replies
2. Shell Programming and Scripting
I have been trying to find a good solution for this seemingly simple task for 2 days, and I'm giving up and posting a thread. I hope someone can help me out!
I'm on HPUX, using sqlplus, mailx, awk, have some other tools available, but can't install stuff that isn't already in place (without a... (6 Replies)
Discussion started by: soldstatic
6 Replies
3. Shell Programming and Scripting
Hi,
I am tryng to read from a csv file and based on some grep command output I will modify one of the column in the same csv.
Example:-
Input CSV:-
20120829001415,noneAA,google.com
20120829001415,dfsafds,google.com
20120829001415,noneAA,google.com
Intermediate Step:- If 2nd column of... (3 Replies)
Discussion started by: kmajumder
3 Replies
4. Shell Programming and Scripting
(say) I have 2 csv files - file1.csv & file2.csv as mentioned below:
file1.csv
ID,version,cost
1000,1,30
2000,2,40
3000,3,50
4000,4,60
file2.csv
ID,version,cost
1000,1,30
2000,2,45
3000,4,55
6000,5,70
... (1 Reply)
Discussion started by: Naresh101
1 Replies
5. Shell Programming and Scripting
(say) I have 2 csv files - file1.csv & file2.csv as mentioned below:
file1.csv
ID,version,cost
1000,1,30
2000,2,40
3000,3,50
4000,4,60
file2.csv
ID,version,cost
1000,1,30
2000,2,45
3000,4,55
6000,5,70
The... (7 Replies)
Discussion started by: Naresh101
7 Replies
6. Shell Programming and Scripting
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
Discussion started by: djoseph
10 Replies
7. Shell Programming and Scripting
Hi, I am newbie in shell script.
I need your help to solve my problem.
Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file.
File1:
SourceFile,DateTimeOriginal
/home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Discussion started by: refrain
8 Replies
8. Shell Programming and Scripting
Hi, all
I want to sort a csv file based on timestamp from oldest to newest and save the output as csv file itself. Here is an example of my csv file.
test.csv
SourceFile,DateTimeOriginal
/home/intannf/foto/IMG_0739.JPG,2015:02:17 11:32:21
/home/intannf/foto/IMG_0749.JPG,2015:02:17 11:37:28... (10 Replies)
Discussion started by: refrain
10 Replies
9. Shell Programming and Scripting
Hi,
I have another problem. I want to sort another csv file by the first field.
result.csv
SourceFile,Airspeed,GPSLatitude,GPSLongitude,Temperature,Pressure,Altitude,Roll,Pitch,Yaw
/home/intannf/foto5/2015_0313_090651_219.JPG,0.,-7.77223,110.37310,30.75,996.46,148.75,180.94,182.00,63.92 ... (2 Replies)
Discussion started by: refrain
2 Replies
LEARN ABOUT CENTOS
install-info
INSTALL-INFO(1) User Commands INSTALL-INFO(1)
NAME
install-info - update info/dir entries
SYNOPSIS
install-info [OPTION]... [INFO-FILE [DIR-FILE]]
DESCRIPTION
Add or remove entries in INFO-FILE from the Info directory DIR-FILE. INFO-FILE and DIR-FILE are required unless the --info-file or
--dir-file (or --info-dir) options are given, respectively.
OPTIONS
--add-once
add only to first matching section, not all.
--align=COL
start description of new entries at column COL.
--calign=COL
format second and subsequent description lines to start at column COL.
--debug
report what is being done.
--delete
delete existing entries for INFO-FILE from DIR-FILE; don't insert any new entries.
--description=TEXT
the description of the entry is TEXT; used with the --name option to become synonymous with the --entry option.
--dir-file=NAME
specify file name of Info directory file; equivalent to using the DIR-FILE argument.
--dry-run
same as --test.
--entry=TEXT
insert TEXT as an Info directory entry, overriding any corresponding entry from DIR-FILE. TEXT is written as an Info menu item line
followed
by zero or more extra lines starting with whitespace.
If you specify more than one entry, all are added. If you don't specify any entries, they are determined
from information in the Info file itself.
--help display this help and exit.
--info-dir=DIR
same as --dir-file=DIR/dir.
--info-file=FILE
specify Info file to install in the directory; equivalent to using the INFO-FILE argument.
--item=TEXT
same as --entry=TEXT.
--keep-old
do not replace entries, or remove empty sections.
--maxwidth, --max-width=COL
wrap description at column COL.
--menuentry=TEXT
same as --name=TEXT.
--name=TEXT
the name of the entry is TEXT; used with --description to become synonymous with the --entry option.
--no-indent
do not format new entries in the DIR file.
--quiet
suppress warnings.
--regex=R
put this file's entries in all sections that match the regular expression R (ignoring case).
--remove
same as --delete.
--remove-exactly
only remove if the info file name matches exactly; suffixes such as .info and .gz are not ignored.
--section=SEC
put entries in section SEC of the directory. If you specify more than one section, all the entries
are added in each of the sections.
If you don't specify any sections, they are determined
from information in the Info file itself.
--section R SEC
equivalent to --regex=R --section=SEC --add-once.
--silent
suppress warnings.
--test suppress updating of DIR-FILE.
--version
display version information and exit.
REPORTING BUGS
Email bug reports to bug-texinfo@gnu.org, general questions and discussion to help-texinfo@gnu.org.
Texinfo home page: http://www.gnu.org/software/texinfo/
COPYRIGHT
Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for install-info is maintained as a Texinfo manual. If the info and install-info programs are properly installed at
your site, the command
info install-info
should give you access to the complete manual.
install-info 5.1 June 2014 INSTALL-INFO(1)