06-23-2018
Inserting a blank line at the end of a .txt file?
Hi there,
I am having this problem:
a) I am uploading a txt file from windows (notepad) with some Gaussian 09 command lines;
b) Gaussian needs in certain command files, that those files have a blank line at the end of the file!
c) I open the command file with vi and no blank line at the of the file!
d) Gaussian gives an error due to that missing blank line!
How can I finish my command file with a blank line?
Thanks in advance! Best,
Luis
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am using the below script to enter the URL at the end of file:
echo "Enter the URL that should point to the particular microsite"
read url
sed "$a $url" redirects.virgin-atlantic.com.conf > temp
But am getting the below error:
./script.sh:... (7 Replies)
Discussion started by: Shazin
7 Replies
2. UNIX for Dummies Questions & Answers
How to add control characters at the end of each line in a file?
Can anyone help me with this?
Thanks,
Shobana (2 Replies)
Discussion started by: Shobana_s
2 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I can use the following command to insert a ' at the beginning of each line
sed "s/^/'/g" test.txt > test1.txt
However, I'm unable to use the following to insert a ' at the end of each line in this way
sed "s/$/'/g" test.txt > test1.txt
Any... (3 Replies)
Discussion started by: karthiknaidu
3 Replies
4. Shell Programming and Scripting
hi,
i m having a group of files starting with name 'Itemdelete<timestamp>' .
my requirment is to append a blank line at the end of files ,using unix in all the Itemdelete* files with a single unix command without using scripts.can any body put some light to this requiremnt.
regards
Angel (4 Replies)
Discussion started by: angel12345
4 Replies
5. UNIX for Dummies Questions & Answers
Alright, so I was looking around a bit on the forum before posting and still don't really understand so I figured I'd post my own question.
I am appending two files using
cat file_1.txt >> file_2.txt
The problem is that I need a blank line in between the two different text files and it does... (2 Replies)
Discussion started by: cgagnon
2 Replies
6. Shell Programming and Scripting
Dear Experts,
I have spent my full day looking for the solution..:wall:but could no resolved.
Here it goes:
I have a txt file say data.txt. The content is shown below:
**************
datav1
datav2
datav3
***********
I have shown the blank line knowingly. If I open this txt file using... (12 Replies)
Discussion started by: nrjrasaxena
12 Replies
7. Shell Programming and Scripting
HI
Am totally confused with sed and translate command command.. My problem is
I have a file like
# vi test.csv
ABC_IMUY
ERD0_FN
VEG_NON_DES_IYT
BUY4_FLOW
POI_SHD_URDF_IYUT_REDS_CYC
UYT_PMC4_WIND
EX_FRE_FRD_L2_REF_FLICT
JHY_SGT_DSE_L2
IYO_HYTR_FGT_L3_BGT_ICT... (5 Replies)
Discussion started by: Priya Amaresh
5 Replies
8. Shell Programming and Scripting
Hi,
i have a csv file which have headers and values of it like below :
headers --> CI Ref SerialNumber LastScanDate
values --> VMware-42,VMware-42,Tue, 20 May 2014 11:03:44 +0000
i want to have a above csv in below format :
headers --> CI Name CI Description CI Ref... (6 Replies)
Discussion started by: omkar.jadhav
6 Replies
9. UNIX for Dummies Questions & Answers
Hi All
Is there a way to export every line into new txt file where by the title of each txt output are same as the line ?
I have this txt files containing names:
Kandra Vanhooser
Rhona Menefee
Reynaldo Hutt
Houston Rafferty
Charmaine Lord
Albertine Poucher
Juana Maes
Mitch Lobel... (2 Replies)
Discussion started by: Nexeu
2 Replies
g3cat(1) mgetty+sendfax manual g3cat(1)
NAME
g3cat - concatenate multiple g3 documents
SYNOPSIS
g3cat [-l] [-a] g3-file1 ...
DESCRIPTION
g3cat concatenates g3 files. These can either be 'raw', that is, bitmaps packed according to the CCITT T.4 standard for one-dimensional
bitmap encoding, or 'digifax' files, created by GNU's GhostScript package with the digifax drivers. Its output is a concatenation of all
the input files, in raw G3 format, with two white lines in between.
If a - is given as input file, stdin is used.
If the input data is malformed, a warning is printed to stderr, and the output file will have a blank line at this place.
OPTIONS
-a byte-align the end-of-line codes (EOL) in the file. Every EOL will end at a byte boundary, that is, with a 01 byte.
-l separate files with a one-pixel wide black line.
-h <blank lines>
specifies the number of blank lines g3cat should prepend to each page. Default is 0.
-w <width>
specifies the desired page width in pixels per line. Default is 1728 PELs, and this is mandatory if you want to send the fax to a
standard fax machine. If one of the input files doesn't match this line width (for example because it was created by a broken G3
creator), a warning is printed, and the line width is transparently fixed.
Example
The following example will put a header line on a given g3 page, 'page1' and put the result into 'page2':
echo '$header' | pbmtext | pbm2g3 | g3cat - page1 >page2
FILES
--
BUGS
Hopefully none :-).
SEE ALSO
g32pbm(1), sendfax(8), faxspool(1)
AUTHORS
g3cat is Copyright (C) 1993 by Gert Doering, <gert@greenie.muc.de>
greenie 27 Oct 93 g3cat(1)