Hi, I need to chope the header and footer record from an input file and make a new output file, please let me know how i can do it in unix.thanks. (4 Replies)
I am trying to get a total number of tapes w/out headers or footers in a ERV file and append it to the file. For some reason I cannot get it to work. Any ideas?
#!/bin/sh
dat=`date +"%b%d_%Y"`
+ date +%b%d_%Y
dat=Nov16_2006
tapemgr="/export/home/legato/tapemgr/rpts"... (1 Reply)
I have one large file, after every 200 line i have to split the file and the add header and footer to each small file?
It is possible to add different header and footer to each file? (1 Reply)
I have one large file, after every 200 line i have to split the file and the add header and footer to each small file?
It is possible to add different header and footer to each file? (7 Replies)
I am having report file with header and footer . The details in between header and footer are separated by a pipe charater. I want to sort the file by considering multiple columns in between header and footer.
pls help (4 Replies)
This is my file(Target.txt)
name|age|locaction
abc|23|del
xyz|24|mum
jkl|25|kol
The file should be like this
1|03252012
1|name|age|location
2|abc|23|del
2|xyz|24|mum
2|jkl|25|kol
2|kkk|26|hyd
3|4
Column 1 is row indicator
for row 1 and 2, column indicator is 1,for data rows... (1 Reply)
Hi Every one,
what is the coomand to remove header or footer from a file.
Please help me by providing command/syntax to remove header/footer from unix.
Thanks in advance for all your support. (5 Replies)
Hi There!
I am saving the file count of all files in a directory to an output file using:
wc -l * > FileCount.txt
I get:
114 G4SXORD
3 G4SXORH
0 G4SXORP
117 total
But this count includes header and footer. I want to subtract 2 from the count and get
... (7 Replies)
I have a EBCDIC multi layout file which has a header record which is 21 bytes, The Detail records are 2427 bytes long and the trailer record is 9 bytes long.
Is there a command to remove the header as well as trailer record and read only the detail records while at the same time not altering... (1 Reply)
Discussion started by: abhilashnair
1 Replies
LEARN ABOUT FREEBSD
iconv
ICONV(1) BSD General Commands Manual ICONV(1)NAME
iconv -- codeset conversion utility
SYNOPSIS
iconv [-cs] -f from_name -t to_name [file ...]
iconv -f from_name [-cs] [-t to_name] [file ...]
iconv -t to_name [-cs] [-f from_name] [file ...]
iconv -l
DESCRIPTION
The iconv utility converts the codeset of file (or from standard input if no file is specified) from codeset from_name to codeset to_name and
outputs the converted text on standard output.
The following options are available:
-c Prevent output of any invalid characters. By default, iconv outputs an ``invalid character'' specified by the to_name codeset when it
encounts a character which is valid in the from_name codeset but does not have a corresponding character in the to_name codeset.
-f Specifies the source codeset name as from_name.
-l Lists available codeset names. Note that not all combinations of from_name and to_name are valid.
-s Silent. By default, iconv outputs the number of ``invalid characters'' to standard error if they exist. This option prevents this be-
haviour.
-t Specifies the destination codeset name as to_name.
EXIT STATUS
The iconv utility exits 0 on success, and >0 if an error occurs.
SEE ALSO mkcsmapper(1), mkesdb(1), iconv(3)STANDARDS
iconv conform to IEEE Std 1003.1-2008 (``POSIX.1'').
HISTORY
iconv first appeared in NetBSD 2.0, and made its appearance in FreeBSD 9.0.
BSD October 22, 2009 BSD