07-24-2009
cp "$(ls -1rt /wlblive/home/whiops/ops/RTFs/*.rtf | head -20)"
The ls options are 1 (ONE) not l to get a single column.
The quotes are to see it as one file even with a space in its name.
Good Luck
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
When I run following script
#!/bin/bash
cd ~/directory1
mv `ls -trF | grep -v / | tail -10 ` ~/directory2
works fine with filenames not having any space but runs into issues with filenames that have spaces tried with $file variable still doesnot work. Can someone help me (4 Replies)
Discussion started by: asakhare
4 Replies
2. Shell Programming and Scripting
I have a text file containing files in a directory structure i.e.
/project/hr/raw/jcpdatav/datav_aug03
/project/hr/raw/jcpdatav/comb8121sep02n
/project/hr/raw/jcpdatav/datav_feb04_ons
/project/hr/raw/jcpdatav/corpsick_jun06
/project/hr/raw/jcpdatav/jcpjoiners200507... (3 Replies)
Discussion started by: mr_crosby
3 Replies
3. Shell Programming and Scripting
Hello,
I have a Folder (myfile) which contain the following files:
P$12789865KR +N+01+OM+16102009165416.nu
P$M1-508962GD +N+01+ALP+14102009094417.nu
Is there a sed command(s) that will loop through this folder
and remove the spaces that exists in the filename?
Any help would be... (7 Replies)
Discussion started by: Fishn
7 Replies
4. Shell Programming and Scripting
Hello I canīt find an answer to my problem.
I am trying to tar some files with spaces
#!/bin/sh
files="/var/installer/server Config
/var/installer/client user
/var/installer/Svenskt Language
/var/installer/GUI user Plugin
/var/installer/Firefox Plugin"
tar -czvf /tmp/files.tar.gz... (14 Replies)
Discussion started by: Lusen
14 Replies
5. Shell Programming and Scripting
Hi,
I've a problem. Here is the code:
#!/bin/ksh
echo "enter a file name"
read a
cd /home/linux1/sam
if
then
echo "file exists"
cp $a $a_bkp
else
echo "file doesn't exist"
fi
when executed the o/p is:
enter a file name
contact
file exists
cp: missing destination file (4 Replies)
Discussion started by: sam_bd
4 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I've been tangoing with this one for a couple of days now and I'm still not making any progress.
Basically I'm trying to match three numbers in a string from a text file with matching numbers in a jpeg, and then copying the results to another folder.
Data looks like this:
Model:... (4 Replies)
Discussion started by: faceonline
4 Replies
7. Shell Programming and Scripting
Hi,
I have files with filenames as below.
SGM Daily Sales Email-en-us-05312012.xlwa
I want to rename it in .xls. I am writing a script to change this, as there can be multiple files in subfolders.
I have the following script.
#!/bin/ksh
for oldfile in $(find... (1 Reply)
Discussion started by: mac4rfree
1 Replies
8. Solaris
Hello
I am copying a tar from windows7 to Solaris with filezilla i could see, some characters in the name of the file get deleted.
I could see only substring of the filename
eg: original filename :abcdefghijklmnopqrstu.h
i can see like abcdefghijklm
solution to this problem is highly... (2 Replies)
Discussion started by: Revathi R
2 Replies
9. Shell Programming and Scripting
Hi,
I have a list of filenames in the format with Spaces in the filename.
As an example :
Sample File 1.txt
Sample File 2.txt
Sample File 3.txt.....I have about 100 files like this.
I am trying to create a block of code or use an available command to a) Create a file b) Put in some... (2 Replies)
Discussion started by: ban3rj33
2 Replies
10. Shell Programming and Scripting
Hi team,
Here's a requirement for me.
Here are the list of files i have in a unix directory.
W 2 A D_2014.csv
W 3 A D_2014.csv
W 4 A D_2014.csv
/home/kmani00-> uname -a
AIX sliyyvxx 1 6 00F613E54C00
/home/kmani00->
The file names has to be without spaces as follows.
W2AD_2014.csv... (1 Reply)
Discussion started by: kmanivan82
1 Replies
LEARN ABOUT DEBIAN
troff2rtf
TROFF2RTF(1) General Commands Manual TROFF2RTF(1)
NAME
troff2rtf - convert troff documents to Rich Text Format
SYNTAX
troff2rtf [ -mxx ] [ -S charset ] [ file ... ]
DESCRIPTION
troff2rtf processes documents written to be formatted with troff (or nroff, or any of the other *roff variants) and converts them to Rich
Text Format. RTF is a reasonably portable interchange standard; files in RTF format can be read by a variety of applications, e.g., Micro-
soft Word, WordPerfect (Macintosh version 2.0 and up), WriteNow.
The main use for troff2rtf is to make it easier to transport troff documents for use with microcomputers. First, convert your document to
RTF:
% troff2rtf [options] file > file.rtf
The available options are described below. The one you'll most likely use is -mxx to specify a macro package like -me or -ms. If the doc-
ument contains tables, the conversion can be done like this instead:
% tblcvt file | troff2rtf [options] > file.rtf
Then move the RTF file to your target machine and read it into your document processor.
Optional flags may be given to modify the operation of troff2rtf, as follows:
-mxx Specify macro package, usually -man, -me, -mm, or -ms.
-S charset
Specify the RTF character set. charset can be one of the following: ansi mac pc pca. The default is the Macintosh character set.
For documents that you intend to use under Windows, -S ansi is a better choice.
SEE ALSO
tblcvt(1), troffcvt(1)
WHO-TO-BLAME
Paul DuBois, dubois@primate.wisc.edu.
BUGS
Table output generated when troff2rtf is used in concert with tblcvt has been known to crash Word outright; caution may be in order. In
addition, you may need to read the resulting RTF document into a word processor and tweak column widths manually.
Word97 adds support for vertically merging table cells (using the clvmgf and clvmrg control words). troff2rtf supports vertical spans
using these controls, but earlier versions of Word don't yet understand them. Consequently, what you'll see for n-cell vertical spans is n
individual cells, with all the text in the top cell and n-1 empty cells below it.
TROFF2RTF(1)