04-28-2012
Yes the second line is a part of the first line
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is it possible to add a new column in a file by matching a key element in second file ?
File 1
2 a
3 b
4 d
5 g
6 j
7 m
File 2
4 hjjjj
5 aaa
6 sasa
7 dsds
2 dsdf
3 fdsfg (2 Replies)
Discussion started by: sandeep_hi
2 Replies
2. Shell Programming and Scripting
Dear all,
Does anyone know how I could to add a column of numbers (1s, or 2s, or..., or 6s) to two-column text files (tab-delimited), where the specific number to be added varies as a function of the file naming?
Currently, each of my text files has two columns, so the column with the... (12 Replies)
Discussion started by: rlapate
12 Replies
3. Shell Programming and Scripting
Hello Friends,
i used awk to sum up total size of files under a directory (with the help of examples, threads here).
ls -l | awk '/^-/ {total += $5} END {printf "%15.0f\n",total}' >> total.txt
After each execution of the script total result is appended into a text file:
7010
7794
8890 ... (7 Replies)
Discussion started by: EAGL€
7 Replies
4. Shell Programming and Scripting
Hi All ,
Kindly help me with this soln
awk '{printf "%s %7s \n", $1,$c}' infile
where
value of variable c I am externally giving input
But executing the above command shows all the columns of infile where as I want only 1st column of infile and 2nd column should print value c (8 Replies)
Discussion started by: Pratik4891
8 Replies
5. AIX
Helle,
I want to create a .ksh script in order to realize the following :
I have a .txt file organized in a bloc of information, each bloc start with 000 as following:
000...
001...
003...
004...
000...
001...
003...
004...
.
.
My aim is to add a new... (6 Replies)
Discussion started by: zainab2006
6 Replies
6. Shell Programming and Scripting
I saved the csv file in a comma delimited format.
Sample input
input.csv
1 abc 2
2 def 4
3 ghi 6
4 jkl 8
5 mno 10
output.csv should look like this with single quotes around each field
'1' 'abc' '2'
'2' 'def' '4'
'3' 'ghi' '6'
'4' 'jkl' '8'
'5' 'mno' '10'
Please help me :confused:... (3 Replies)
Discussion started by: melannie
3 Replies
7. Shell Programming and Scripting
File contains 2 fields with tab delimeter. i want added the one column first of the file and incrementing as like sequence
Sample file:
Fname lanme
raj rajkumar
rani ranikumar
output file should be.
name Fname lanme
1 raj rajkumar
2 rani ranikumar
Please help... (1 Reply)
Discussion started by: bmk
1 Replies
8. Shell Programming and Scripting
Hi,
I am trying to get the file in particular pattern using shell script. I have to add one column to some other file.
For example consider two file as below.
File1:
name1
name2
name3
File2:
Add1 age1
Add2 age2
Add3 age3
I want this two file in a single file format something like... (3 Replies)
Discussion started by: diehard
3 Replies
9. Shell Programming and Scripting
Hi,
I am having a file in the following format.
for aaaa
1111 1234
2222 3434
for bbbb
1111 3434.343
2222 2343
for cccc
3333 2343.343
4444 89000
for dddd
1111 5678.343
2222 890.3
aaaa 2343.343
bbbb 34343.343 (5 Replies)
Discussion started by: jpkumar10
5 Replies
10. Shell Programming and Scripting
Hi,
Can anyone please explain me how can I add a new column to a Csv file ?
Actaully I am setting one set of commands and creating a CSV file with 4 columns.
I am executing another command and it's output should be added as column 5 with a column heading ?
Can anyone explain how can... (26 Replies)
Discussion started by: rrb2009
26 Replies
LEARN ABOUT DEBIAN
mdraw_default_line_break
mdraw_default_line_break(3m17n) The m17n Library mdraw_default_line_break(3m17n)
NAME
mdraw_default_line_break - Calculate a line breaking position.
SYNOPSIS
int mdraw_default_line_break (MText * mt, int pos, int from, int to, int line, int y)
DESCRIPTION
Calculate a line breaking position. The function mdraw_default_line_break() calculates a line breaking position based on the line number
line and the coordinate y, when a line is too long to fit within the width limit. pos is the position of the character next to the last
one that fits within the limit. from is the position of the first character of the line, and to is the position of the last character
displayed on the line if there were not width limit. line and y are reset to 0 when a line is broken by a newline character, and
incremented each time when a long line is broken because of the width limit.
RETURN VALUE
This function returns a character position to break the line.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 mdraw_default_line_break(3m17n)