01-25-2006
delete file without opening vi
hi there guys,
wonder if any gurus can help me out on this one...
try searching the past threads but cant find anything.
i have this huge file but when i use vi to open it it gives me the following error:
<"pmrepserver.txt""/var/tmp/Ex86200" There is not enough space in the file system.>
i know there is a command to delete the line but i have somehow forgot...can anyone give me a clue?
btw im using aix.
many thanks.
wee
10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hello,
I'm new to scripting, I have a file test.dat. I want to make changes to it with out openning it.
Example: test.dat has rows, and I want to change value "LA" to "TX" without opening it or without writing it to another file.
Is it possible?
Thanks (9 Replies)
Discussion started by: irehman
9 Replies
3. 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
4. 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
5. Shell Programming and Scripting
Hi,
Could someone tell me how to delete a particular text inside an existing file without opening the file?
e.g. I have a text file called mytext.txt which contains three lines of text below and I want to delete “ ;” and delete the second line “b ;” including the carriage return.
a ;
b ;
c ;... (12 Replies)
Discussion started by: stevefox
12 Replies
6. UNIX for Dummies Questions & Answers
Hi
To delete some text in 2 files in line1 ( not complete line) in unix without opening the files.
For example: source file is like this
<?xml version="1.0"... (5 Replies)
Discussion started by: pyaranoid
5 Replies
7. Shell Programming and Scripting
Hi Experts,
I have several big size file arround 900 MB. From the file I need to delete some common strings but without opening the file. here is example- in file
<?xml version='1.0' encoding='ISO-8859-1' standalone='no'?>
<LogItems>
<log logid="8423b5ae190810252359350480/1/1/1">
... (6 Replies)
Discussion started by: thepurple
6 Replies
8. 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
9. 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
10. 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
LEARN ABOUT CENTOS
hugetlbfs_unlinked_fd
HUGETLBFS_UNLINKED_FD(3) Library Functions Manual HUGETLBFS_UNLINKED_FD(3)
NAME
hugetlbfs_unlinked_fd, hugetlbfs_unlinked_fd_for_size - Obtain a file descriptor for a new unlinked file in hugetlbfs
SYNOPSIS
#include <hugetlbfs.h>
int hugetlbfs_unlinked_fd(void);
int hugetlbfs_unlinked_fd_for_size(long page_size);
DESCRIPTION
These functions return an open file descriptor for a unique, newly-created file in a hugetlbfs filesystem. To avoid leaking hugepages, the
file is unlinked automatically before the function returns.
For hugetlbfs_unlinked_fd, the default huge page size is used (see gethugepagesize(3)). For hugetlbfs_unlinked_fd_for_size, a valid huge
page size must be specified (see gethugepagesizes(3)).
RETURN VALUE
On success, a valid open file descriptor is returned. On failure, -1 is returned and errno may be set appropriately.
SEE ALSO
gethugepagesize(3), gethugepagesizes(3), mkstemp(3), libhugetlbfs(7)
AUTHORS
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list.
March 7, 2012 HUGETLBFS_UNLINKED_FD(3)