12-18-2012
Thank you! Great...
It worked fine.. But this displaying the whole content..
Is there any way to display particular 13th field?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm extremely new to scripting and linux in general, so please bear with me. The class I'm taking gives virtually no instruction at all, and so I'm trying to learn everything off the web.
Anyway, I'm trying to extract characters that follow after a specific pattern ( '<B><FONT FACE="Arial">' ) but... (3 Replies)
Discussion started by: livos23
3 Replies
2. Shell Programming and Scripting
I have a requirement where i have to read from a .sh file a text lying bet characters like 'SELECT' & ';'...Please help me out in this. I am new to shell scripting. (2 Replies)
Discussion started by: goutam_igate
2 Replies
3. Shell Programming and Scripting
Hi All,
i am trying to remove all special charecters().,/\~!@#%^$*&^_- and others from a tab delimited file.
I am using the following code.
while read LINE
do
echo $LINE | tr -d '=;:`"<>,./?!@#$%^&(){}'|tr -d "-"|tr -d "'" | tr -d "_"
done < trial.txt > output.txt
Problem
... (10 Replies)
Discussion started by: kkb
10 Replies
4. Shell Programming and Scripting
Hi,
is there a way to check if the initial few characters are ebcdic or ascii in a file? (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies
5. UNIX for Dummies Questions & Answers
I have a text file that looks like this:
I want to delete the last character of first column in all rows so that my output looks like this:
Thanks a lot! (1 Reply)
Discussion started by: evelibertine
1 Replies
6. Shell Programming and Scripting
Can I just say, this is such a frustrating and yet enormously rewarding field of study. I'm in the middle of configuring GeekTool (Uh oh, stupid n00b) and I really only have one question.
I'm using Automator to grab a RSS feed, having GeekTool continually run that application every 10 minutes,... (7 Replies)
Discussion started by: SomeTechGuy
7 Replies
7. UNIX for Dummies Questions & Answers
When I use vi to see what's in the file I get this:
int add1(int x) {^M return x + 1;^M}
^Mint subtract1(int x) {^M return x - 1;^M}
^Mint double_it(int x) {^M return x * 2;^M}
^Mint halve_it(int x) {^Mreturn x / 2;^M}
^Mint main() {^M int myint;^M int result;^M ... (2 Replies)
Discussion started by: Nonito84
2 Replies
8. Shell Programming and Scripting
Hi,
I have a text file which when I do a 'cat' on it looks like below with the OK’s showing in green and any FAIL showing in red.
cat filename output:
===== MySQL Query Check =====
DB mpuser is alive. 733 = Expected 733 Tables. OK ]
DB mpuser_wf is alive. 61 =... (6 Replies)
Discussion started by: bunti
6 Replies
9. UNIX for Dummies Questions & Answers
Version Info:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
$
$ uname -a
Linux stryker138 2.6.18-308.13.1.el5 #1 SMP Thu Jul 26 05:45:09 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
I redirected manpage of ksh command's output to a text file as shown... (6 Replies)
Discussion started by: kraljic
6 Replies
10. Shell Programming and Scripting
I am using flatfile, in that flat file we are getting the junk chars
1)I21001f<82>^Me<85>!h49 Service Charge
2) I21001f‚
e...!h49 Service Charge
please tell me how to remove all junk chars in unix scripts. (1 Reply)
Discussion started by: Talari
1 Replies
LEARN ABOUT DEBIAN
gopherrc
GOPHERRC(5) File Formats Manual GOPHERRC(5)
NAME
gopherrc - configuration file for gopher(1)
DESCRIPTION
The gopherrc file contains a list of directives that alter the behaviour of the gopher(1) client. It is composed of lines of the form:
Token: Value
Tokens are case insensitive and the value field will change, depending on the token. A pound sign ("#") at the beginning of a line signi-
fies a comment line.
Gopherrc files are used in a number of places. There is a global gopherrc file (called gopherrc). This is usually placed in a systemwide
directory. A file with the same format called remotegopher.rc is also used by the gopher client when using the -r switch.
Also, an individual has their own customized version of this file in their home directory in the file .gopherrc. On VMS this file is called
GOPHERRC.
All of these files use the format described below.
Most people will set the values in this file by pressing the 'O' key to set options in the curses gopher client, rather than editing this
file directly. People considering editing this file on VMS should make sure their editor preserves the Stream_LF format of the file.
Quick pseudo grammar
map: <content type>,<display command>,<print command>
SearchBolding: <yes|no>
Bookmarks:
<bookmarks>
The following tokens are recognized
map:
maps a content type (such as text/plain, or image/gif) to commands to execute for displaying the document or printing the document, i.e.
The content type, display command, and printing command are separated by commas.
The sequence of %s is replaced with the filename of a temporary file containing the document to be printed or viewed.
If the command starts with the vertical bar (|) the command will be executed immediately and the document will be sent to the commands
standard input. Note this feature does not work on VMS.
If the display command is set to 'builtin', then the text file pager inside the gopher client will be used to display the item.
SearchBolding:
controls the clients display of search terms. If the value is 'yes', then search words will be bolded. Otherwise they'll be left alone.
Bookmarks:
The bookmarks in .link format follow. For more information on the format of a .link file, consult the gopherd(8) manual page.
Sample gopherrc file:
map: text/plain,builtin,lpr %s
map: image/gif,xv %s,
Bookmarks:
Type=1
Name=Bookmark #1
Host=gopher.tc.umn.edu
Port=70
Path=
#
Type=0+
Name=textfile
Host=foo.com
Path=0/readme
Port=70
SEE ALSO
Media Type Registration Procedure, March 1994, RFC 1590 gopher(1),gopherd(8)
GOPHERRC(5)