Hi,
I need some help in removing the header (first line) and the trailer (last line) in a give file...
The data file actually comes in EBCDIC format and I converted it into ASCII..
Now I need to strip off the first line and the last line..
I think we can use sed to do something like this:... (2 Replies)
Situation:
Our system currently executes a job (COBOL Program) that generates an interface file to be sent to one of our vendors. Because this system processes information for over 100,000 employees/retirees (and growing), we'd like to multi-thread the job into processing-groups in order to... (4 Replies)
Hi All,
In my file i need to remove header and trailer records which comes in 1st line and last line respectively. After that i need to replace '$\|' with '$#@'.
I am using sed command for this and its taking lot of time. Is there any other command which can be used to improve performance?
... (1 Reply)
Hi All,
PFB is a requirement. I am new to shell scripting. So plz help. It would be highly appreciated.
1. choose all the log files based on a particular date (files location is '/test/domain')--i.e,we should choose all the files that are modified on 29th November, neither 28th nor 30th
2.... (3 Replies)
Hi,
I want to add the below Header to all the files in sequence File1,File2,File3...etc
"ABC,<number of chracter in the file>"
e,g - If File1 is as below
pqrstuvdt
abcdefgh
then I want to add the above header into it ,So that File1 becomes as below
ABC,17
pqrstuvdt
abcdefgh
... (9 Replies)
Hi All,
I am trying write a simple command using AWK and SED to this but without any success.
Here is what I am using:
head -1 test1.txt>test2.txt|sed '1d;$d' test1.txt|awk '{print substr($0,0,(length($0)-2))}' >>test2.txt|tail -1 test1.txt>>test2.txt
Input:
Header
1234567
abcdefgh... (2 Replies)
Hi,
I need a script that validates a file header/detail/trailer. File layout is:
Header - Rec_Type|File_name|File_Date
Detail - Rec_Type|field1|field2|field3...
Trailder - Rec_Type|File_name|File_Date|Record_count
Sample Data:
HDR|customer_data.dat|20120709... (7 Replies)
Hi Experts
Need help...
I am looking for a Unix script to append pipe | at the end of all the rows (except header and trailer)in all the files placed under the directory /interfaces/Temp
e.g.
Header
row1
row2
row3
Trailer
The script should read all the files under... (3 Replies)
Discussion started by: phani333
3 Replies
LEARN ABOUT HPUX
uuto
uuto(1) General Commands Manual uuto(1)NAME
uuto, uupick - public UNIX system to UNIX system file copy
SYNOPSIS
[options] source-files destination
system]
DESCRIPTION
sends source-files to destination. uses the facility to send files (see uucp(1)), while allowing the local system to control the file
access. A source-file name is a path name on your machine. Destination has the form:
where system is taken from a list of system names that knows about (see in uucp(1) manual entry). user is the login name of someone on the
specified system.
recognizes the following options:
Copy the source file into the spool directory immediately,
and send the copy.
Send mail to the requester when the copy is complete.
The files (or sub-trees if directories are specified) are sent to PUBDIR on system, where PUBDIR is the UUCP public directory Specifically
the files are sent to
PUBDIR
The recipient is notified by electronic mail when the files arrive.
accepts or rejects the files transmitted to the recipient. Specifically, searches PUBDIR for files destined for the user. For each entry
(file or directory) found, the following message is printed on the standard output:
file-name] dirname]
then reads a line from the standard input to determine the disposition of the file:
<new-line> Go on to next entry.
Delete the entry.
Move the entry to named directory
dir (current directory is default). Note that, if the current working directory is desired for dir, do specify any
parameter with A construction such as is erroneous, and results in loss of data.
Same as except move all the files sent from system.
Print the contents of the file.
Stop.
EOT (control-D) Same as
Escape to the shell to execute
command.
Print a command summary.
invoked with the option searches only the PUBDIR for files sent from system.
WARNINGS
To send files that begin with a dot (such as the filename must contain a corresponding dot. For example: and are correct, whereas and are
incorrect.
FILES
PUBDIR public directory
SEE ALSO mail(1), uuclean(1M), uucp(1), uustat(1), uux(1).
Tim O'Reilly and Grace Todino,
O'Reilly & Associates, Inc. USA.
Grace Todino and Dale Dougherty,
O'Reilly & Associates, Inc. USA.
STANDARDS CONFORMANCE uuto(1)