01-05-2006
If you know the line number (e.g. the third line):
sed '3 p' infile > outfile
or if it's a unique match
grep "whatever" infile > outfile
You may need to be more specific.
Post your input file and what you want to extract.
Cheers
ZB
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Anyone know where I can find good documentation for IPF on the Internet?
Thanks,
Chuck (1 Reply)
Discussion started by: 98_1LE
1 Replies
2. Solaris
I don't have much experience with solaris printers.
I've created a printer using lpadmin. When I tried to print something, I got a message that there a no filters on the server.
I went to docs.sun.com and got a script to add a filter (below)
for filter in *.fd;do
>name=`basename $filter... (1 Reply)
Discussion started by: soliberus
1 Replies
3. UNIX for Dummies Questions & Answers
I encountered some complicated problems course studies.
take this for example:
under /home/data/stockdata
we have 1999,2000,2001,.......2004 these sub-dirs
and, each sub-dir has its mothly(for Jan~Dec) transaction records,
i.e. they are all named "foo.txt", like this:
Date ... (2 Replies)
Discussion started by: virii
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
I am a newbie to Unix . I am just trying to understand the difference between various filters for ps. Can someoen pelase explain me whta is the difference between using /usr/bin/ps -ef | grep <PID> or <Process name> and /usr/bin/ps -auxwww| grep <PID> or <Process Name>. (1 Reply)
Discussion started by: sillybirdie123
1 Replies
5. UNIX for Advanced & Expert Users
Hello..
i want a ppt on unix filters..
can anybody gv me d link 4 that?? (1 Reply)
Discussion started by: shweta_babbar
1 Replies
6. Shell Programming and Scripting
Hi,
I have input data.
9214919702; B5; 1;20070216;
9231590437; BY; 1;20070215;9;20091022;12;20091022;
9211765888; AZ; 1;20080802;1;20080802;14;20091027;
9231592590; BY; 1;20070215;9;20091026;9;20091026;
9252412219; MM; 1;20070217;
9214917135; MM; 1;20070215;
9214917056; B5; 1;20070215;... (8 Replies)
Discussion started by: suresh3566
8 Replies
7. Programming
I have a value X, a value DX and an odd integer N (say N=9) and want to create an array such that
let X = 10, DX = 2 and N = 9
DIST(1) = X - 4 * DX
DIST(2) = X - 3 * DX
DIST(3) = X - 2 * DX
DIST(4) = X - DX
DIST(5) = X
DIST(6) = X + DX
DIST(7) = X + 2 * DX
DIST(8) = X + 3 * DX
DIST(9)... (2 Replies)
Discussion started by: kristinu
2 Replies
8. Programming
Hello,
I have an excel sheet with 11 tabs. I need to take data from the first tab and write the output to the second tab. The first tab looks like this, starting from Row 3
The filters that needs to be created are
1) keep anything greater than 'POS' 5 and less than 160 AND
2)... (2 Replies)
Discussion started by: nans
2 Replies
LEARN ABOUT CENTOS
make_sockdfc
MAKE_SOCKDFC(8) System Manager's Manual MAKE_SOCKDFC(8)
NAME
make_sockdfc - Generates frozen configuratyion file for SOCKS server
SYNOPSIS
make_sockdfc [infile [outfile] ]
DESCRIPTION
make_sockdfc reads in a plain-text configuration file for the SOCKS server and produces a frozen configuration file as the output.
Both arguments are optional. The default for infile is /etc/sockd.conf; the default for outfile is /etc/sockd.fc. You may specify infile
while omitting outfile, but you cannot specify outfile without also speficying infile.
The contents of the frozen configuration file is essentially the memory image of the parsed input file. Using the frozen configuration file
can reduce the start-up delay of the SOCKS server program since it no longer has to parse the file contents.
When the SOCKS server starts, it always looks for the frozen configuration file /etc/sockd.fc first. If that file is not found, it then
tries to use the plain-text configuration file /etc/sockd.conf. If you use frozen configuration, you must remember to run make_sockdfc
every time after you modify the plain-text file or the SOCKS server will continue to use the frozen file of a previous configuration.
To find out the contents of a frozen configuration file, use dump_sockdfc.
FILES
/etc/sockd.fc, /etc/sockd.conf
SEE ALSO
dump_sockdfc(8), sockd.conf(5), sockd.fc(5)
AUTHOR
Ying-Da Lee, yingda@best.com or yingda@esd.sgi.com
May 6, 1996 MAKE_SOCKDFC(8)