10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have file called "text". The contents are as below :
aaa
bbb
ccc
ddd
eee
ffff
ddd
hhhh
iiii
I want to read this file without opening and and delete the last line. How can it be done? (4 Replies)
Discussion started by: the_hunter
4 Replies
2. Shell Programming and Scripting
Hi friends,
In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script.
the code segment is:
------------------------------------------------------------
cd ~/netfpga/projects/scone/sw/... (2 Replies)
Discussion started by: sachinteotia
2 Replies
3. Shell Programming and Scripting
I have a query regard the opening of the file. Suppose I have opened the file
Let's say view filename
And then I found that I have to do some changes in that, but I do not want to close the file
Then how I can change the permission of the file from read mode to write mode
Regards
Adi (6 Replies)
Discussion started by: adisky123
6 Replies
4. Shell Programming and Scripting
I am zipping a file in unix and then sending it to windows.
buyt when i try to open it with 7zip software. it throws an error FILE IS BROKEN (3 Replies)
Discussion started by: rafa_fed2
3 Replies
5. Shell Programming and Scripting
Dear All,
this is my first post on this Forum, glad to be here.
I'm trying to fix an .ods file. Yes, I had a backup, but it's also corrupted.
When opening the document I get this EM:
read error
format error discovered in the file in sub-document content.xml at
2,337040(row,col).
So I... (3 Replies)
Discussion started by: jameslast
3 Replies
6. UNIX for Advanced & Expert Users
Hi there,
I realize this may not be directly related to Unix, but I have recently been using an fMRI analysis program called FreeSurfer which is primarily run in the tclsh shell. However, I have been unable to open up the GUI, and I get the following error message when I attempt to do so:
... (0 Replies)
Discussion started by: Jahn
0 Replies
7. Shell Programming and Scripting
Hi,
Just consider there are around 10 lines in a file. Now is it possible to delete the first 2 lines in the file without opening the file. No matter whatever the content of the file is, I just wanna delete the first 2 lines without opening the file. Is that possible? If so, please help me out.... (3 Replies)
Discussion started by: toms
3 Replies
8. Shell Programming and Scripting
Hi,
I want to check whether file has EOL or NOEOL before opening this file in VI editor. My file is very big its in terms of 15-20 MB.
I am using ksh for this.
When we opened the file in vi editor, normally at last line we are able to see whether this is eol or noeol file. But i does want... (1 Reply)
Discussion started by: HariRaju
1 Replies
9. Programming
I need to process a file in real time as it is being FTPed from a remote server. In my test environment, I wrote a process that would:
1) Open the file - fopen(filename, "r")
2) Go to the offset where I left off on the previous itteration (fseek)
3) Read 2K blocks and append each block to a... (1 Reply)
Discussion started by: ceaker
1 Replies
10. UNIX for Dummies Questions & Answers
im trying to open a file in my bin directory and the farthest i can get is into the folder but not the actual file itself i use text edit as the editor. when i try to open the file it says it doesn't exist here is what i type
cd bin
open cmnds (dir. which it is under)
open test
no such... (4 Replies)
Discussion started by: hiei
4 Replies