10-05-2006
Hi Glenn,
Thank you for your input. I cannot do the way you are showing me. My task is to input a line to an existing file without creating new or temporary file.
That is why I have used the >> symbol, but this inserts the line at the bottom. Do you know how to insert to the top without creating extra files?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
when directing some text into a file can you choose where it goes like the top of the file (which is text aswell) or the middle??
if so how - especially would like to know how to do so in vi (text editor)
If i were to enter an argument ($1) into a another argument ($2)
would it would be... (6 Replies)
Discussion started by: rprules
6 Replies
2. Shell Programming and Scripting
Can someone please help me with this SHELL script?
I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words, it must calculate n!=1x2x3x...xn. Note that 0!=1.
Here is a start but I have no clue how to... (3 Replies)
Discussion started by: I-1
3 Replies
3. Programming
Could anyone help me with an efficient(and easy) way to insert data in a file directly(with out using temp file).
example
open the file1.txt
11112222
333333
44444444
and insert something say " 99999 " somewhere inside the file
as
11112222
333 99999 333
44444444 (2 Replies)
Discussion started by: johnbach
2 Replies
4. Shell Programming and Scripting
i had the following type of data file vchrdump:
Vouchers For Date :05/01/2009 * ... (4 Replies)
Discussion started by: KANNI786
4 Replies
5. Shell Programming and Scripting
Hi,
I have this line:
ip=111.222.133.144,mac=00:16:3E:2A:08:3C,vifname=veth360','ip=10.2.3.4,vifname=veth360a'
^
|
-------
I want to insert this IP 144.133.222.111 between "144"... (4 Replies)
Discussion started by: iga3725
4 Replies
6. Shell Programming and Scripting
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
Discussion started by: sarbjit
1 Replies
7. Shell Programming and Scripting
Hello,
Is there any method thorugh which script can take argument if pass otherwise if argument doesn't pass then it takes the argument from the configuration file
i.e I am workiing on a script which will run through crontab and the script will
chekout the code ,zip and copy to the... (3 Replies)
Discussion started by: rohit22hamirpur
3 Replies
8. HP-UX
Hello Mates,
I have one txt file having commo seperated values. I have to insert string "FALSE" in 2nd field from the end. E.G
SE18 6RN,,,,5439070,1786840,,1000002148671600,123434
Out put should be:
SE18 6RN,,,,5439070,1786840,FALSE,1000002148671600,123434
Can some one help me... (0 Replies)
Discussion started by: krsnadasa
0 Replies
9. Shell Programming and Scripting
Hi Forum members,
I want to insert the filename at the top of file (i.e, first row only)
My file name is like asdf_432
And I want to insert this filename in first row as filename is asdf with serial no. 432
Thanks in advance. :) (4 Replies)
Discussion started by: CAch
4 Replies
10. Shell Programming and Scripting
Hi,
I have one file with one column and several hundred entries
File1:
NA1
NA2
NA3And now I need to run a command within a mapping aligner tool to insert these sample names into a sequence alignment file (SAM) such that they look like this
@RG ID:Library1 SM:NA1 PL:Illumina ... (7 Replies)
Discussion started by: nans
7 Replies
HLINS(1) General Commands Manual HLINS(1)
NAME
hlins - insert url's into html documents
SYNOPSIS
hlins [options] [infile]
DESCRIPTION
hlins is a program that inserts hypertext links into html documents, according to one or several data bases associating addresses (url's)
to names. hlins is designed for inserting links for persons: It knows about abbreviations of first and middle names and tolerated dropping
of the last part of a composite last name.
If no file argument is given then input is taken from stdin; when no output option (see below) is given then output goes to stdout.
For a complete description, see the documention in html format.
OPTIONS
hlins follows the usual GNU command line syntax, with long options starting with two dashes (`--').
-o, --output-file file
Write to file instead of standard output
-h, --help
Show a summary of options.
-v, --version
Show the version of the program.
-q, --quiet
Surpress diagnostic output.
-db, --data-bases files ...
Use files ... as data bases
-m, --modify files ...
Dont't act as filter but perform in-pace modifications of files.
-R, --recursive
Recursively descend into directories and act on all files with names ending on .html.
-td, --tmp-dir dir
Use directory dir to create temporary files.
--db-to-html
List the address data bases in HTML format to stdout.
ENVIRONMENT
TMPDIR default directory for creating temporay files.
VERSION
This manual pages describes version 0.39.
SEE ALSO
The full documentation with examples should be available in /usr/share/doc/hlins/.
See also the hlins home page http://www.lsv.ens-cachan.fr/~treinen/hlins/.
AUTHOR
Ralf Treinen <treinen@debian.org>.
July 25, 2000 HLINS(1)