03-01-2018
not working,
locate/find.. it will locate the files anywhere in the system, the file1,file2 could be in different directories..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have several files that are being generated every 20 minutes. Each file contains 2 columns. The 1st column is Text, 2nd column is Data.
I would like to generate one single file from all these files as follows:
One instance of 1st column Text, followed by 2nd column Data separated by... (5 Replies)
Discussion started by: subhap
5 Replies
2. Shell Programming and Scripting
Hi guys,
I'm rather new at using UNIX based systems, and when it comes to scripting etc I'm even newer.
I have two files which i need to compare.
file1: (some random ID's)
451245
451288
136588
784522
file2: (random ID's + e-mail assigned to ID)
123888 xc@xc.com
451245 ... (21 Replies)
Discussion started by: spirm8
21 Replies
3. UNIX for Dummies Questions & Answers
Dear Gurus,
I am very new to UNIX. I appreciate your help to manage my files.
I have 16 files with equal number of columns in it. Each file has 9 columns separated by space. I need to compare the values in the second column of first file and obtain the corresponding value in the 9th column... (12 Replies)
Discussion started by: Unilearn
12 Replies
4. Shell Programming and Scripting
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Discussion started by: CAch
14 Replies
5. Shell Programming and Scripting
Hi,
I need to find the difference between 2 files in unix and write the result in the new file
File1:
A
B
File2:
X 123 hajkd
Y 345 adjfka
A 123 djafjhd
B 678 dsndjks
Output file:
X 123 hajkd
Y 345 adjfka
Thanks. (6 Replies)
Discussion started by: nani1984
6 Replies
6. Shell Programming and Scripting
Dear All,
I have many files formatted like this:
file1.txt:
1/2-SBSRNA4 18
A1BG 3
A1BG-AS1 6
A1CF 0
A2LD1 1
A2M 1160
file2.txt
1/2-SBSRNA4 53
A1BG 1
A1BG-AS1 7
A1CF 0
A2LD1 3
A2M 2780 (5 Replies)
Discussion started by: paolo.kunder
5 Replies
7. Shell Programming and Scripting
Example:
I have files in below format
file 1:
zxc,133,joe@example.com
cst,222,xyz@example1.com
File 2 Contains:
hxd
hcd
jws
zxc
cst
File 1 has 50000 lines and file 2 has around 30000 lines :
Expected Output has to be :
hxd
hcd
jws (5 Replies)
Discussion started by: TestPractice
5 Replies
8. UNIX for Beginners Questions & Answers
Dear UNIX experts,
I'm a command line novice working on a Macintosh computer (Bash shell) and have neither found advice that is pertinent to my problem on the internet nor in this forum.
I have hundreds of .csv files in a directory. Now I would like to copy the subset of files that contains... (8 Replies)
Discussion started by: rcsapo
8 Replies
9. UNIX for Beginners Questions & Answers
I have data of an excel files as given below,
file1
org1_1 1 1 2.5 100
org1_2 1 2 5.5 98
org1_3 1 3 7.2 88
file2
org2_1 1 1 2.5 100
org2_2 1 2 5.5 56
org2_3 1 3 7.2 70
I have multiple excel files as above shown.
I have to copy column 1, column 4 and paste into a new excel file as... (26 Replies)
Discussion started by: dineshkumarsrk
26 Replies
10. UNIX for Beginners Questions & Answers
I have number of csv files (like tmo_2019*). In these files some files have 5th column value as V. I want to copy those files having 5th column value as V to specific directory /test/V_files/.
I tried to extract file names by below but not able to complete command for copy.
find -type f -iname... (4 Replies)
Discussion started by: Bops
4 Replies
efi_cp(1M) efi_cp(1M)
NAME
efi_cp - copy to or from EFI file
SYNOPSIS
devicefile] file1 file2
devicefile] file1 [file2]... dest-directory
devicefile] file_or_dir1 [file_or_dir2]... dest-directory
DESCRIPTION
copies files between HP-UX and EFI file systems.
The EFI file system is based on the FAT file system and used by the Itanium-based system BIOS to locate an HP-UX bootloader. See efi(4).
Without the option, copies from an HP-UX file system to the EFI volume specified by devicefile; in this case, the destination should be
relative to the root of the EFI volume specified by devicefile. Use the option to copy from an EFI file system to an HP-UX file system;
with the option, only a single regular file may be copied at a time.
With two arguments:
o If file2 does not exist, creates it and copies the contents of file1 into file2.
o If file2 exists and is a regular file, deletes the the contents of file2 and copies the contents of file1 into file2.
o If file2 exists and is a directory, creates a copy of file1 in that directory.
With more than two arguments, the final argument must be an existing directory. If any of the other arguments is a directory, you must use
the option, which specifies that the source directory and the subtree rooted there are to be copied to the destination directory.
Options
Options can be used singly or combined in any order before the file names. The space between option and argument is optional.
devicefile is the device special file of the EFI file system to be copied. Without the option, uses the device file specified in the
environment variable if it is defined. The option overrides the environment variable.
Recursively copy the subtree rooted at each source directory to
the destination directory.
Copy file1 from an EFI volume to file2 in HP-UX file system. file1 should be relative to the root of the EFI volume specified by
devicefile, not to an HP-UX file system. With the option, only a single regular file may be copied at a time.
RETURN VALUE
returns exit code 0 if the copy is successful. Otherwise it prints a diagnostic message and returns nonzero.
0 Successful completion.
>0 Error condition occurred.
EXAMPLES
All the following examples copy to or from the EFI file system on device
Copy into directory in the EFI file system on the specified device:
Copy all files in current directory into directory in the EFI file system on the specified device
Copy into directory in the EFI file system on the specified device and rename it
Copy into the EFI boot directory of the EFI file system on the specified device:
Copy into of the EFI file system on the device specified in the environment variable and rename it to
Copy from the EFI file system on the specified device into the current HP-UX directory:
Using a persistent device special file (dsf) copy from the EFI file system on the specified device into the current HP-UX directory (see
intro(7)):
AUTHOR
was developed by HP.
SEE ALSO
efi_fsinit(1M), efi_ls(1M), efi_mkdir(1M), efi_rm(1M), efi_rmdir(1M), efi(4), intro(7).
Itanium(R)-based Systems Only efi_cp(1M)