Sponsored Content
Top Forums UNIX for Advanced & Expert Users Exclude dash (-) from word separators in vi Post 302610743 by jim mcnamara on Wednesday 21st of March 2012 05:48:59 PM
Old 03-21-2012
Well, I hope someone else knows more. Can't find anything useful. Although vi -t is not so horrible a burden to get what you need.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

want to remove separators from file

Hi, I have huge file, head -1 filneame gives, I just want to remove "##colsep##" from the file, and also want to count the no. of fileds present, as in Output shld be in newfile as TRADE_KEY,TRADE_DATE and total no. of fileds separated by these comma's ... (7 Replies)
Discussion started by: niceboykunal123
7 Replies

2. Shell Programming and Scripting

Exclude specific word from input file problem asking...

Hi, Below is my input file and desired output file: Input file: >header_N_1 ASFDGDGNDGEGWETWRYWTETWNETOWETWETWNETTETNWET . . Desired output file: >header_N_1 ASFDGDGDGEGWETWRYWTETWETOWETWETWETTETWET . . From the input file, I just hope to exclude the 'N' word from its content... (5 Replies)
Discussion started by: patrick87
5 Replies

3. Shell Programming and Scripting

how to use two separators in awk.

Hi, Gurus, I have a file like 1 234, 345, 456 2 345, 456, 345 I want to use awk with multipe separator ( one is comma, another is space)print out $1, $3 which should be: 1, 345 2, 456 but I don't know how to put space as separator with another separator. Thanks in advance (7 Replies)
Discussion started by: ken002
7 Replies

4. Ubuntu

[Solved] Using Find with an exclude/exclude file

I am familiar with using tar and exclude/include files: tar zcf backup.dirs.tgz --files-from=include.mydirs --exclude-from=exclude.mydirs --no-recursion but was wondering if I could use find in the same way. I know that you can just specify the directories to exclude but my list is... (2 Replies)
Discussion started by: metallica1973
2 Replies

5. UNIX for Dummies Questions & Answers

Can one use 2 field separators in awk?

I have files such as n02-z30-dsr65-terr0.25-dc0.008-16x12drw-run1.cmd I am wondering if it is possible to define two field separators "-" and "." for these strings so that $7 is run1. (5 Replies)
Discussion started by: kristinu
5 Replies

6. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies

7. Shell Programming and Scripting

How to ignore quoted separators

Hi, I'm trying to parse a text file which uses commas as field separators. Fields are double quoted, and may themselves contain commas, like this: "1","John Smith","London","123" "2","Mary Robertson","Horsham, Sussex","456" This causes problems for the following command cut -d","... (7 Replies)
Discussion started by: sven44
7 Replies

8. Shell Programming and Scripting

Script to count word occurrences, but exclude some?

I am trying to count the occurrences of ALL words in a file. However, I want to exclude certain words: short words (i.e. <3 chars), and words contained in an blacklist file. There is also a desire to count words that are capitalized (e.g. proper names). I am not 100% sure where the line on... (5 Replies)
Discussion started by: Cronk
5 Replies

9. Shell Programming and Scripting

Exclude dash in grep

Hi, I must be overlooking something, but I don't understand why this doesn't work. I'm trying to grep on a date, excluding all the lines starting with a dash: testfile: #2013-12-31 2013-12-31code: grep '^2013-12-31' testfileI'm expecting to see just the second line '2013-12-31' but I don't... (3 Replies)
Discussion started by: Subbeh
3 Replies

10. Shell Programming and Scripting

A dash to GOTO or a dash from GOTO, that is the question...

Well, guys I saw a question about GOTO for Python. So this gave me the inspiration to attempt a GOTO function for 'dash', (bash and ksh too). Machine: MBP OSX 10.14.3, default bash terminal, calling '#!/usr/local/bin/dash'... This is purely a fun project to see if it is possible in PURE... (3 Replies)
Discussion started by: wisecracker
3 Replies
ffproxy.conf(5) 					      BSD File Formats Manual						   ffproxy.conf(5)

