05-02-2002
The filename is names: I tried.
sed 's/[a-zA-Z]* //g' < names
and got:
D.Bullock
Ham
Mrs.Avent
RUSSELL
Mr.R.Harris
Tyndall
Ms.D.Alamo
Not exactly... but I think I can fiddle with it from here.
What does //g do in the command above?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
2. UNIX for Dummies Questions & Answers
In a file let a.txt, has 1 line code i.e.
code
QC:Tiger:10:
/code
I need to get my output like "Tiger 10". So how can i do this? (3 Replies)
Discussion started by: anupdas
3 Replies
3. Shell Programming and Scripting
Hello Friends,
I have a txt file which has data like this
TNS Ping Utility for Solaris: Version 10.2.0.3.0 - Production on 23-MAR-2010 15:38:42
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to... (7 Replies)
Discussion started by: njafri
7 Replies
4. Shell Programming and Scripting
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
Discussion started by: venu
3 Replies
5. Shell Programming and Scripting
Hi,
I've searched the forum to get what I wanted but to no avail. Here's the problem I'm facing.
The line is suppose as below:
<INPUT DATABASE ="ORACLE" DBNAME ="UNIX" NAME ="FACT_TABLE" OWNERNAME ="DIPS">
Now I want to extract only FACT_TABLE. The trials are as follows:
awk... (3 Replies)
Discussion started by: dips_ag
3 Replies
6. UNIX for Dummies Questions & Answers
Hello experts,
I have question that i want to extract the second last word of each line.
I have a text file, in that text file there are near about 40 lines.
sample of line present in file
/user/Oracle/x/x/S/part_bkp/temp_part_bkp/x1/test1... (2 Replies)
Discussion started by: aks_1902
2 Replies
7. Shell Programming and Scripting
Hi i want to extract the word present before .txt in the text file.
For example,
Sample_ab_a.txt ----------> i need 'a'
Sample_abc_b.txt -----------> i need 'b'
Can anyone help me in getting the word extracted (5 Replies)
Discussion started by: Sindhuap
5 Replies
8. Shell Programming and Scripting
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
6 Replies
9. Shell Programming and Scripting
I have a file which I am reading and then I need to extract a particualr word and if it matches the line.
2015-01-22 07:30:17,814000 +0900 /INFO: - <ns2:virtualServerid="PH11PK" />
Means if the line contain Virtual server I need to extract the id .
Code I wrote#!/usr/bin/perl
... (19 Replies)
Discussion started by: karan8810
19 Replies
10. Shell Programming and Scripting
Hi Everyone,
Need help in extracting the hostname from the below output.
Expected output:
DS-TESTB-GDS-1.TEST.ABC.COM
DS-TESTB-GDS-2.TEST.ABC.COM
....
...
/tmp $ cat -n /tmp/patchreport
1 /usr/bin/perl /admin/bin/patch/applyPatches.pl --apply_patches... (4 Replies)
Discussion started by: thiyagoo
4 Replies
LEARN ABOUT MOJAVE
restoretextmode
restoretextmode(1) Svgalib User Manual restoretextmode(1)
NAME
restoretextmode - save or restore the SVGA registers for textmode.
SYNOPSIS
restoretextmode {-r|-w} filename
DESCRIPTION
The state of the SVGA is written to or restored from filename using the vga_gettextmoderegs(3) and vga_settextmoderegs(3) functions.
As of this writing this file is 385 bytes long but this might change with future versions.
Please do not fiddle with the contents of the file except when you know what you do. It might even result in hardware damage. Because of
that, you should think twice to make this command available to all users on your system.
The purpose of this program is usually to recover from a crashed console due to an svgalib, Xfree or other program bug. First save the
state of the SVGA card when on a text console. After the crash restore this state. The savetextmode(1) and textmode(1) script makes this
procedure very easy.
OPTIONS
-w filename
write the SVGA state to the file filename.
-r filename
restore the SVGA state from the file filename.
SEE ALSO
svgalib(7), vgagl(7), libvga.config(5), vga_gettextmoderegs(3), vga_settextmoderegs(3), dumpreg(1), convfont(1), fix132x43(1), restore-
font(1), restorepalette(1), runx(1), savetextmode(1), setmclk(1), textmode(1).
AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced utility as well as of the
original documentation is unknown.
It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections
to this first version of the svgalib manual.
Svgalib (>= 1.2.11) 2 Aug 1997 restoretextmode(1)