12-19-2011
Quote:
Originally Posted by
vel4ever
i am saving the document in a remote directory, the file which i have created using the above script is not saved as a text document. when i checked its property its format just says TXT,so i cant able to open it up. Hope this clears.
Of course it's an ASCII text document; what else could it be? Some remote hosts are more picky about file extensions than UNIX though. Be sure to give it the extension you want.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i have a file which is very large . it contains lines in the format below:
seed url, html url
....
...
seed url, html url
i have sort it already.
2010ÄÏ·ÇÊÀ½ç±*_¾º¼¼·ç±©_ÐÂÀËÍø ÕżªÁúרÀ¸£ºÊÀ½ç±*24ÄêµÄ»ØÒä ÆÚÅÎÑÇÖÞδÀ´ÍŽá_2010ÄÏ·ÇÊÀ½ç±*_¾º¼¼·ç±©_ÐÂÀËÍø
2010ÄÏ·ÇÊÀ½ç±*_¾º¼¼·ç±©_ÐÂÀËÍø ¹úÃ×Óë±´ÄáÌØ˹´ï³ÉÐ*Òé... (6 Replies)
Discussion started by: rainboisterous
6 Replies
2. Shell Programming and Scripting
I have sql file containing lot of queries on different database table. I have to filter specific table queries.
Let say i need all queries of test1,test2,test3 along with four lines above it and sql queries can be multi lines or in single line.
Input file contains.
set INSERT_ID=1;
set... (1 Reply)
Discussion started by: mirfan
1 Replies
3. Shell Programming and Scripting
hi ..
i have a problem how to search file with date and version number(ms_2.0_dd/mm/yy_24)in folder.Here 24 is version number and compare the this file to other file which is in another folder and if does not match then copy this file to respective folder.Also copy different files in different... (1 Reply)
Discussion started by: shubhig15
1 Replies
4. Shell Programming and Scripting
hi,
I need some help in writing shell script in a bourne shell.I am trying to rename the file..
eg.
find /root/data -type f -name "text*) | while read FILES
do
newfile=${FILES/type_2.0_20101208_34.xml / tmp.xml}
mv "$FILES" "$newfile"
done
above written script is working...If the... (7 Replies)
Discussion started by: shubhig15
7 Replies
5. UNIX for Dummies Questions & Answers
Hello, I have a comma seperated data sheet with multiple fields of biological data. One column contains the ID name of the sample, where there could be more than one sample separated by a comma. I would like a script that reads this field, and for each sample ID, copies the entire line and writes... (18 Replies)
Discussion started by: torchij
18 Replies
6. Shell Programming and Scripting
I have an xml file which has following code :
<abc-ref>
<abc-name>abc.efg.hij.klm</abc-name>
</abc-ref>
I want to comment this whole section out and I have written the following script : (where "hij" is unique string in the file)
TEMPFILE=replaceYY.tmp
file=hello.xml
sed -n... (6 Replies)
Discussion started by: Dish
6 Replies
7. Shell Programming and Scripting
Hi Guys,
I need to write a simple shell script which will generate a .csv file/report by calling .sql file inside a shell script.
Can somebody help me on this.
Thanks in advance!
Regards,
LK (7 Replies)
Discussion started by: lakshmanraok117
7 Replies
8. Shell Programming and Scripting
Hi,
I am running my pipeline and capturing all stout from multiple programs to a .txt file. I want to go into that .txt file and search for specific lines, and finally print those lines in a second .txt file.
I can do this using grep, awk, or sed for each line, but have not been able to get... (2 Replies)
Discussion started by: hmortens
2 Replies
9. Shell Programming and Scripting
Hi Everyone,
I want your help to write a script which will take text file as input and on the basis of delimiter ":"script will create excel sheet.
Example input:
IpAdress:InstanceName:Port:ServerName
10.255.255.1:abc:2232:xyz_abc
Output should be an excel sheet like below:
Column... (8 Replies)
Discussion started by: akabhinav18
8 Replies
10. Shell Programming and Scripting
I want to count the number of lines, I need this result be a number, and sum the last numeric column, I had done to make this one at time, but I need to make this for a crontab, so, it has to be an script, here is my lines:
It counts the number of lines:
egrep -i String file_name_201611* |... (5 Replies)
Discussion started by: Elly
5 Replies
LEARN ABOUT DEBIAN
odfbuild
ODFBUILD(1p) User Contributed Perl Documentation ODFBUILD(1p)
NAME
odfbuild - OpenDocument file creation utility
SYNOPSIS
odfbuild filename.odt
odfbuild filename.odt --title "My Document" --subject "Test"
odfbuild filename.ods --class spreadsheet --source "data.csv" --tablesize "8x16"
cat data.txt | odfbuild filename.odt -
OPTIONS
--class Document class (text, spreadsheet, drawing, presentation)
Default: text
--opendocument (no value). If this option is on, the document will be in
OpenDocument format. Without this option, the format will
be selected according to the general configuration of the
OpenOffice::OODoc installation.
--creator The author of the document. Default: the current user's
login name.
--date Creation date. Default is current local time.
If provided, must be in ISO-8601 format
(YYYY-MM-DDTHH:MM:SS)
--description The description (abstract) of the document. Default: none.
--force (no value). If this option is on, any existing file with
the same path as the target file will be replaced. Without
this option, the program will fail if the target exists.
--generator Software signature to be stored in the file (not visible
for the end user).
Default: "Genicorp OpenOffice::OODoc <version>"
--keywords A list of comma-separated keywords. Default: none.
--source A text file, to be used as the content of the document.
If the document class is 'text', each line is loaded as a new
paragraph with the standard style. If the document class is
'spreadsheet', the file is processed as CSV data and loaded
in one sheet. If the document class is neither 'text' nor
'spreadsheet', the file is not processed.
If source = '-', or if a '-' argument is provided, the data
file is read through the standard input.
--subject The subject of the document. Default: none.
--tablename The name of the sheet to be created if the document class is
'spreadsheet' and if a data file is provided. Default: the name
of the data file, or "Unnamed Sheet" if the data is read from
the standard input.
--tablesize The size of the sheet to be created if the document class is
'spreadsheet' and if a data file is provided, in 'HxW' format
where H is the number of lines and W the number of columns.
Default: '16x8'
--title The title of the document. Default: "Untitled".
--readable_XML (no value). For debugging only. If this option is on, the XML
content of the target file is indented, in order to be later
edited.
perl v5.14.2 2008-05-07 ODFBUILD(1p)