10-19-2009
sory ,
Hi all,
This is my first post and I asked if I could but it did not address this problem would bother anyone's head.
namely:
I have a 'file' in which they are embedded single and variable words in one line that is:
test1
tekttw
resst
.... itd.
My question is:
- As I read from this file and specific line of the output to another file? Is there a command that enables the easy way?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
I have this file with some user data.
example:
$cat myfile.txt
FName|LName|Gender|Company|Branch|Bday|Salary|Age
aaaa|bbbb|male|cccc|dddd|19900814|15000|20|
eeee|asdg|male|gggg|ksgu|19911216|||
aara|bdbm|male|kkkk|acke|19931018||23|
asad|kfjg|male|kkkc|gkgg|19921213|14000|24|... (4 Replies)
Discussion started by: srimal
4 Replies
2. Shell Programming and Scripting
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Discussion started by: cdn_humbucker
2 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies
5. Shell Programming and Scripting
Hi,
I have text file like the following:
Start
a
b
121
c
d
End
Start
a
31
e
f
End
Start
p
o
i
k (5 Replies)
Discussion started by: ysrini
5 Replies
6. Shell Programming and Scripting
I have 2 TXT files with with 8 columns in them(tab separated). First file has 2000 entries whereas 2nd file has 300 entries.
The first file has ALL the lines of second file. Now I need to remove those 300 lines (which are in both files) from first file so that first file's line count become... (2 Replies)
Discussion started by: prvnrk
2 Replies
7. Shell Programming and Scripting
I dont even have a sample script cause I dont know where to start from. My data lookes like this
> sat#16 #data: 15 site:UNZA baseline: 205.9151
0.008 -165.2465 35.8109 40.6685 21.9148 121.1446 26.4629 -18.4976 33.8722
0.017 -165.2243 48.2201 40.6908 ... (8 Replies)
Discussion started by: malandisa
8 Replies
8. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
9. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
10. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT ULTRIX
lprsetup
lprsetup(8) System Manager's Manual lprsetup(8)
Name
lprsetup - printer spooler set up program
Syntax
/etc/lprsetup
Description
The command provides an interactive easy-to-use facility for administrating the line printers on your system. The program contains on-line
help and default answers to questions about adding, deleting, or changing the characteristics of any of the line printers on your system.
Whenever a question is asked, the default selection is given in ] . You can press Return in response to the question to accept the
default, or enter an alternate value for the given parameter.
The program knows about all of the possible symbols in the file. See for a current list. After you have entered a printer specification,
and have verified that it is correct, then creates the spooling directory, links the output filter, and creates an entry for the new
printer.
If the printer is connected to your system, you must specify the printer device name which is in the lp printcap entry.
If lp is set to nn you are prompted to choose between or If your printer is connected to a port on your system, choose the default setting,
If you choose you are prompted for the baud rate, br. The default is the recommended baud rate for the printer.
If you want to set up your printer to a LAT line, choose the option. At this point, proceeds only if you have chosen a valid LAT device
for lp. It assumes that the LAT device has been configured for host initiated connections using If it has not, you must do this before the
queue works. For information about how to set up a LAT line, see Chapter 3 of the Guide to Ethernet Communications Servers.
If lp is set to another device, for example the program assumes that you are setting up a printer with a parallel port, for example, It
does not prompt you for device type information, and serial port specific entries are not put into the entry.
See Also
printcap(5), lpc(8), MAKEDEV(8)
Guide to Ethernet Communications Servers
Guide to System Environment Setup
lprsetup(8)