Thank you Don and RudiC for your help/advice. Appreciate your time.
I was able to run both the code suggested by RudiC using nawk and /usr/xpg4/bin/awk.
The split is working fine. But getting one small issue.The files are getting generated fine from 1 to 10. But after 10 the number starts appending to itself. Please see below:
…… and so on upto 10
After 10. The number starts appending to 10.
Would it be possible to get the 11th file as:
and so on....
Thanks again
Moderator's Comments:
Please use CODE tags (not ICODE tags) for multi-line displays.
Last edited by Don Cragun; 10-07-2015 at 01:14 AM..
Reason: correcting the typo
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)
How to sort a tab delimited file first on col1 and then on col2. Also I need to keep the header intact.
file.txt
val1 val2 val3 val4
a b c d
m n o p
e f g h
i j k l
... (3 Replies)
Hello,
I want to split a file based on an input list file that contains the lines each split should have + a corresponding file name.
#!/bin/sh
# sed -n 'start_line_#,end_line_#p' my_input_file > lines_extracted_output_file
while read a b c
do
sed -n '$a,$bp' myLarge.file > $c.split... (2 Replies)
I need to split the file based on pattern from position 34-37 while retaining the header and trailer records in each individual split file
Also is it possible to output the TOM and PAT records in the same output file ?
I need the output file names same as xyz_pattern_Datetimestamp.txt
... (23 Replies)
I have several las files with a header and each file start Version and text and before the data starts end up with ~Ascii, then the numbers starts:
-------------------------------------------------------------------------
Code:
~Version
.....text....
~Ascii
2 abc 230 1 name
1 abc ... (1 Reply)
I have several las files with a header and each file start Version and text and before the data starts end up with ~Ascii, then the numbers starts:
-------------------------------------------------------------------------
~Version
.....text....
~Ascii
2 abc 230 1 name
1 abc 400 1... (17 Replies)
I need to split a file based on headers found
Input file
file1 content:
ADD
john
mickey
DROP
matt
sam
output of file F1
john
mickey
output of file F2
matt
sam (5 Replies)
Hello all,
I have a csv with with different testcase values in column 5.
year,min,max,Instrument,Testcase
2016,201,1003,GEOTROPH-02116,TATA7980
2016,53,1011,GEOTROPH-01963,TATA7980
2016,3,1024,GEOTROPH-02067,TATA7980
2016,203,1027,GEOTROPH-02011,TATA7980... (16 Replies)
I have a string of pre defined ip address list which will always remain constant their order will never change like in below sample:
iplist=8.8.5.19,9.7.5.14,12.9.9.23,8.8.8.14,144.1.113
In the above example i m considering only 5 ips but there could be many more.
Now i have a file which... (15 Replies)
Discussion started by: mohtashims
15 Replies
LEARN ABOUT DEBIAN
htproxy
HTPROXY(1) User Commands HTPROXY(1)NAME
htproxy - record a HTTP session
SYNOPSIS
htproxy [OPTIONS]
DESCRIPTION
htproxy do record a HTTP session as a httest script
OPTIONS -v --version
Print version number and exit
-h --help
Display usage information (this message)
-p --port
Port
-d --dest
Destination file, default file is "file"
-u --url-filter
URL filter regex default is none (blacklist)
-l --log-level
Log level 0-4
-H --host-var
Variable name for host
-P --port-var
Variable name for port
-U --root-var
Web application root variable name
-A --host-header-var Variable name for host header value
-t --socket-tmo
Socket timeout [ms], default 30000 ms
-i --header-file
File with header text
-e --trailer-file
File with trailer text
-c --cookie-prefix
Cookie variable prefix, default is COOKIE_
-C --config
Configuration file
Example: htproxy -p 8888 -d init -H HOST -P PORT -u "(.*.png;.*$)|(.*.css;.*$)|(.*.ico;.*$)|(.*.js;.*$)"
AUTHOR
Written by Christian Liesch
COPYRIGHT
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
htproxy 2.2.6 June 2012 HTPROXY(1)