Hello all,
I need to run snoop command for a period of time (a day) and extract remote host column from it to find out who is accessing my server. When I run the following on the command line it works
snoop -port 22 | awk '{print $3}'
but when I do
snoop -port 22 | awk '{print $3}' | while... (2 Replies)
Hi all,
I'm quite new to unix and hope that someone can help me on this.
I'm using csh.
Below is what i intend to do.
1. I stored some data in a file.
2. I intend to read the file line by line and store each line of data into a variable, so that i can used it later.
Anyone have any... (4 Replies)
hi,
I am a begginer in unix and i want to know how to open a file and read it and separate the numbers & words and storing it in separate files, Using shell scripting.
Please help me out for this.
Regards
S.Kamakshi (2 Replies)
Hi,
How to read a file and put the values in a script. E.g.
file1.txt
02/12/2009;t1;t2
The script should read this file and put these values in 3 different variables x1,x2,x3 which can be used further.
Thanks
Ashu (3 Replies)
Hi Gurus,
I am trying for a scenario where in I want to read the contents of a file line by line and then store them in variables. Below is the script:
#!/bin/ksh
while read line
do
id=`echo $line | cut -f1 -d |`
name=`echo $line | cut -f2 -d |`
echo $id
... (11 Replies)
hello
i have two files
temp.txt
and temp_unique.text
the second file consists the unique fields from the temp.txt file
the strings stored are in the following form
4,4
17,12
15,65
4,4
14,41
15,65
65,89
1254,1298i'm able to run the following script to get the total count of a... (3 Replies)
Hello, I am quite new in shell scripting and I would like to write a little scritp to run a program on some parameters files.
all my parameters files are in the same directory, so pick them up with
ls *.para >>dirafter that I have a dir file like that:
param1.para
param2.para
etc...
I... (2 Replies)
I have a input file like this.
Sample.txt
30 | TXDatacenter | TXBackupDC
10 | UKDatacenter | UKBackupDC
0 | NLDatacenter | NLBackupDC
......
......
......
I need to get these values in different variables like this.
Load1=30
PriCenter1=TXDatacenter... (5 Replies)
Hi,
I have a file service.xml which has following content:
<?xml version="1.0" encoding="UTF-8"?>
<Service Ver="2.31.13"/>
I want to read the value of Ver (that is 2.31.13) and assign to a variable which i further use.
Please help me in that. (3 Replies)
Discussion started by: laxmikant15
3 Replies
LEARN ABOUT SUSE
papersize
PAPERSIZE(5) File Formats Manual PAPERSIZE(5)NAME
papersize - specify preferred paper size
SYNOPSYS
/etc/papersize
DESCRIPTION
The papersize file is used to specify the preferred paper size to use by available commands and programs generating documents.
The format of this file is extremely simple: whitespace and anything starting with `#' is ignored, and the name of the paper is the first
string found; the case in the name of the paper does not import (see CAVEATS section however).
PAPER NAMES
The following names are commonly understood by programs: a3, a4, a5, b5, letter, legal, executive, note and 11x17.
Additional paper names that one may encounter are: a0, a1, a2, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, tabloid, statement, note, halflet-
ter, halfexecutive, folio, quarto, ledger, archA, archB, archC, archD, archE, flsa, flse, csheet, dsheet, esheet and 10x14.
The value of the papersize file can be overrideen by looking in order at the PAPERSIZE environment variable, then at the contents of the
file specified by the PAPERCONF environment variable. If the papersize file does not exist, programs using the paper library default to
using letter as a fall-back value
CAVEATS
This manual page documents the format of the papersize file that is read by the libpaper library. Some programs that read this file do not
yet use the library and may have trouble ignoring whitespace and comments in the file; they may also require that the paper names use a
specific capitalization.
DOCUMENTATION
Yves Arrouye <arrouye@debian.org>
SEE ALSO paperconf(1)paperconfig(8)PAPERSIZE(5)