Sponsored Content
Full Discussion: Indentation help
Top Forums Shell Programming and Scripting Indentation help Post 302312456 by cfajohnson on Friday 1st of May 2009 12:11:15 PM
Old 05-01-2009
Quote:
Originally Posted by zenith
I am new to emacs.
Can you please explain what is buffer.Is it the white screen that comes up when i start emacs on windows

A buffer is the area that stores your file.

I could have said, "Go to the top of your file."

(You can have many buffers open at once. I typically have 50.)
 

10 More Discussions You Might Find Interesting

1. Programming

A question of indentation

Hi, Using GNU indent(1) I tried to indent a C source file which has no indentation (all lines start at column 1). The result I am trying to achieve, should look like this with the exception that only tabs are used for indentation (no spaces). Unfortunately, I couldn't find the appropriate... (1 Reply)
Discussion started by: Michael Iatrou
1 Replies

2. Programming

Emacs line indentation

Hi. I'm writing a document in Python, so indentation is crucial. I want to indent a whole section by exactly one tab. Any idea how to go about this? I'm using terminal emacs (no mouse input) Thanks for any help! (2 Replies)
Discussion started by: Rledley
2 Replies

3. UNIX and Linux Applications

Setting vi indentation to k&r style?

A bit of searching on Google did not seem to yield any really helpful results on how to set vim to use k&r indentation style. I know Emacs has such a feature, but does vim? If so, how do I turn it on? I am just starting to learn vi, and when I am coding in C it looks really ugly without some sort... (2 Replies)
Discussion started by: kermit
2 Replies

4. Shell Programming and Scripting

Regarding indentation using unix script

I have piece of Informatica code in a file as : IIF(substr(flag,0,2)=1,false,IIF(flag= 1 ,0,NULL)) Please provide me with idea how to write a unix script which reads this file and write indented code into another file. The output in the second file should look as: ... (1 Reply)
Discussion started by: srikanth.ch
1 Replies

5. Shell Programming and Scripting

indentation and lowercase to uppercase

hi, i need to write a bash script that does two things. the program will take from the command line a file name, which is a C code, and an integer, which is the size of my indentation i would then have to indent every nested code by the number of columns provided by the user in the... (1 Reply)
Discussion started by: kratos.
1 Replies

6. Shell Programming and Scripting

Change indentation in scripts

Hi, I am a professional in writing shell scripts, and I am using a one-space indentation like this for i in file1 file2 do if then echo "$i" fi done so very deeply nested stuff still fits on my screen. At release time I usually double the indentation via sed 's/^ */&&/' to make... (8 Replies)
Discussion started by: MadeInGermany
8 Replies

7. UNIX for Dummies Questions & Answers

Indentation using awk

I need to write an awk program who does this http://i.stack.imgur.com/yzSqB.jpg I'd be very grateful for any help, Thanks a lot (1 Reply)
Discussion started by: guy9050
1 Replies

8. Homework & Coursework Questions

Indentation using awk

1. The problem statement, all variables and given/known data: I need to write an awk program who does this (sorry its too big) http://i.stack.imgur.com/yzSqB.jpg 2. Relevant commands, code, scripts, algorithms: .. 3. The attempts at a solution (include all code and scripts): declaring a... (2 Replies)
Discussion started by: guy9050
2 Replies

9. UNIX for Beginners Questions & Answers

Indentation for Lists in html

An writing some html instructions to have text beside an image. The image is located on the left and I want the tect to appear on the right side of the image. The text includes a list. The problem is that the list boxes and not shifted. The text within the list align on the left with the... (20 Replies)
Discussion started by: kristinu
20 Replies

10. UNIX for Beginners Questions & Answers

Cshell if clause indentation

I would like to know if indentation is relevant for Cshell scripts. I wrote my code like this: if ((-e file1) && (-e file2)) then cat file1 > file10 cat file2 > file20 endifUsually I write my if clauses like this: if ((-e file1) && (-e file2)) then cat file1 > file10 ... (1 Reply)
Discussion started by: maya3
1 Replies
VBINDIFF(1)						       Christopher J. Madsen						       VBINDIFF(1)

NAME
vbindiff - hexadecimal file display and comparison SYNOPSIS
vbindiff file1 [ file2 ] DESCRIPTION
Visual Binary Diff (VBinDiff) displays files in hexadecimal and ASCII (or EBCDIC). It can also display two files at once, and highlight the differences between them. Unlike diff, it works well with large files (up to 4 GB). Viewing files Movement Keys ------------- Up Move one line (16 bytes) towards the beginning of the file Down Move one line (16 bytes) towards the end of the file Left Move one byte towards the beginning of the file Right Move one byte towards the end of the file PageUp Move one page towards the beginning of the file PageDn Move one page towards the end of the file Home Move to the beginning of the file End Move to the end of the (shorter) file F Search for a string or byte sequence G Move to a specified file position When displaying two files, both files move together. If bytes have been added or removed in one of the files, you can adjust the compari- son by moving just one of the files. To move only the top file, press "T". To move only the bottom file, press "B". To return to moving both files, press the same key again. (The window at the bottom of the screen will indicate when you are moving only one file.) Other Keys ---------- Enter Move to the next difference between the files Space (same as Enter) C Toggle between ASCII and EBCDIC display E Edit currently displayed section of file Esc Exit VBinDiff Q Exit VBinDiff The "Enter" key will advance to the next difference between the files (after those already displayed on the screen). If there are no more differences, it moves to the end. Line editor The line editor is used to enter search strings and file positions. It uses the basic Emacs-style editing keys. Keys ----------------- Ctrl-B, Left Move the cursor one character left Ctrl-F, Right Move the cursor one character right Ctrl-A, Home Move to the beginning of the line Ctrl-E, End Move to the end of the line Ctrl-P, Up Move up in input history Ctrl-N, Down Move down in input history Ctrl-H, Backspace Delete the character to the left Ctrl-D, Delete Delete the character under the cursor Ctrl-K Delete from cursor to end of line Insert Toggle between insert & overstrike mode Enter Finished entering text Esc Abort the operation Editing files You can press "E" to edit the current file. When displaying two files, this edits the one in the top window, unless you are in "move bot- tom" mode. When editing, you can move the cursor around with the arrow keys. Use TAB to switch between entering hexadecimal or ASCII (or EBCDIC) characters. Press the Esc key when you are done. You will be given the choice to save or discard your changes then. If you are displaying two files, you can use the Enter key to copy a byte from the other file into the one you are editing. You cannot scroll through the file while editing, although you can save your changes and then move to a different part of the file. Also, you cannot insert or delete bytes, only change them. OPTIONS
-L, --license Display license information for vbindiff -V, --version Display the version number --help Display help information BUGS
Does not work properly with files over 4 gigabytes. It should be able to view the first 4 gigabytes ok, but the display only has room for 8 hex digits of file position, and the Goto box is also limited to 8 digits. LICENSE
VBinDiff is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. VBinDiff is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with VBinDiff (see the file COPYING); if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AUTHOR
Christopher J. Madsen <vbindiff .at. cjmweb.net> <http://www.cjmweb.net/vbindiff/> VBinDiff 3.0_beta3 2008-06-25 VBINDIFF(1)
All times are GMT -4. The time now is 11:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy