I have 2 Binary Files FileA and FileC
Its is such that FileC = FileA + FileB using the cat utility
How do I subtract FileA from FileC to get FileB ?
PS: I am using Ubuntu Oneiric
I'm wondering how to solve the following puppet problem: I want to create several files based on an array of strings. The complication is that I want to create multiple directories with the files:
dir1/
fileA
fileB
dir2/
fileA
fileB
fileC
The problem is that the file resource titles must be unique.
I have two files like this:
fileA.net
Code:
A
B
C
fileA.dat
Code:
1
2
3
and I want the output
output_expected
Code:
A 1
B 2
C 3
I know that the easier way is to do a paste fileA.net fileA.dat, but the problem is that I have 10,000 couple of files (fileB.net with fileB.dat; fileC.net with fileC.dat ....) and it is not feasible by hand.
So I tried to insert the next script into a
I have 2 Binary Files FileA and FileC
Its is such that FileC = FileA + FileB using the cat utility
How do I subtract FileA from FileC to get FileB ?
I have two files
FILEA
Code:
a/b/c/d
e/f/g/h
i/j/k/l
m/n/o/p
FILEB
Code:
i/j/k/l
i want that if lines of FILEB matches lines of FILEA then matching lines in FILEA to be appended by word "MATCH"
NEW FILEA
Code:
a/b/c/d
e/f/g/h
i/j/k/l "MATCH"
m/n/o/p
I have tried following script .but not getting desired result.Please Help
Code:
for i in `cat FILEB`
do
I can't figure out how to write an .htaccess file which blocks all access to a directory except for reading html files, which sould be allowed and php-files which require athentication. Denying all access and allowing html works fine but asking for a password for php-files doesn't.
I want to encode linux file name(full path), is there some method?
examle:
input: (the dir structure like this: )
/root/
/root/fileA.txt
/root/dir/
/root/dir/fileB.txt
after encoding:
(just like this, human-readable is not necessary)
%root%
%root%fileA.txt
%root%dir%
%root%dir%fileB.txt
and using those new name as the new file name that I can put those files into one dir.
after like this:
I saw a question like this on here, but the answer didn't work for me. I'm trying to set up tab completion and I want it that if I have two files fileA and fileB and I type fil<tab> it first replaces the text with file and then after pressing tab again, it should bring up the menu and highlight the first option, fileA.
Following is the requirement
In FileA I have the content as follows.
Code:
1,2,3
111,222,333
1000,2000,3000
In FileB I have the content as follows.
Code:
4,5,6
444,555,666
4000,5000,6000
I need to read FileA and FileB parallely and create the FileC as follows.
Code:
1,2,3,4,5,6
111,222,333,444,555,666
1000,2000,3000,4000,5000,6000
Can any help me in writing the Shell script to a