Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to search for a string with special chars? Post 302889211 by Lucas_0418 on Wednesday 19th of February 2014 11:10:55 AM
Old 02-19-2014
Hi, guy.
you sure you are using less to view it, right ?
I think /\[1682\]="17" could work.
If you find that it does not highlight.
Try to press Esc+u to switch the highlight mode in less.

Hope this can help u.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Supress special chars in vi

Hi, One of our application is producing log files. But if we open the log file in vi or less or view mode, it shows all the special characters in it. The 'cat' shows correctly but it shows only last page. If I do 'cat' <file_name> | more, then again it shows special characters. ... (1 Reply)
Discussion started by: divakarp
1 Replies

2. Shell Programming and Scripting

treating special chars

Hi, I need some advise on treating non printable chars over ascii value 126 Case 1 : On some fields in the text , I need to retiain then 'as-is' and load to a database.I understand it also depends on database codepage. but i just wanna know how do i ensure it do not change while loading... (1 Reply)
Discussion started by: braindrain
1 Replies

3. Shell Programming and Scripting

special chars arrangement in code

here is my simple script to show process and owners except me: ps `-ef |grep xterm |grep -v aucar` | while read a1 a2 a3 a4 a5 a6 a7 a8 do echo KILL..\($a1\).. $a2 |more done how can I pass values from command "ps -ef |grep xterm|grep -v aucar" to ? because above command... (2 Replies)
Discussion started by: xramm
2 Replies

4. Shell Programming and Scripting

Special chars in sed variable

Hi, For years ive been using this script to do mass search & replaces on our websites. Its worked with all sorts of spaces, quotes, html or whatever with a little adjusting here and there. But I just cant get this pattern to work: #!/bin/bash OLDURL="document.write('<script... (2 Replies)
Discussion started by: mutex
2 Replies

5. UNIX for Dummies Questions & Answers

Strings with Special chars in IF condition

I was trying to run a code to check if a fax number is empty or not. for that, I've written the following code which is throwing an error. #!/bin/ksh fax= "999-999-9999" if ; then fax_no="000-000-0000" else fax_no=$fax fi echo $fax_no And I get the... (7 Replies)
Discussion started by: hooaamai
7 Replies

6. UNIX for Dummies Questions & Answers

Remove Unicode/special chars from XML

Hi, We are receiving an XML file in Unix which has some special characters between tags like '^' etc <Tag> 1e^O7f%<2304e.$d8f57e8^Bf-&e.^Zh7/327e^O7 </Tag> We need to remove all special characters like ^ ones and also any '&' or '<' or '>' being sent within the start and close tags i.e.... (6 Replies)
Discussion started by: dsrookie7
6 Replies

7. Shell Programming and Scripting

print all between patterns with special chars

Hi, I'm having trouble with awk print all characters between 2 patterns. I tried more then one solution found on this forum but with no success. Probably my mistakes are due to the special characters "" and "]"in the search patterns. Well, have a log file like this: logfile.txt ... (3 Replies)
Discussion started by: ginolatino
3 Replies

8. Shell Programming and Scripting

All strings within two special chars

I have a file with multiple lines. From each line I want to get all strings that starts with '+' and ends with '/'. Then I want the strings to be separated by ' + ' Example input: +$A$/NOUN+At/NSUFF_FEM_PL+K/CASE_INDEF_ACC Sample output: $A$ + At + K (20 Replies)
Discussion started by: Viernes
20 Replies

9. Shell Programming and Scripting

If condition matching with special chars

Hi, I have file #cat drivers.txt fcs0 fcs1 vscsi1 vscsi2 In this i need to check the availabality of "fcs" or "vscsi" alone not vscsi0,fcs1 I tried with "if condition" but it is not working. cat drivers.txt| while read ADAP do echo "Checking for $ADAP" if ;then echo "FC... (9 Replies)
Discussion started by: ksgnathan
9 Replies

10. UNIX for Beginners Questions & Answers

Shell script to split data with a delimiter having chars and special chars

Hi Team, I have a file a1.txt with data as follows. dfjakjf...asdfkasj</EnableQuotedIDs><SQL><SelectStatement modified='1' type='string'><! The delimiter string: <SelectStatement modified='1' type='string'><! dlm="<SelectStatement modified='1' type='string'><! The above command is... (7 Replies)
Discussion started by: kmanivan82
7 Replies
emux_diag(1M)															     emux_diag(1M)

NAME
- the HP PCI/EISA multiplexer diagnostic program SYNOPSIS
DESCRIPTION
The command starts a menu-driven utility program permitting the user to retrieve status information, view the hardware configuration and to perform diagnostic testing on mux components (e.g. port modules). Displays are provided for: monitoring transmitted and/or received port data; observing RS232 modem control lead status; viewing port parameter settings; performing system card functionality tests; viewing the hardware and software configuration; viewing the topology. Running emux_diag The following conventions are used when running the utility: Arrow keys are used to move between menus and menu selections; Pressing the Enter key selects the highlighted menu item; Pressing the Esc key will backup one menu level; Pressing the F1 function key displays a context sensitive help; To exit from the utility, highlight from the main menu and press the Enter key. To start the diagnostic utility, type at the UNIX command prompt and press the Enter key. The Main Menu displays the following four selec- tions: DRIVER STATUS Use the right arrow key to position the cursor on the Driver Status selection and press the Enter key. A drop down menu displays the following four choices: Driver Status Board Status Counters Topology Driver Status Highlight and press the Enter key. The current configuration of the device driver and the number of boards found are displayed. This selection is commonly used to view the device driver version. Board Status Highlight and press the Enter key. Board specific information including board type, buffer block starting location, buffer size and bus slot location is displayed. Counters Highlight and press the Enter key. If more than one board is present, a board select vertical menu is presented. Highlight the board you wish to view counter status on and press the Enter key. Next, if the board you have selected is an expandable unit, the user is presented with a group select vertical menu. Each menu item represents a group of 8 or 16 ports. Highlight the desired group (e.g., Ports b1 through b16) and press the Enter key. The Counters screen is displayed showing the transmit and receive character counts for up to 16 ports (1 group). The Counters screen is updated in real-time, runs continuously and can be reset. This screen is very useful for locating ports loopbacked externally or ports currently communicating with a modem or other async device. Topology Highlight and press the Enter key. A pictorial representation of a host system card and port modules (if you are viewing an expandable board) attached to the host system card is displayed. The topology display is useful for troubleshooting problems with the expansion bus cable or for determining exactly what is connected to the host system. Exit the menu by pressing the Esc key. PORT STATUS
Use the right arrow key to position the cursor on the selection and press the Enter key. A drop down menu displays the following four choices: Breakout Box Data Scope Termio Register Dumps Breakout Box Highlight and press the Enter key. This selection displays the RS-232 lead status. You can check for modem DCD problems as well as the status of output flow control. Additionally, transmit rate, receive rate, total characters received, total characters transmitted and buffered data counters are displayed. This option can be use to determine how much communications activity has, and is currently taking place. It is also useful in troubleshooting wiring and flow control problems. Data Scope Highlight and press the Enter key. The user is presented with a form to configure: Device: This field allows you to specify the device to be monitored. Monitor: Specifies which direction is to be monitored - Input, Output or Both. Buffer: Specifies the size of the capture buffer - 32K, 64K or 128K. Buffer Full: In the event that the buffer becomes full, select whether the program stops or continues from the beginning of the buf- fer (wraparound). Display: Select whether or not the display shows the status of the flow control signals. Start: This is used to initiate real-time monitoring and display of the actual characters that are being sent and/or received by the port. Use this monitor display to obtain both hexadecimal and ASCII data. After data has been captured, you are given the opportunity to view the data using an ASCII/hexadecimal browser. Termio Highlight and press the Enter key. This selection displays general terminal interface data associated with the port. It is similar to the command in that it displays all enabled termio flags. Register Dump Highlight and press the Enter key. This option displays a real-time window of the port memory on the adapter card. The data is in raw form and only useful to HP technical personnel. It is used to obtain valuable information about the hardware status and various software flags. Exit the Port Status menu by pressing the Esc key. DIAGNOSTICS
Use the right arrow key to position the cursor on the selection and press the Enter key. A drop down menu displays the following two choices: Loopback Send Loopback Highlight and press the Enter key. A form requesting the following items is displayed. Speed: Specifies the baud rate or speed at which the ports will transfer data. Verify: Selects whether or not input data is verified. Update: Allows you to specify the frequency (in seconds) at which results are updated. Errors: Selects whether or not the program will stop when errors are encountered. Loop Type: Selects whether the ports use an internal or external loopback. Mode: Allows you to specify the mode in which the program will run. The loopback feature is designed to test the Mux card primary components and their functionality. The test can be run on a single port or a group of ports at the same time. The test does not require that the selected port(s) have the transmit and receive pins wired together. You have the option of running the test using an internal feature which loops back the data sent out. This simulates a loopback cable. Data is looped both toward the computer as well as toward the terminal. The program starts by writing a data pattern to the selected port(s) and reading the data back and comparing it to the pattern written out. The program reports, at regular intervals, the number of characters transmitted and received, errors and calculated receive rates. The data transmitted is an ascending pattern that starts at 1 decimal to 255 decimal. It is highly recommended (in external loopback mode) that the port(s) under test have all devices disconnected and have loopback connectors attached for tying the ports' transmit and receive signals together. Since control characters are being sent, any terminals or printers that are connected to the selected ports during the external loopback test may hang. Send Highlight and press the Enter key. The send display allows you to send a barber pole of ascending alphanumeric characters to the selected port. It then writes these printable characters back out of the port. This test is useful when adding a new device and a continuous stream of data is required to resolved wiring issues. The port configuration is 8 data bits, 1 stop bit and no parity. Exit the menu by pressing the Esc key. QUIT
Use the right arrow key to position the cursor on the selection and press the Enter key. A drop down menu displays the following choice: Quit To quit the program, highlight the Quit choice and press the Enter key. The screen returns to the UNIX prompt. AUTHOR
was developed by Equinox Systems, Inc. FILES
accesses the diagnostic files found in /dev/diag/mux<Instance>, /dev/diag/mux<Instance>_1, and /dev/diag/mux<Instance>_2. SEE ALSO
emux_stty(1), stty(1), termio(7), modem(7). emux_diag(1M)
All times are GMT -4. The time now is 08:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy