Displaying 20 results from an estimated 8000 matches similar to: "readLines fails to read entire file"
2007 Aug 03
3
Sourcing commands but delaying their execution
Colleagues:
I have encountered the following situation:
SERIES OF COMMANDS
source("File1")
MORE COMMANDS
source("File2")
Optimally, I would like File1 and File2 to be merged into a single
file (FileMerged). However, if I wrote the following:
SERIES OF COMMANDS
source("FileMerged")
MORE COMMANDS
I encounter an error: the File2 portion of FileMerged
2015 Sep 03
1
Doubts on incremental backup and command repetition
Hi,
I am trying to use rsync for incremental backup and I am facing some issues. I would like to ask your help to understand what is going on and have the proper command line.
1) my goal is
I the following folders:
./dest:
file3.txt
./orig:
file1.txt file10.txt file2.txt file20.txt
And I would like to have as incremental backup
./dest:
backup file1.txt file2.txt file3.txt
2008 Apr 23
3
[LLVMdev] Compile units in debugging intrinsics / globals
I have a question about the llvm debugging records, especially wrt compile
units.
In the non-LLVM sense, a compile unit is essentially everything contained
within a single .o file, and it is derived from one or more source and
header files. Included in a compile unit are functions and global data.
Dwarf records refer to compile units in the same way: a compile unit record
has children which
2010 Jan 29
2
[LLVMdev] Redefining function
Hi everybody.
I've just started learning about LLVM and didn't get too far studying the
core.
I couldn't find the solution to my problem (if it has one) in the mailing
list or the source code. The problem is: how can I redefine a function
that's been called already by some other function?
Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I think
it could be clang
2008 Apr 24
0
[LLVMdev] Compile units in debugging intrinsics / globals
Hi,
> Suppose I have the following source:
>
> file1:
> #include "file2"
> #include "file3"
> int fn1(void) ...
>
> file2:
> int a;
>
> file3:
> int fn2(void) ...
>
> then fn1, along with all the base types etc appear to be in compile unit
> "file1", the variable a appears to be in compile unit
2013 Jul 01
1
[PATCH v2] xfstests: btrfs/316: cross-subvolume sparse copy
This testscript creates reflinks to files on different subvolumes,
overwrites the original files and reflinks, and moves reflinked files
between subvolumes.
Originally submitted as testcase 302, changes are made based on comments
from Eric: http://oss.sgi.com/archives/xfs/2013-03/msg00231.html
Two new common/rc functions used in this script (_require_cp_reflink and
_verify_reflink) have been
2009 Nov 13
1
Utility function to rotate log files?
I am wondering if there is a CRAN package that includes a utility
function that will "rotate" file names, in the same sense that
operating systems sometimes rotate log files. Or maybe there's
something in base R.
That is, we have a set of file names, say file1, file2, file3, and
when the function is called, file3 is deleted, file2 is renamed
file3, file1 is renamed file2, and
2011 Jun 19
1
save and load in R
I have a list of txt files that I want to convert into .rdata R data
object.
filenames
1. "./file1.txt"
2. "./file2.txt"
3. "./file3.txt"
4. "./file4.txt"
5. "./file5.txt"
6. "./file6.txt"
7. "./file7.txt"
8. "./file8.txt"
9. "./file9.txt"
10. "./file10.txt"
I saved these files as
for ( i in
2010 Jan 30
0
[LLVMdev] Redefining function
Hi Conrado,
> I couldn't find the solution to my problem (if it has one) in the
> mailing list or the source code. The problem is: how can I redefine a
> function that's been called already by some other function?
why do you want to do this?
> Suppose I have 3 files, all compiled to bytecode through llvm-gcc (I
> think it could be clang instead).
>
> File1.c:
2013 Jan 08
2
rsync in conjunction with the --link-dest option does not output deleted files
Hi,
I want to use rsync to make daily backups using hard-links in this way:
rsync -av --delete --link-dest=../backup_old ./source/. ./backup_new
This works great, but the problem is, that rsync does not show correctly
what action it performs (-v option). It shows correctly all new and
changed files/folders, but it does not show files that were deleted.
This works only if I do not use the
2016 Jun 07
2
for loop example
Maybe this don't to be the best form to solve your problem, but worked,rs.
#!/bin/bash
#power by Diego Rodrigues
totalFileOne=$(wc -l file1 | cut -d" " -f1)
totalFileTwo=$(wc -l file2 | cut -d" " -f1)
count=0
if [ ! "${totalFileOne}" -eq "${totalFileTwo}" ];then
echo "The two files need of same number of lines"
exit 1
fi
for
2012 Aug 15
2
to remove columns and rows
Dear,
I am using R I'm trying to identify and remove columns and rows in a data
frame that are has elements equals. For example in dataframe below. The
columns 1, 2,3,4,5 ,6 and 10 (file1) has elements equal then should be
removed. How can I ask R to remove those columns with same elements in new
dataframe (file2) to result a matrix as follows:
file1
1 0 2 2 1 1 5 1 1 1
1 0
2016 Jun 09
1
for loop example
> From: Indunil Jayasooriya <indunil75 at gmail.com>
> > >
> > > [root at centos67 loop]# cat file1
> > > firstname1
> > > firstname2
> > >
> > > [root at centos67 loop]# cat file2
> > > lastname1
> > > lastname2
> > >
> > > I need a OUTPUT like this
> > >
> > >
> > >
2016 Jun 05
4
Deletion of destination files
Hi to all rsync users.
rsync's `--delete' option works fine in the following example: I'm sending all
the content of /home/rodolfo from machine1 to /home/rodolfo in machine2:
$ rsync --dry-run -vrtul --delete --exclude='/.*' . 192.168.0.2:/home/rodolfo
, and --delete works perfectly. Instead, in this other example:
$ rsync --dry-run -vrt --delete --modify-window=1 file1
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all,
Looking at the IO.readlines source in io.c, it looks to me like they
grab 8k chunks, split on the input record separator, and buffer accordingly.
Since it looks like ReadFileScatter() does some of that work
automatically (in page file sized chunks), I thought I''d give it a try.
Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
2007 Jun 29
2
\include-mechanism in Sweave?
Dear HelpeRs,
I'm very fond of Sweave and I use it as often as possible. It'a a pity
I can't use it for larger projects or can I?
For instance suppose I have three files file1.rnw, file2.rnw and
file3.rnw with Sweave code. Working on file2.rnw I whould like to
exclude file1.rnw and file3.rnw temporarily and joining all of them
later. This amounts to a mechanism similar to using
2012 Jan 17
2
How to loop on file names
Dear all,
I need to do the same procedure on several files. But I don't know how
to refer to the file name.
Here is an example of what I am trying to do.
List of files: file1(A,B,C, D1...Dn), file2(A,B,C,E1,...,En),
file3(A,B,C,F1,...,Fn)
Procedure I want to apply on each file:
dft <- melt(df,id=c('A','B','C'))
dft$X <- substr(dft$variable,1,3)
dft$Y <-
2013 Jul 02
6
[PATCH v3] xfstests: btrfs/316: cross-subvolume sparse copy
This testscript creates reflinks to files on different subvolumes, overwrites the original files and reflinks, and moves reflinked files between subvolumes.
Originally submitted as testcase 302, changes are made based on comments from Eric: http://oss.sgi.com/archives/xfs/2013-03/msg00231.html
Two new common/rc functions used in this script (_require_cp_reflink and _verify_reflink) have been
2002 Mar 20
2
transferring individual files question, pull vs. push
Can't seem to find the answer anywhere...
I'm currently using an rsync script on the source box to transfer some
individual files to the destination box...all works well. The script:
rsync -e ssh \
/var/qmail/control/file1 \
/var/qmail/control/file2 \
/var/qmail/control/file3 \
/var/qmail/control/file4 \
destination-box.xxxxx.com:/var/qmail/control
Now, instead of "pushing"
2013 Jan 17
4
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi All,
I am migrating a build system of an existing project from 'Object files' based executable generation to 'LLVM Bitcode' files based exe generation and applying OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let me know if this is the right procedure or is there any other easy way of doing it. I need to modify 'Makefile' accordingly. I