Sponsored Content
Full Discussion: vi/vim "cheat sheet"
The Lounge What is on Your Mind? vi/vim "cheat sheet" Post 302707441 by Neo on Friday 28th of September 2012 02:35:28 PM
Old 09-28-2012
vi/vim "cheat sheet"

Image
These 4 Users Gave Thanks to Neo For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

":shell" in Vim and Elvis

When I type :shell in the Vim editor it takes me to the shell of course and everything looks as it should.. (Using shell from Vim) $ set | grep PS1 PS1=$' ' $ But when i use Elvis and type :shell I get in to the shell as expected but... (Using shell from Elvis) $set | grep PS1... (1 Reply)
Discussion started by: J.P
1 Replies

2. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

3. UNIX for Dummies Questions & Answers

sed and awk cheat sheet

Where can I get sed and awk cheat sheet ? Need to look for usage of special charaters and meta charaters (1 Reply)
Discussion started by: pitagi
1 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. UNIX for Dummies Questions & Answers

Why "map! <C-q> :q <CR> " does not work in vim.

Hello, I input :map! <C-q> :q <CR> in command line mode, then return to normal mode, and press ctrl-q, but vim does not quit. Why? Thanks! (0 Replies)
Discussion started by: 915086731
0 Replies

6. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
htmlfix(3)							     EN Tools								htmlfix(3)

NAME
htmlfix - Fixup HTML markup code SYNOPSIS
htmlfix [-o outputfile] [-F fixes] [-S fixes] [-v] [inputfile] DESCRIPTION
The htmlfix program reads inputfile or from "stdin" and performs the following actions (name of each fixup is within parentheses): (imgsize) : Adding WIDTH and HEIGHT attributes to IMG tags For all "IMG" tags which don't already have both "WIDTH" and "HEIGHT" attributes (matched case insensitive), the size of the image (taken from the "SRC" attribute) is determined and the missing ``"width=X"'' and/or ``"height=Y"'' is added to the list of attributes. The intention is to speedup the layouting of the final webpage. Don't intermix this with a size checker: htmlfix will only add missing width/height attributes and don't adjust ones with wrong dimensions. This is because else the user wouln't be able to scale images (used a lot by webdesigners via 1pt dot-images). There is a special case: When the "WIDTH" or "HEIGHT" attribute already exists and has a value of ``"*"'' this asterisk is replaced by the physical value instead of appending a new attribute. Use when you want the attributes at a certain position, i.e. use this variant as a placeholder. HTMLfix supports one additionl feature in conjunction with "WIDTH" and "HEIGHT": "SCALE="factor and "SCALE="percent"%". This can be used to scale the given or determined width and height values by multiplying with factor or multiplying with percent/100. (imgalt) : Adding ALT attribute to IMG tags For all "IMG" tags which don't already have a "ALT" tag an "ALT=""" attribute is added. The intention is to both make HTML checkers like weblint(1) happy and to demystify the final webpage for lynx(1) users. (summary) : Adding SUMMARY attribute to TABLE tags This attribute helps non-visual rendering of tables by adding a hint on its contents, and it makes tidy(1) quiet. (center) : Changing proprietary CENTER tag to standard DIV tag All proprietary (Netscape) "CENTER" tags are replaced by the HTML 3.2 conforming construct ``"<DIV ALIGN=CENTER>"''. (space) : Fix trailing spaces in tags Appendix C of the XHTML Specification recommands putting a space before closing simple tags to help rendering by old browsers. This space is automatically added when this fixup is used. On the other hand, all spaces before a right-angle bracker are suppressed. (quotes) : Adding missing quotes for attributes All attributes of the form ``"...=xyz"'' are replaced by ``"...="xyz""''. Furthermore all (color) attributes of the form ``"...="XXYYZZ""'' (XX,YY,ZZ elements of set {0,..,9,a,..,f} are fixed to ``"...="#XXYYZZ""''. (indent) : Indenting paragraphs Paragraphs enclosed in "<indent [num=N] [size=S]>"..."</indent>" containers are indented by N*S spaces. When N=0 then the whitespace block in front of the paragraph is removed. Default is a 4 space indentation (N=1, S=4). (comment) : Out-commenting tags Sometimes it is useful to temporarily out-comment a tag instead of completely removing it. This can be done by just adding a sharp (``"#"'') character directly to the end of the tagname. The result is that the complete tag is commented out. For container-tags you have to comment out the end-tag explicitly, too. Example: ``<"a# href="..."">''. (tagcase) : Markup-code case-conversion Some people like their HTML markup code either to be all uppercase or all lowercase. This tag case-conversion is supported by the internal "<tagconv case=...>"..."</tagconv>" container tag from HTMLfix. Use "case=upper" to translate the HTML tags in its body to uppercase (default) or "case=lower" to translate them to lowercase. OPTIONS
-o outputfile This redirects the output to outputfile. Usually the output will be send to "stdout" if no such option is specified or outputfile is ""-"". -F fixes This option specifies which specifix fixups are performed. Its argument is a comma separated list of fixup names, and by default all fixups are performed. -S fixes This option does the inverse job, it skips specified fixups. -v This sets verbose mode where some processing information will be given on the console. AUTHORS
Ralf S. Engelschall rse@engelschall.com www.engelschall.com Denis Barbier barbier@engelschall.com EN Tools 2014-04-16 htmlfix(3)
All times are GMT -4. The time now is 11:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy