Sponsored Content
Top Forums Shell Programming and Scripting Move a line containg "char" above line containing "xchar" Post 302938739 by rex007can on Wednesday 18th of March 2015 04:25:02 PM
Old 03-18-2015
This gives an error at "="
 

9 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

How to remove "New line characters" and "spaces" at a time

Dear friends, following is the output of a script from which I want to remove spaces and new-line characters. Example:- Line1 abcdefghijklmnopqrstuvwxyz Line2 mnopqrstuvwxyzabcdefghijkl Line3 opqrstuvwxyzabcdefdefg Here in above example, at every starting line there is a “tab” &... (4 Replies)
Discussion started by: anushree.a
4 Replies

3. 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

4. Shell Programming and Scripting

AWK for multiple line records RS="^" FS="#"

I have to pull multiple line records with ^ as the record separator(RS)... # should be my field separator (FS)... Sample record is: ^-60#ORA-00060: deadlock detected while waiting for resource ORA-00001: unique constraint (SARADM.TCKNUM_PK) violated#PROC:AVAILABLE_FOR_GETNXTTIC#02/27/2012... (7 Replies)
Discussion started by: Vidhyaprakash
7 Replies

5. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

6. Shell Programming and Scripting

Find "*.c" and "Makefile" and then delete them with one line

find "*.c" and "Makefile" and then delete them with one line (3 Replies)
Discussion started by: yanglei_fage
3 Replies

7. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies

8. Shell Programming and Scripting

Failure: if grep "$Var" "$line" inside while read line loop

Hi everybody, I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o My code: #!/bin/sh set -e set -u export IFS= optl="Optl" LOCSTORCLI="/opt/lsi/storcli/storcli" ($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies

9. 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
YASR(1) 						      General Commands Manual							   YASR(1)

NAME
yasr (Yet Another Screen Reader) - is an attempt at a lightweight, portable screen reader. SYNOPSIS
yasr [ -C config file ] [ -c ] [ -s synthesizer ] [ -p synthesizer port ] [ program arg1 arg2 ... argN ] DESCRIPTION
yasr is a lightweight, portable screen reader. It works by opening a shell in a pty and intercepting all user input/output, maintaining a window of what should be on the screen by looking at the codes and text sent to the screen. It only requires that the user be able to access the text to speech (TTS) device. yasr was originally designed in conjunction with a Speak-out TTS device. Yasr also attempts to support DEC-Talk, DoubleTalk, Apollo, and ViaVoice Outloud, but more work is needed to get these to work fully. It may be able to work with Emacspeak servers, however. Currently yasr has two sets of keymaps, one for "review mode" (ie, reviewing the screen) and one for the standard mode. Keys defined for the standard mode are checked irrespective of whether the user is in review mode or standard mode, but the review mode keymap is checked first in the former case. OPTIONS
-C config file The configuration file that yasr should use. -c Attempts to emulate bash's -c command. It runs /bin/sh, passing it the arguments that were passed to yasr. -s synthesizer The TTS synthesizer to use in conjunction with yasr. -p synthesizer port The port that the TTS synthesizer is connected to. yasr will also fork and exec a program to run, if it (and any optional command line arguments it needs) are given as the last command line arguments. KEYBOARD SETTINGS
Review mode spacebar Say review cursor position. ^ Move to the first character on the line, and say word. $ Move to the last character on the line, and say word. b Say previous character. c Say character. d Say next character. e Read from cursor to bottom of screen. f Search for text on the screen. < Search from cursor to top of screen, using the previously-entered search string. > Search from cursor to bottom of screen, using the previously-entered search string. k Move up a line and read the line (currently same as up arrow). l Say current line. m Move down a line and read the line (currently same as down arrow). n Bypass (send directly to the application). t Read from top to cursor. w Read entire screen. z Move to beginning of previous word and read the word. x Move to beginning of next word and read the word. up arrow Move to previous line and read the line. down arrow Move to next line and read the line. left arrow Move back one character and read the character. right arrow Move ahead one character and read the character. ( Go to previous paragraph. ) Go to next paragraph. alt-i Reinitialize the synthesizer. ` Read the ASCII value of the current character. Standard mode These keys also work in review mode. ctrl-a Say application cursor position. ctrl-l Say line. ctrl-n Bypass. ctrl-x Flush speech buffer. alt-b Say previous character. alt-c Say chracter. alt-d Say word. alt-e Read cursor to bottom of screen. alt-k Say previous line. alt-l Read line. alt-m Read next line. alt-r Toggle review mode. alt-t Read top to cursor. alt-w Read entire screen. alt-x Silence speech. Like ctrl-x but will continue to be silent until a key is pressed (pressing alt-x a second time will start speech again, for example). ctrl-alt-k Keyboard wizard. Allows the user to move, copy, or delete keybindings from within yasr. ctrl-alt-o Options menu. Allows the user to set options from within yasr. ctrl-alt-s Save configuration to disk. alt-enter Disable yasr. Yasr is silent and ignores all keys when disabled. Press again to re-enable. Note: this key is defined in the [options] section as "DisableKey" FILES
/usr/local/share/yasr/yasr.conf yasr configuration file. AUTHOR
Michael P. Gorse <mgorse@users.sourceforge.net> 16 August 2002 YASR(1)
All times are GMT -4. The time now is 04:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy