Dears,
I have written a code to fetch files from server A, move it onto server B compress it and save it on server C and delete the files from server A and B.
But now my concern is to check the size and filename before deleting from server A and B..
I searched a lot considering this theme,but still cant make my code working.
I have two tab separated files, I want to do the following thing:
File 1:
Code:
xx1 y yy
xx2 y yy
xx3 y yy
xx4 y yy
File 2:
Code:
xx1 z1
xx2 z2
xx3 z3
xx4 z4
xx5 z5
So I want to merge them ,according to the first column and receive:
File 3:
Code:
xx1 y yy z1
xx2 y yy z2
xx3 y yy z3
xx4 y yy z4
Dears does anybody know how to check the file size on server A and server B before and after scp using KSH. Script should be on server A.
I will be using it for the below mentioned scenario:
I have written a code to fetch files from server A, move it onto server B compress it and save it on server C and delete the files from server A and B.
I have four files that look like this:
file_1:
Code:
a b c
d e f
file_2:
Code:
g h i
j k l
file_3:
Code:
m n o
p q r
file_4:
Code:
s t u
v w x
I would like to write the sum of the 3rd column in each line of every file such that my new output files has 4 columns (4th column similar for all files) as follows:
file_1:
Code:
a b c c+i+o+u
d e f f+l+r+x
file_2:
Code:
I have a code in c++ running on linux server. In the code, I am using function unlink(filename) to delete a file. Temporary files getting generated by the code itself are getting deleted successfully. But the files that I am putting manually, my code is unable to delete them. What could be the reason?
HI all,
could please help me in this code. I have 560 files containing the same columns but different rows. i want to concatenate all these files in one big file. i want to keep the header of the first file then add the dat from other files horizontally.
the name of my files contains 2 variables : chunk number and chromosome number.
I am stuck with a problem.
I have some 100 files with extension .txt.
The files look like this:
Code:
0
3
0
0
4
All files have variable number of characters and some files are completely EMPTY.
I want to make columns of length 10 by putting zeros (0) after the numbers end and also 10 zeros in the completely empty files.
The output should look like:
Code:
0
3
0
0
I need some help with the logic and syntax for a shell script (ksh) that will search a directory and look for similar files and save only the 5 versions. The version number is in the file name.
However, the files are of varying name lengths and may have 1 or many files, with no limit to the number of files.
I have a wierd question and i am trying to backtrace to the root cause.
The scenario is,
I have a bunch of c, cpp & Pro C code scattered in multiple folders [huge # of files]. Dozens of make files. We regularly run the makefiles to create the latest executables when we change something in code/config/libs.
The problem is:
My SQL User id and passwords are expiring at regular intervals.