07-02-2002
Hos does this work..the double backslash. I've tried numerous combinations in bash, ksh and sh. But still the only way was as i suggested above. i couldn't get it working with the \\.
Can you post the rest...i.e so I can see how the quotes etc should work around the variable in the sed text.
i.e.
FILENAME=input_file
NEWFILENAME=output_file
sed '$a\
PR_DbConfigEnd '"${FILENAME}"' ' $FILENAME > $NEWFILENAME
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how would you insert text into a existing file using aguments
first arguments being the line of text and the second argument being file name (1 Reply)
Discussion started by: jimbob
1 Replies
2. 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
3. Shell Programming and Scripting
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
Discussion started by: iamgeethuj
4 Replies
4. Shell Programming and Scripting
say I want to insert "this is a test" as the first line into file A, besides
echo "this is a test" > /tmp/tmpfile
cat /tmp/tmpfile fileA >> /tmp/result,
is there any simple way I can do it? thanks (7 Replies)
Discussion started by: fedora
7 Replies
5. Shell Programming and Scripting
Hello,
I'm new in Shell scripting but i should write a script, which inserts the license header out of a txt-File into the files in our Projekt. For the Java classes it runs without Problems but for XML files not. At xml-files i have to put the license Header after the xml-Header (?xml... (1 Reply)
Discussion started by: PhoenixONE
1 Replies
6. Shell Programming and Scripting
I can't seem to get sed to allow me to insert text in the first line of an empty file. I have a file.txt that is a 0 byte file. I want sed to insert " fooBar" onto the first line. I've tried a few options and nothing seems to work. They work just fine if there's text in the file tho. Help? (4 Replies)
Discussion started by: DC Slick
4 Replies
7. Shell Programming and Scripting
sed '1r file.txt' <source.txt >desti.txt
This example will insert 'file.txt' between line 1 and 2 of source.txt.
sed '0r file.txt' <source.txt >desti.txt
gives an error message.
Does anyone know how 'sed' can insert 'file.txt' before the first line of source.txt? (18 Replies)
Discussion started by: psve
18 Replies
8. UNIX for Advanced & Expert Users
How can i append a EBCDIC string of 100 bytes to 0th position of a binary file in UNIX. (4 Replies)
Discussion started by: param_it
4 Replies
9. Shell Programming and Scripting
Hi I was wondering if anyone new of a solution to this problem? I need to copy a time stamp that is on a line of .text in a text file into multiple positions on the same line.
I need to insert the time stamp on the same line between every occurance of the text ".pdf_.html" right after the... (9 Replies)
Discussion started by: Paul Walker
9 Replies
10. Shell Programming and Scripting
I'm trying to take mrt output and put it at the top of a file along with the date and time. I was able to do it at the bottom of the file with the following
printf "********** $(date) **********\n\n" >> $OUTPUT_PATH/$HOSTNAME
mtr -r -w -c 10 $HOSTADDRESS >> $OUTPUT_PATH/$HOSTNAME
printf... (2 Replies)
Discussion started by: kramer65
2 Replies
LEARN ABOUT DEBIAN
gnunet-unindex
GNUNET-UNINDEX(1) General Commands Manual GNUNET-UNINDEX(1)
NAME
gnunet-unindex - a command line interface for deleting indexed files from GNUnet
SYNOPSIS
gnunet-unindex [OPTIONS] FILENAME
DESCRIPTION
gnunet-unindex is used for deleting indexed files from GNUnet.
-c FILENAME, --config=FILENAME
use config file (defaults: ~/.gnunet/gnunet.conf)
-h, --help
print help page
-L LOGLEVEL, --loglevel=LOGLEVEL
Change the loglevel. Possible values for LOGLEVEL are NOTHING, ERROR, WARNING, INFO and DEBUG.
-v, --version
print the version number
-V, --verbose
be verbose
NOTES
You can only unindex files that you indexed and that you still have available locally in full. You should use gnunet-unindex on files that
you indexed (not inserted) and that you are going to delete or move locally.
FILES
~/.gnunet/gnunet.conf
GNUnet configuration file
REPORTING BUGS
Report bugs to <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet-developers@gnu.org>
SEE ALSO
gnunet-fs-gtk(1), gnunet-publish(1), gnunet-search(1), gnunet-download(1), gnunet.conf(5)
GNUnet 6 Sep 2009 GNUNET-UNINDEX(1)