08-27-2009
Convert UNIX file format to PC format
Hi All,
Is there any way to convert a file which is in UNIX format to a PC format....
Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd....
Last edited by Samtel; 08-27-2009 at 03:18 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
:) Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on this.........Let me... (1 Reply)
Discussion started by: rajreddy
1 Replies
2. UNIX for Dummies Questions & Answers
:confused: Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on... (9 Replies)
Discussion started by: rajreddy
9 Replies
3. UNIX for Dummies Questions & Answers
Hi
I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source .
Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies
4. Shell Programming and Scripting
I have a file named "suspected" with series of line like these :
{'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''}
{'protocol': 17, 'service': 'BitTorrent... (3 Replies)
Discussion started by: rk4k
3 Replies
5. UNIX for Dummies Questions & Answers
I have a .csv file in Unix box i need a UNIX script to convert the.csv files to.xls format.
Its very urgent please help me. (1 Reply)
Discussion started by: moon_friend
1 Replies
6. Shell Programming and Scripting
Hi All,
Is there any way to convert a file which is in UNIX format to a PC format....
Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (2 Replies)
Discussion started by: Samtel
2 Replies
7. Shell Programming and Scripting
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies
8. Shell Programming and Scripting
The 6th & 7th column of the text files represents date & time. I need this to be converted in julian format using command "date +%s -d <date>". I know the command, but dont know how to use it on the script
0 dbclstr-b IXT_Web Memphis_Prod_SQL_Full Memphis-Prod-SQL-Full-Application-Backup... (4 Replies)
Discussion started by: ajiwww
4 Replies
9. Shell Programming and Scripting
Hello I have a file : file1.txt with the below contents :
237176 test1 test2 1442149024
237138 test3 test4 1442121300
237171 test5 test7 1442112823
237145 test9 test10 1442109600
In the above file fourth field represents the timestamp in Unix format.
I found a command which converts... (6 Replies)
Discussion started by: rahul2662
6 Replies
10. Shell Programming and Scripting
Hello, I need to get few values from a XML file and output needs to be written in another file with pipe delimited format. The Header & Footer of the Pipe Delimited file will be constant.
The below is my sample XML file. I need to pull the values in between the XML tags <Operator_info to... (15 Replies)
Discussion started by: karthi1305561
15 Replies
9V(9.1) 9V(9.1)
NAME
9v, save, flip - copy picture files to and from screen
SYNOPSIS
fb/9v [ -mMq ] [ -w x0 y0 x1 y1 ] [ -c cenx ceny ] [ input ]
fb/save
fb/flip [ -r fps ] [ -p ] p1 p2 ...
DESCRIPTION
9v displays its argument picture file (default standard input) in a new window in the middle of an 81/2 screen. In addition to the native
picfile(9.6) format, it tries to read images of many foreign encodings. (It guesses which encoding based on the file's name, recognizing
suffixes .gif, .jpg, .jpeg, .ega, .face, .pcx, .sgi, .tga, .tif, .tiff, .rle, and .xbm. For a program that guesses based on the file's
contents, see cvt2pic(9.1).) On an 8-bit display, it loads an 8-bit image's color map if it contains one. Otherwise (if the display is
fewer than 8 bits per pixel, or the image is not 8-bit color-mapped) it computes the image's luminance, dithered appropriately for the
available grey shades.
In the 9v window button 1 displays pixel coordinates and values at the top of the window and button 3 pops up a menu. The fix cmap menu
item reloads the color map, in the event that some other program has stepped on it. The exit button exits after confirmation.
The -c flag specifies the window's center coordinates, overriding the default. The -w flag specifies the window's minimum and maximum x
and y coordinates. Flag -m suppresses default loading the color map of images containing one. -M causes 9v to load an image's color map
and exit immediately. -q makes 9v exit on receiving any mouse or keyboard event.
Save writes a picture file containing its window (or screen if 81/2 is not running) onto its standard output.
Flip displays many picture files in sequence in a loop. The pictures must be the same size, and must fit in memory. The pictures are all
loaded into main memory and then sent to the display as required using wrbitmap (see balloc(2)), so the machine running flip can be remote;
a CPU server can be used if there are many large frames. The -r option sets the display rate in frames per second. By default flip dis-
plays as fast as it can: about 15 frames per second for a small picture on a Magnum. The -p flag causes a one-second pause at the end of
the loop.
SOURCE
/sys/src/fb/9v.c
/sys/src/fb/save.c
/sys/src/fb/flip.c
BUGS
9v guesses the format of foreign images by looking at the filename, not its contents.
SEE ALSO
picfile(9.6)
9V(9.1)