NAME
ffproxy.conf -- filtering HTTP/HTTPS proxy server configuration file DESCRIPTION
ffproxy is a filtering HTTP/HTTPS proxy server. It is able to filter by host, URL, and header. Custom header entries can be filtered and added. It can even drop its privileges and optionally chroot(2) to some directory. Logging to syslog(3) is supported, as is using another auxiliary proxy server. An HTTP accelerator feature (acting as a front-end to an HTTP server) is included. Contacting IPv6 servers as well as binding to IPv6 is supported and allows transparent IPv6 over IPv4 browsing (and vice versa). This manual describes how to use configuration files with the program and documents the options. USING CONFIGURATION FILES
Default ffproxy.conf If the command line parameters -f or -F are not used, the proxy tries to open /etc/ffproxy/ffproxy.conf. If this file does not exist, the program continues execution. User Configuration File Use command line parameter -f to load a non-default configuration file. You will notice the warning at the program's startup. This is due to the programs implementation that allows one to reload all configuration files. To disable the warning, use -F instead. Deactivating To use command line options only, use -f "". Reloading Configuration To let the proxy reload its configuration files, that is, besides the configuration file specified, the contents of db/ and html/, send the signal HUP to the program's master process. ffproxy pid can be found by default in file /var/run/ffproxy.pid, you can override /var/run directory with command line parameter -n or with pid_dir setting in config file. Options that can be successfully altered at runtime are child_processes use_ipv6 use_syslog log_all_requests forward_proxy forward_proxy_port forward_proxy_ipv6 accel_host accel_port accel_user_host use_keep_alive unrestricted_connect timeout_connect backlog_size Set `accel_port 0' or `forward_proxy_port 0' to explicitly disable acceleration or auxiliary proxy. Commenting out options is not suffi- cient, since configuration options may only overwritten. Changes to other options not mentioned above get silently ignored. CONFIGURATION OPTIONS
# # lines starting with '#' are comments # # run as daemon? # (default: no) #daemonize yes #daemonize no # number of child processes, # that is, the maximum number of concurrent requests # (default: 10) #child_processes 10 # ffproxy binds to any IPv4 address # and any IPv6 address by default # # bind to IPv4? (default: yes) #bind_ipv4 no #bind_ipv4 yes # bind to IPv6? (default: yes) #bind_ipv6 no #bind_ipv6 yes # # Hostname or IP to bind to # (default is any IP) # #bind_ipv4_host 192.168.10.1 #bind_ipv4_host martyr.burden.eu.org #bind_ipv6_host ::1 #bind_ipv6_host oz.burden.eu.org # listen on port # (default: 8080) #port 1111 #port 8080 # use IPv6 when contacting servers? # (default: yes) #use_ipv6 no #use_ipv6 yes # use syslog? # (default: yes) #use_syslog no #use_syslog yes # log all requests? # (default: no) # to use, set also use_syslog to yes #log_all_requests yes #log_all_requests no # change UID and GID # # to use, both uid and gid must be set # (disabled by default) #uid proxy #gid proxy #uid 37 #gid 38 # change root to (only in connection with uid and gid change) # /etc/resolv.conf might need to be copied # to chroot_dir/etc/resolv.conf # (disabled by default) #chroot_dir /usr/share/ffproxy # forward to proxy (auxiliary proxy) # (set `forward_proxy_port 0' to explicitly disable feature # (i.e, when reloading configuration file via SIGHUP)) # (disabled by default) #forward_proxy blackness.burden.eu.org #forward_proxy 192.168.10.5 #forward_proxy ::1 #forward_proxy_port 8082 #forward_proxy_port 0 # try IPv6 for auxiliary proxy? # use_ipv6 must be set to yes, too # (default: yes) #forward_proxy_ipv6 no #forward_proxy_ipv6 yes # path to db/ and html/ directories # (default: /usr/share/ffproxy) # (Note: if ffproxy runs chrooted, # give a path name relative to new root, or, # if db_files_path is the same as root, use db_files_path ./ # You have to start ffproxy in the new root directory, # otherwise it won't find the database files. # Please keep in mind that ffproxy's config file has to # be within chroot directory, otherwise it will not find # its config file on reload) #db_files_path ./ #db_files_path /usr/share/ffproxy # http accelerator # (disabled by default) # # if you want to use ffproxy as http accelerator (that is, connecting # to just one http server and beeing used as front-end to that, e.g. # in DMZ) uncomments options below (port is optional, defaults to 80) # (set `accel_port 0' to explicitly disable feature # (i.e, when reloading configuration file via SIGHUP)) #accel_host 10.254.1.2 #accel_host revelation.martyr.eu.org #accel_port 80 #accel_port 0 # # Omit Host: accel_host:accel_port in Header # to provide own Host: header via db/filter.header.add? # (default: yes) #accel_user_host no #accel_user_host yes # keep alive on client to proxy connections # (enabled by default) #use_keep_alive no #use_keep_alive yes # allow CONNECT request to other than port 443 (HTTPS) # (CONNECT enables HTTPS proxying) # (disabled by default for security) #unrestricted_connect yes #unrestricted_connect no # timeout for CONNECT requests in seconds # (default: 5) #timeout_connect 20 #timeout_connect 5 # backlog size for accept() # (default: 4) #backlog_size 16 #backlog_size 4 # directory to store file ffproxy.pid (with ffproxy pid inside) # (default: /var/run) #pid_dir /tmp #pid_dir /var/run VERSION
This manual documents ffproxy 1.6 (2005-01-05). FILES
/etc/ffproxy/ffproxy.conf default configuration file sample.config sample configuration file SEE ALSO
ffproxy(8), ffproxy.quick(7), regex(7), re_format(7), syslogd(8), chroot(2), kill(1) Jan 5, 2005
All times are GMT -4. The time now is 06:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy