05-12-2015
Works great.... thank you
.
9 More Discussions You Might Find Interesting
1. Solaris
Hi
Let say a flat file contains 1000 lines. The cursor is at the 530 line number.
Now I like to delete all the line at one ahot. how it can be done? (2 Replies)
Discussion started by: surjyap
2 Replies
2. Shell Programming and Scripting
Hello guys, thank God that I found this forum.
I hope that someone can help me because I don't have any idea on how to start it. I know that for some of you this is a very simple task but I'm not as advance on shell scripting like many people out there.
I got this file with a permanent... (10 Replies)
Discussion started by: Shark Tek
10 Replies
3. Shell Programming and Scripting
So, this issue is driving me nuts! I was hoping to get a lending hand here...
I have 2 files:
file1.txt contains:
this is example1
this is example2
this is example3
this is example4
this is example5
file2.txt contains:
example3
example5
Basically, I need a script or command to... (4 Replies)
Discussion started by: bashshadow1979
4 Replies
4. Shell Programming and Scripting
Hi,
I have a file nexus-1234 in a directory. I want to generate a random number and replace the 1234 with it and rename the file.
So nexus-1234 becomes nexus-2863 after running the script.
Any help is appreciated. Thanks in advance. (2 Replies)
Discussion started by: scorpioraghu
2 Replies
5. Shell Programming and Scripting
Hi
I have 2 files
1.del
----
1,2,3,4,5
1,2,3,4,4
1,1,1,1,2
2.del
----
1,2,3,4,5
1,
1,2,3,4,4
1,1,1,1,2
I need to compare the above two files in unix, as in the output should only tell the difference in contents as I should get only the line
1 ( from 2.del) , rest all lines are... (4 Replies)
Discussion started by: Ethen561
4 Replies
6. Shell Programming and Scripting
Good day all.
Using basic UNIX/Linux tools, how would you delete a line based on a character found in column 1?
For example, if the CITY name contains an 'a' or 'A', delete the line:
New York City; New York
Los Angeles; California
Chicago; Illinois
Houston; Texas
Philadelphia;... (3 Replies)
Discussion started by: BRH
3 Replies
7. Shell Programming and Scripting
Hello All,
Can you help me in writing a script for reading the specific position data in a file and if that data found in that file that particular file should be renamed.
Ex: Folder : C:\\test
and Filename : CLSACK_112214.txt,CLSACK_112314.txt,CLSACK_112414.txt
Contents in the file would... (3 Replies)
Discussion started by: nanduedi
3 Replies
8. Shell Programming and Scripting
hello Friend,
In hostgroup file, i have define lots of hostgroups. I need to remove few of them without manually editing file. Need script or syntax.
I want to search particular on hostgroup_members and delete hostgoup defination of it.
for example.
define hostgroup{
hostgroup_name... (8 Replies)
Discussion started by: ghpradeep
8 Replies
9. UNIX for Beginners Questions & Answers
In the below there are two generic .vcf files (genome.S1.vcf and genome.S2.vcf) in a directory. There wont always be two genaric files but I am trying to use bash to rename each of these generic files with specfic text (unique identifier) within in each .vcf. The text will always be different, but... (11 Replies)
Discussion started by: cmccabe
11 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)