Sponsored Content
Full Discussion: what is a file ?
Top Forums UNIX for Dummies Questions & Answers what is a file ? Post 302708273 by Arun_Linux on Monday 1st of October 2012 10:32:48 AM
Old 10-01-2012
what is a file ?

I have few basic doubts about files

1) Windows recognizes file by its extension like (.txt , .csv). How does unix/linux do it ?


2) How does file editor capable of editing various file formats ? Whats the logic behind it ?

3) Does all files have metadata ?

4) If they contain a meta data how to read it (tel me some simple python script)?

5) Are the properties like timestamp, permission, size are stored in the file itself?

6) Is it possible to create my own file and a file editor, such that no other file editor (e.g vi) could read it ?
If yes pls let me know the tutorial link.
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

2. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

3. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
VITMP(1)						      General Commands Manual							  VITMP(1)

NAME
vitmp - edit temporary files SYNOPSIS
vitmp [VIM options] FILE... DESCRIPTION
vitmp is a wrapper around the VIM editor which may be used to invoke the editor in a way that is guaranteed to be suitable for editing tem- porary files used with programs such as crontab(1) and edquota(8). The instance of the editor that is invoked is /bin/vi. In particular, it is guaranteed that the file, if edited, will be overwritten in place such that the modified contents may be read back via a previously obtained file descriptor. Invoking the editor via vitmp also makes sure that no additional editor temporary files are used. Please note that vitmp offers no crash recovery capabilities. If the editor crashes during the overwrite, data may be lost. HISTORY
vitmp first appeared in Openwall GNU/*/Linux 1.0. AUTHORS
Solar Designer <solar@owl.openwall.com> SEE ALSO
crontab(1), vi(1), vim(1), edquota(8) Openwall Project 25 April 2002 VITMP(1)
All times are GMT -4. The time now is 01:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy