07-22-2011
Use fuser on file you were editing.
It should print out the process, use ps to confirm that's the one and kill it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everyone. I have been reading a lot about the various different text editors at my disposal through Unix, but I just can't seem to close the deal for what I am trying to do. Is there a way to issue a single line command to edit a file where pattern=x, and do it non-destructively AND in-place?... (1 Reply)
Discussion started by: gator76
1 Replies
2. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
3. UNIX for Dummies Questions & Answers
Hello ,
I am newbie to UNIX platform .
I have read that there are two ways of creating files that is using
1.) Cat 2.) touch .
With Cat Command i am unable to create a File , i is saying No file or Directory exists
I logged in with root as user .
please help (7 Replies)
Discussion started by: Ravi Pavanv
7 Replies
4. Shell Programming and Scripting
Hi,
I am using Cygwin.I created a new file and type into it using cat > newfile. When I open this using vi editor, it contains loads of extra control characters.
Whats happening? (1 Reply)
Discussion started by: erora
1 Replies
5. Shell Programming and Scripting
Hi all,
I have a conf file, i want to update some entries in that conf file. Below is the code for that using a temporary file.
sed '/workgroup=/ c\workgroup=Workgroup' /usr/local/netx.conf > /usr/local/netx.conf.tmp
mv -f /usr/local/netx.conf.tmp /usr/local/netx.conf
Sample contents of... (9 Replies)
Discussion started by: ranj14r
9 Replies
6. UNIX for Dummies Questions & Answers
Hello...
Is it possible that we can change the format of the values we entered in a text file using cat?
Like for example, I will create a text file names.txt using cat and as I save the names and view the text file... the format will be like this
... (5 Replies)
Discussion started by: kpopfreakghecky
5 Replies
7. UNIX for Dummies Questions & Answers
I use the cat command to concatenate text files, but one of the rows I was expecting doesn't display in the output file. Is there a verbose mode\logging mechanism for the cat command to help me investigate where the lines I was expecting are going??
cat 7760-001_1_*_06_*.txt | grep -v... (1 Reply)
Discussion started by: Xin Xin
1 Replies
8. Shell Programming and Scripting
Hi,
Recently I got a .txt file from Mac user. when I try to open it in my Ubuntu machine using cat command it is not displaying any content of file however I can see the content using vi.
Anyone know How to see its content using cat as I have to process it in my shell script.
Thanks in... (4 Replies)
Discussion started by: diehard
4 Replies
9. Shell Programming and Scripting
$BIN/sql.py "select * from reporting.V_AMSNB_OPT_PB_LOAD" | sed -n "2,$ p" | sed "s/ /,/g" > $DATADIR/OPT_PB_LOAD_AMSNB.csv
if
The processes that get created from the above code gets stuck...as in the processes get created but then never completes. (or at least we assume it never completes... (1 Reply)
Discussion started by: mimiyj
1 Replies
10. Red Hat
Hi,
We have 2 linux RH servers (Server A and Server B), that were configured the same way. Same OS version, same ftp client, etc.
The ftp client that we had installe, was downloaded from rpmbone site and the filename is: ftp-0.17-53.el6.x86_64
The permissions were already set up... (1 Reply)
Discussion started by: cees09
1 Replies
LEARN ABOUT DEBIAN
hexcurse
HEXCURSE(1) General Commands Manual HEXCURSE(1)
NAME
hexcurse - an ncurses-based hex editor
SYNOPSIS
hexcurse [ -? | -help ] [ -a ] [ -r rnum ] [ -o outputfile ] [ [ -i ] inputfile ]
DESCRIPTION
hexcurse is an ncurses-based hexeditor utility that is able to open, modify, and save a file to disk while providing useful editing and
searching options.
OPTIONS
-? | -help Prints out the command usage info
-a Specifies the addresses to be output in decimal format initially.
-r rnum Specifies the number of characters per line that the hexeditor should output. If rnum is either less than 1 or greater than
the columns of the current terminal, hexcurse will fill the terminal width, just as if the -r was not specified.
-o outputfile Specifies the output file to be written to by default.
[-i] inputfile Specifies the input file to be read in. -i is not needed if inputfile is the last argument on the line.
INTERACTIVE OPTIONS
F1 | ctrl+? Shows key command help.
F2 | ctrl+s Save the current file.
F3 | ctrl+o Opens a file.
F4 | ctrl+g Goto a certain location in the current file. Depending on which way the addresses are being viewed at the moment, the
search will behave differently. If the addresses are currently in hex format, the search will search as if the input was
given in hexadecimal format. If the addresses are in decimal format, the function will search for the address in decimal.
F5 | ctrl+f Search for a certain string in the current file. Depending on which window the user is currently editing in, this search
will behave differently. If editing in the hex window, the input should only be in hexadecimal, and it will search for the
hexadecimal "string." If the current editing window is the ASCII window, the input should be ASCII characters, and the
search will find that ASCII string in the file.
F6 | ctrl+a Switch between hexadecimal address values and decimal address values.
F7 | TAB Switch between the hexadecimal and ASCII editing windows.
F8 | ctrl+q | ctrl+x
Exit out of the program.
Page Up | ctrl+u
Scroll one 'page' up.
Page Down | ctrl+d
Scroll one 'page' down.
Home | ctrl+t Returns to the top of the file.
End | ctrl+b Jumps to the bottom of the file.
ctrl+z Undo the last modification. Can be used multiple times.
Esc Escapes out of the save, open, goto, and find prompts.
SEE ALSO
hexdump(1) , ncurses(3)
AUTHORS
The authors of hexcurse are:
jewfish <jewfish@jewfish.net>
armoth <uknowho@jewfish.net>
The current version of this software is always availabe at
http://www.jewfish.net/software.php
BUGS
On some terminals the function keys will not work.
Support for resizable terminals is still a bit rudimentary. At this time, when the terminal is resized, the cursor is positioned at the
beginning of the file. This will be corrected in the next release. There is also an issue where the labels on the bottom of the screen do
not resize correctly. A fix for the latter is in the works.
To report a bug or problem, please e-mail:
devel@jewfish.net
TODO
When we get the time, we would like to implement the ability to insert and delete data from the file. Please e-mail us with any additional
suggestions.
22 December 2003 HEXCURSE(1)