Many versions of awk limit the length of a line to LINE_MAX bytes. The value of LINE_MAX on your system can be found using getconf LINE_MAX). But it looks like there is an off by one error that is causing your problem here. Try changing:
to:
i think i got what i need for
but i noticed 9 remains same
Input )
outpu )
Moderator's Comments:
Please use CODE tags. Trying to line up input and output is hard enough without the problems caused by variable width fonts used outside of CODE tags.
Last edited by Don Cragun; 01-16-2014 at 10:13 PM..
Reason: Add CODE tags again.
--------------------------------------------------------------------------------
Have to check in a file that the lines starting with 620 and 705
are ending at same posiotin.
82012345
62023232323
70523949558
62023255454
9999
In the above lines, i have to check the lines starting... (1 Reply)
Hi, guys. I have one question:
How can I search for a line with certain string in it and then insert a string into this line?
For example:
There is a file called shadow, the contents of it are below:
**************************
...
yuanz:VIRADxMsadfDF/Q:0:0:50:7:::... (9 Replies)
I have two files abc.dat and sant.dat (Big file 60k rows)
for every line's 1,4 of abc.dat need to seach if this is present on 28,4 of sant.dat every line.
if its present the output needs to go to bde.dat
Example:
contents abc.dat
aaaa
bbbb
cccc
dddd
contents sant.dat
this is... (4 Replies)
hello I'm doing a unix program and i'm using many file csv.in each csv file the colums are separated by ";" I would like to know the position of a pattern. For example for a line yyyy, bbbb, cccc; ddddd;eeee. I will like for example by finding the position of the pattern "cccc" and the response is... (6 Replies)
Hi,
I am trying to get an output like :
+----------------------------------+ ----------- +
+ some variable substitution + some text +
Is there a way I can specify in printf (in ksh) the particular position I want to print a character, and also repeat a character from... (1 Reply)
Hi,
I have some files that i want to concatene and put each of lines of this files on a specific position :
File1
AAAAAAA
BBBBBBB
CCCCCCC
File2
DDDDDDD
EEEEEEE
FFFFFFF
File3
GGGGGG
HHHHHH
IIIIII
New file (6 Replies)
Need command for position based replace:
I need a command to replace with 0 for characters in the positions 11 to 20 to all the lines starts with 6 in a file.
For example the file ABC.txt has:
abcdefghijklmnopqrstuvwxyz
6abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz... (4 Replies)
Hi,
I need to remove line breaks from a file, but only the ones at specific position.
Input file:
this is ok
this line is divided at posit
ion 30. The same as this one,
also position 30
the rest of lines are ok
with different lengths
The longest ones are always s
plitted at same... (15 Replies)
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT NETBSD
getconf
GETCONF(1) BSD General Commands Manual GETCONF(1)NAME
getconf -- get configuration values
SYNOPSIS
getconf system_var
getconf -a
getconf path_var pathname
getconf -a pathname
DESCRIPTION
The getconf utility writes the current value of a configurable system limit or option variable to the standard output.
The system_var argument specifies the system variable to be queried. The names of the system variables are from sysconf(3) with the leading
``_SC_'' removed.
The path_var argument specifies the pathname variable to be queried for the specified pathname argument. The names of the pathname variables
are from pathconf(2) with the leading ``_PC_'' removed.
When invoked with the option -a, getconf writes a list of all applicable variables and their values to the standard output, in the format
``name = value''.
EXIT STATUS
The getconf utility exits 0 on success, and >0 if an error occurs.
SEE ALSO pathconf(2), confstr(3), limits(3), sysconf(3)STANDARDS
The getconf utility conforms to IEEE Std 1003.2-1992 (``POSIX.2'').
BSD August 9, 2011 BSD