Hi,
I want to write a shell script which increments a particular column in a row from a text file and then adds another row below the current row with the incremented value .
For Eg .
if the input file has a row :
abc xyz lmn 89 lm nk o p
I would like the script to create something like... (9 Replies)
Hi
I want to append line 2n to 2n-1 line where n=1...LastLine in my file.
eg:
Actual File:
Hello
Everyone
Welcome
TO Unix
I need
Your help
Required File:
HelloEveryone
WelcomeTO Unix
I needYour help (5 Replies)
hi guys, today i'm stuck in a new problem.
the title explain more or less but a particular had been omitted. So i'm going to describe below the situation with an example.
I have different html files and each of them have a consecutive lines group inside that i want to extract.
example:
... (8 Replies)
Hi Friends,
I have a single column data like below.
1
2
3
4
5
I need the output like below.
0
1
2
3
4
where each row (including first row) subtracting from first row and the result should print below like the way shown in output file.
Thanks
Sid (11 Replies)
Hi,
I need to replace first row to second row:
Input:
A
JACK WAS_${HH}_JACK ....
Output should be:
JACK WAS_A_JACK ....
I tried below code..
awk '{TEMP= (NR==1)}; {sub(/${HH}/$TEMP/)}' (2 Replies)
Hi. How can I read row number from one file and print that corresponding record present at that row in another file.
eg
file1
1
3
5
7
9
file2
11111
22222
33333
44444
55555
66666
77777
88888
99999 (3 Replies)
this is the requirement
list.txt
table1
table2
table3
testfile.txt
name#place#data#select * from table1
name2#place2#data2#select * from table 10 innerjoin table3
name2#place2#data2#select * from table 10
output
name place table1
name2 place table3
i tried using awk (7 Replies)
Discussion started by: vamsekumar
7 Replies
LEARN ABOUT DEBIAN
vflip
vflip(1Vi)vflip(1Vi)NAME
vflip - flip an image horizontally and/or vertically
SYNOPSIS
vflip [-hor] [-vert] [-option ...] [infile] [outfile]
DESCRIPTION
vflip flips images horizontally and/or vertically.
A horizontal flip exchanges the left and right sides of an image. A vertical flip exchanges the top and bottom.
COMMAND LINE OPTIONS
vflip accepts the following options:
-help Prints a message describing options.
-in infile Specifies a Vista data file containing the input images.
-out outfile Specifies where to write the flipped images as a Vista data file.
-horizontal Specifies that a horizontal flip should be performed.
-vertical Specifies that a vertical flip should be performed.
If both -horizontal and -vertical are specified, the horizontal flip is performed first. If neither is specified, the images are neverthe-
less flipped horizontally.
SEE ALSO vrotate(1Vi), vtranspose(1Vi), VImage(3Vi), Vista(7Vi)AUTHOR
Daniel Ko <ko@cs.ubc.ca>
Vista Version 1.12 24 April 1993 vflip(1Vi)