02-01-2012
But unable to search and replace
Quote:
perl -pi -e s/^^^613*/abcdefg/g /test/x201.cfg
Quote:
[root@server1 ~]# grep -r -w "reg.1.random" /test/ --include=x*.cfg
/test/test2/test3/x201.cfg:reg.1.random="^^^613*"
/test/x710.cfg:reg.1.random="3gUIoPKD7pa3"
/test/x201.cfg:reg.1.random="^^^613*"
/test/x240.cfg:reg.1.random="irAA6M8UT8gh"
/test/x205.cfg:reg.1.random="NA601EFesktM"
/test/x202.cfg:reg.1.random="GSF96BqBwh9w"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to check ftp'd incoming files for characters that are not alphanumeric,<tab>, <cr>, or <lf> characters. Each file would have 10-20,000 line with up to 3,000 characters per line. Should I use awk, sed, or grep and what would the command look like to do such a search? Thanks much to anyone... (2 Replies)
Discussion started by: jvander
2 Replies
2. Shell Programming and Scripting
Sometimes obvious things... are not so obvious. I always thought that it was possible to grep non printable characters but not with my GNU grep (5.2.1) version.
printf "Hello\tWorld" | grep -l '\t'
printf "Hello\tWorld" | grep -l '\x09'
printf "Hello\tWorld" | grep -l '\x{09}'
None of them... (3 Replies)
Discussion started by: ripat
3 Replies
3. UNIX for Dummies Questions & Answers
i have a file which contains non printable characters
like enter,escape etc
i want to delete them from the file (2 Replies)
Discussion started by: alokjyotibal
2 Replies
4. HP-UX
I have been using OKI data Microline printers; models 590 and 591 to print a bar code using the following escape sequence:
\E^PA^H^C00^D^C^A^A^A\E^PB^H
The escape sequence is stored in a unix file which is edited using vi.
Now, we are considering Microline printer model 395C and the bar code... (3 Replies)
Discussion started by: Joy Conner
3 Replies
5. Shell Programming and Scripting
Hi,
We have a non printable character "®" in our file , we want to remove this character, we tried tr -dc '' < oldfile> newfile but this command is removing all new line entries along with the non printable character and all the records are coming in one line(it is changing the format of the... (2 Replies)
Discussion started by: pyaranoid
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
in a file, i have records as below:
123|62|absnb|267629
123|267|28728|uiuip
123|567|26761|2676
i want to remove the non printable characters after the end of each record.
I guess there are certain charcters but not visible.
i don't know what character that is exactly.
I used... (2 Replies)
Discussion started by: pandeesh
2 Replies
7. Shell Programming and Scripting
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Discussion started by: ijustneeda
11 Replies
8. Shell Programming and Scripting
Hallo Team,
I am trying to get rid of the dollar sign. I managed to remove all the other special characters but i am struggling with this one.
-bash-3.2$ cat -e missing_revenue_20141112.csv|less|head
BW0522168531211141180935668@196.23.110.141$
BW092218784121114-370120610@196.23.110.141$... (4 Replies)
Discussion started by: kekanap
4 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to find non-printable characters in a string. The sting could have alphanumeric, puntuations and characters like (*&%$#.') but not non-printable (or that is what I think they are called) which are introduced when you copy any text from DOS to unix box.
Input string1:... (10 Replies)
Discussion started by: dips_ag
10 Replies
10. Shell Programming and Scripting
Hi,
I have a huge file (50 Mil rows) which has certain non-printable ASCII characters in it. I am cleaning the file by deleting those characters using the following command -
tr -cd '\11\12\15\40-\176' < unclean_file > clean_file
Please note that I am excluding the following -
tab,... (6 Replies)
Discussion started by: rishigc
6 Replies
LEARN ABOUT DEBIAN
polygraph
POLYGRAPH(7) User Commands POLYGRAPH(7)
NAME
Polygraph - performance benchmark for web intermediaries
DESCRIPTION
Web Polygraph is a performance testing tool for caching proxies, origin server accelerators, L4/7 switches, content filters, and other Web
intermediaries. Polygraph's features include:
* high-performance HTTP clients and servers
* realistic HTTP, FTP, and SSL traffic generation
* HTTP Basic, NTLM, and Negotiate proxy authentication
* LDAP-friendly generation of user credentials
* flexible content simulation
* ready-to-use standard workloads for benchmarking
* powerful domain-specific configuration language
* portable open-source implementation
* friendly commercial support
Web Polygraph consists of many tools listed below. See individual man pages for more information. Detailed documentation is available at
www.web-polygraph.org.
polygraph-aka - IP aliases manipulation tool
polygraph-beepmon - forwards BEEP messages to an external program
polygraph-cdb - content database manipulation tool
polygraph-client - Web Polygraph client simulator
polygraph-cmp-lx - log comparison tool
polygraph-distr-test - distribution test
polygraph-dns-cfg - DNS server configuration tool
polygraph-lr - console log extractor
polygraph-ltrace - trace extractor
polygraph-lx - stats extractor
polygraph-pgl2acl - translates PGL access rules into Squid Proxy ACLs
polygraph-pgl2eng - PGL to English converter
polygraph-pgl2ips - PGL IP addresses calculator
polygraph-pgl2ldif - LDIF (and other text-based) configuration generator
polygraph-pgl-test - PGL validator
polygraph-pmix2-ips - PolyMix-2 address calculator
polygraph-pmix3-ips - PolyMix-3 address calculator
polygraph-polymon - interactive test monitoring tool
polygraph-polyprobe - tests TCP throughput in a full client/server mesh
polygraph-polyrrd - supplies run-time Polygraph stats to RRDtool
polygraph-pop-test - predicts cache hit ratios for a given workload
polygraph-reporter - HTML report generator
polygraph-rng-test - random number generator test
polygraph-server - Web Polygraph server simulator
polygraph-udp2tcpd - converts UDP monitoring messages into a TCP stream read by polymon
polygraph-webaxe4-ips - WebAxe-4 address calculator
COPYRIGHT
Copyright (C) 2003-2006 The Measurement Factory, Inc.
SEE ALSO
polygraph-aka(1), polygraph-beepmon(1), polygraph-cdb(1), polygraph-client(1), polygraph-cmp-lx(1), polygraph-distr-test(1),
polygraph-dns-cfg(1), polygraph-lr(1), polygraph-ltrace(1), polygraph-lx(1), polygraph-pgl2acl(1), polygraph-pgl2eng(1),
polygraph-pgl2ips(1), polygraph-pgl2ldif(1), polygraph-pgl-test(1), polygraph-pmix2-ips(1), polygraph-pmix3-ips(1), polygraph-polymon(1),
polygraph-polyprobe(1), polygraph-polyrrd(1), polygraph-pop-test(1), polygraph-reporter(1), polygraph-rng-test(1), polygraph-server(1),
polygraph-udp2tcpd(1), polygraph-webaxe4-ips(1)
http://www.web-polygraph.org/ - project web site
Web Polygraph February 2010 POLYGRAPH(7)