10-27-2001
open ASCII files
Anyone knows how to open an ASCII file by using C
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Everybody!
Situation:
I have a large ASCII file (for example: 1-2 Mbytes) without linebreaks (\n).
Task:
I like inserting linebreaks after all 420 digits (byte).
(pattern: *\n*\n*\n...etc.)
My problem:
How? :-)
I like using shell script or (maybe) AWK (short) program.
Please,... (2 Replies)
Discussion started by: hviktor
2 Replies
2. UNIX for Dummies Questions & Answers
Can you pls help on writing ASCII files? For example, how to you put SUPPLIER NO and NAME in an ASCIIfile? (1 Reply)
Discussion started by: yialousa
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
How to view binary files in ASCII format.????????????????
Bye (2 Replies)
Discussion started by: manjunath
2 Replies
4. UNIX for Dummies Questions & Answers
We need to scramble data in a number of ASCII files. Some of these files are extremely large (1.2 GB). By scrambling, I mean that we need to substitute certain strings, which number around 400, with scrambled strings. An example has been given below
If "London" occurs in the file, then it... (2 Replies)
Discussion started by: SanjivNagraj
2 Replies
5. UNIX for Dummies Questions & Answers
how do I display the total number of words in a file which is of the type ascii text (1 Reply)
Discussion started by: madtim
1 Replies
6. UNIX for Advanced & Expert Users
Dear Experts
I need to read a binary file. I know for example in byte number 3801-3804 there is a 4 byte number embeded. Is there a way to extract this number from this file and then convert it to ascii via unix??
Your help would be highly appreciated.
Very Best Regards
Reza (5 Replies)
Discussion started by: Reza Nazarian
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I had to do something I could do in a way that worked fine, but I'm still wondering if there's a shorter way (which I think there is)...
I had to find only the ASCII files of a directory, and then work with them (that is, not only showing on screen)
What I did was
ls | xargs... (4 Replies)
Discussion started by: Casey
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Is there anyway to copy a certain column from the Ascii file into a column on an Excel sheet?
Thanks, (4 Replies)
Discussion started by: cosmologist
4 Replies
9. UNIX for Advanced & Expert Users
When you are dealing with ASCII files it easy to check on line endings type. You can just use the file command. You are not always lucky enough to be dealing with ASCII files. So in the cases that you don't have ASCII files how can you check what type of line endings you have? Please list all... (5 Replies)
Discussion started by: cokedude
5 Replies
10. Solaris
I have a huge files in binary format
thanks to help me in finding a way to convert these files from Binary format to ASCII format. (0 Replies)
Discussion started by: PRINCESS_RORO
0 Replies
LEARN ABOUT DEBIAN
xdg-open
XDG-OPEN(1) xdg-open Manual XDG-OPEN(1)
NAME
xdg-open - opens a file or URL in the user's preferred application
SYNOPSIS
xdg-open {file | URL}
xdg-open {--help | --manual | --version}
DESCRIPTION
xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web
browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp,
http and https URLs.
xdg-open is for use inside a desktop session only. It is not recommended to use xdg-open as root.
OPTIONS
--help
Show command synopsis.
--manual
Show this manual page.
--version
Show the xdg-utils version information.
EXIT CODES
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
1
Error in command line syntax.
2
One of the files passed on the command line did not exist.
3
A required tool could not be found.
4
The action failed.
EXAMPLES
xdg-open 'http://www.freedesktop.org/'
Opens the freedesktop.org website in the user's default browser.
xdg-open /tmp/foobar.png
Opens the PNG image file /tmp/foobar.png in the user's default image viewing application.
AUTHORS
Kevin Krammer
Author.
Jeremy White
Author.
COPYRIGHT
Copyright (C) 2006
xdg-utils 1.0 08/18/2014 XDG-OPEN(1)