With the above text, i have two requirements:
1) remove the lines that end with UARCNCL, remove the lines that start with LOS.
2) In rest of the lines, the fields should be comma separated and written to a new file.
the new file should be like:
I'am new to AWK and read through some stuufs in net and wrote a small script( but it did not work)
Please correct me on the above script or please advice me on how shall i get the two rewuirements done.
Thanks in advance.
Thanks,
kumudha
Last edited by radoulov; 07-10-2008 at 06:20 AM..
Reason: please use code tags
Hello
I need help to convert flat file data to HTML Table format.
I am generating everyday Flat file and want to convert into HTML Table format.
The format of my file is:
version host Total YRS NO APPS PSD
10 Sun 30 2 4 6 7
and flat... (11 Replies)
Please help
Need a script which will do the following :
Search on fixed width file , go to position (25,2) which means 25th and 26th position, Find if there are any char in lower case:
For example 25,2 can be (9T) or (9w) or (Ww) or (wW)....The two positions can be numeric or alpha...no... (13 Replies)
Hi Guy's can someone help me in converting the following
I have a flat text file which has several thousand lines which I need to convert to a csv it's got a consistent format but basically want every time it hit's txt to create a new line with the subsequent lines comma delimited for example
... (6 Replies)
hi...... thanks for allowing me to start a discussion
i am collecting usb usage details of all users and convert it into csv files so that i can export it into some database..
the input text file is as follows:-
USB History Dump
by nabiy (c)2008
(1) --- Kingston DataTraveler 130 USB... (2 Replies)
Hi, could some help me convert CSV file (with double quoted strings) to pipe delimited file:
here you go with the same data:
1,Friends,"$3.99 per 1,000 listings",8158here " 1,000 listings " should be a single field.
Thanks,
Ram (8 Replies)
hi
i have written a script for reading a csv file and creating a flat file, suggest if this script can be optimized
#----------------
FILENAME="$1"
SCRIPT=$(basename $0)
#-----------------------------------------//
function usage
{
echo "\nUSAGE: $THIS_SCRIPT file_to_process\n"... (3 Replies)
Hi ,
I have a simple text file with contents as below:
12345678900 971,76 4234560890
22345678900 5971,72 5234560990
32345678900 71,12 6234560190
the new csv-file should be like:
Column1;Column2;Column3;Column4;Column5
123456;78900;971,76;423456;0890... (9 Replies)
Hi all,
I need to find a way to convert excel file into csv or a text file in linux command. The reason is I have hundreds of files to convert. Another complication is the I need to delete the first 5 lines of the excel file before conversion.
so for instance
input.xls
description of... (6 Replies)
Hi I have a file like this:
a=1
b=2
c=3
a=4
b=2
d=3
a=3
c=4
How can I change this to csv format
a,b,c,d
1,2,3,,
4,2,,3
3,,4,,
Please use code tags next time for your code and data. Thanks (10 Replies)
Hi All,
I have a csv file which is comma seperated. I need to convert to flat file with preferred column length
country,id
Australia,1234
Africa,12399999
Expected output
country id
Australia 1234
Africa 12399999
the flat file should predefined length on respective... (8 Replies)
Discussion started by: rohit_shinez
8 Replies
LEARN ABOUT DEBIAN
cyr
cyr(1) User Manuals cyr(1)NAME
cyr - setup Cyrillic on Linux console
SYNOPSIS
cyr [ options ]... [ keyboard [ keyboard_options ... ]]
DESCRIPTION
cyr is a program for fast and easy setup of Cyrillic on the Linux console.
OPTIONS -C, --copyright
Display copying conditions and warranty information.
-h, --help
Display help information and exit.
--save Saves given parametes as default for latter use in ~/.cyr_defaults.
-v, --verbose
Be more verbose.
-s, --style=fontstyle
-f, --size=fontsize
Use the given fontstyle (i.e. fontface) and fontsize. Type cyr --help to see possible fontstyle-fontsize combinations.
--font=fontfile
Use this fontfile. The options -s and -f get ingnored if this option is given. You will use this argument if you want to use font
that is not directly supported by cyr.
-e, --encoding=encoding
Setup the Linux console for this encoding.
--ttys='console1 console2...'
Setup Cyrillic in these consoles.
keyboard
keyboard_options
Use this keyboard and keyboard options.
CONFIGURATION FILE
cyr reads it defaults from ~/.cyr_defaults or (if the former file doesn't exist) from /etc/console-cyrillic.
Lines that contain only spaces or begin with `#' are simply ignored. All other lines should have the form
keyword parameters
Different keywords correspond to different arguments of cyr as follows:
`ttys terminals...' is equivalent to `--tty='terminals...''.
`style fontstyle' is equivalent to `--style=fontstyle'.
`size fontsize' is equivalent to `--size=fontsize'.
`encoding enc' is equivalent to `--encoding=enc'.
`fontfile fntfile' is equivalent ot `--font=fntfile'.
`layout kbd' specifies kbd as default keyboard to use.
`options opt...' specifies opt as default keyboard options.
AUTHOR
Anton Zinoviev <anton@lml.bas.bg>, <zinoviev@debian.org>
console-cyrillic JUN 2002 cyr(1)