Sponsored Content
Full Discussion: Add line command
Top Forums UNIX for Dummies Questions & Answers Add line command Post 302151664 by saranyu on Sunday 16th of December 2007 10:57:18 PM
Old 12-16-2007
Try this

$ print "ra\n" > na
$ print "ras" >> na
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

add data from command line to end of file

how can I add data from command line to end of file? (3 Replies)
Discussion started by: bryan
3 Replies

2. Shell Programming and Scripting

Command to add 1000 spaces to end of line

hi, could anyone tell me the command to append spaces at the end of the line. for example, i need 1000 spaces after the word "helloworld" echo "helloworld " i need to achieve this in someother way hardcoding 1000 spaces is not practical. as i am totally new... (3 Replies)
Discussion started by: kavithacs
3 Replies

3. Shell Programming and Scripting

Add message in a command line processing

I am trying to add a message while archive some files. For example I am using the below command to archive some files tar -cvf inst.tar Linux The command gives the terminal display like as below I want to add a message beginning of each line followed by orginal message and end... (4 Replies)
Discussion started by: k_manimuthu
4 Replies

4. Shell Programming and Scripting

Command line: add text wrapper around words

I am trying to build a sinkhole for BIND. I created a master zone file for malicious domains and created a separate conf file, but I am stuck. I have a list of known bd domains that is updated nightly. The file simply contains the list of domains, one on each line: Bad.com Bad2.com... (4 Replies)
Discussion started by: uuallan
4 Replies

5. Shell Programming and Scripting

How to add line number using UNIX command?

Hi, I am working on Shell script and I have a .dat file in which I want to add line numbers. Please see below example file Input File: 19523479811841494432C2013052700000000 19523479811730333980A2013052700000000 19523479811417044397I2013052700000000 19523479811205895810A2013052700000000... (7 Replies)
Discussion started by: jnrohit2k
7 Replies

6. Shell Programming and Scripting

How to add a line to the end of a set of files without using sed command?

I understand that the SED command reads all the lines in the file before adding a required line to the end of the file. Is there another command that adds a line to the end of files without reading the entire file.... SED is increasing the processing time as the number of lines in each of the... (1 Reply)
Discussion started by: Kanch
1 Replies

7. Shell Programming and Scripting

How to add line breaks to perl command with large text in single quotes?

Below code extracts multiple field values from XML into array and prints all in one line. perl -nle '@r=/(?: jndiName| authDataAlias| value| minConnections| maxConnections| connectionTimeout| name)="(+)/g and print join ",",$ENV{tIPnSCOPE},$ENV{pr ovider},$ENV{impClassName},@r' server.xml ... (4 Replies)
Discussion started by: kchinnam
4 Replies

8. Shell Programming and Scripting

Add command line argument

I would like to add the ability to change the message that is displayed when timer is finished. At present it just asks for the time I want for the alarm. I think what I need is another command line argument. soundfile="/usr/share/sounds/My_Sounds/Alarm-sound-buzzer.mp3"... (5 Replies)
Discussion started by: drew77
5 Replies

9. UNIX for Beginners Questions & Answers

awk Command to add Carriage Return and Line Feed

Hello, Can someone please share a Simple AWK command to append Carriage Return & Line Feed to the end of the file, If the Carriage Return & Line Feed does not exist ! Thanks (16 Replies)
Discussion started by: rosebud123
16 Replies
R8TOHDF(1)						      General Commands Manual							R8TOHDF(1)

NAME
r8tohdf - convert 8-bit raster images to HDF format SYNOPSIS
r8tohdf [number-of-rows number-of-columns] output-filename [-p palette-filename] [-c] [-r] [-i] raw-raster-image-filename-1, raw-raster- image-filename-2, ... DESCRIPTION
r8tohdf converts a set of raw raster images to the HDF RIS8 format and writes them to a file. OPTIONS
-p pallette-file Specify the name of the palette file. -c Run length coding. Compress the output data using run-length encoding. -i IMCOMP Compression. Compress the output data using the IMCOMP method. -r No Compression. Apply no compression to the output data. (the default). EXAMPLES
A file named "rawras" contains a 256 x 512-byte raw raster image, and its palette is stored in a file name "mypal". To convert the informa- tion in these files to an RIS8 without compression and store the RIS8 in a file named "ras.hdf", enter the following r8tohdf command: r8tohdf 256 512 ras.hdf -p mypal rawras A 800 x 1000-byte raw raster image is stored in a file named "bigpic". This data must be converted to a RIS8 without a palette, compress- ing it using run-length encoding, then stored in a file named "bigpic.hdf". The following command will do this: r8tohdf 800 1000 bigpic.hdf -c bigpic A 300 x 400 raw raster image is contained in each of the files named "pic1", "pic2", and "pic3". To convert all three files to RIS8s, com- press them using the IMCOMP method, and store them in a file named "pic.hdf", enter r8tohdf 300 400 pic.hdf -i pic1 pic2 pic3 Different types of raster image data are to be stored in a file named "ras.hdf". The image data in the file "rawras1" will be stored with- out a palette. The image data sets from the file named "rawras2" are to be stored with a palette extracted from a file named "mypal". The images from the "rawras1" and "rawras2" files are to be compressed using run-length encoding, and the image in the "rawras3" file is not to be compressed. The size of all images are 256 x 512 bytes. The following command is used to do this: r8tohdf 256 512 ras.hdf -c rawras1 -p mypal rawras2 -r rawras3 SEE ALSO
hdftor8(1), hdf(5) November 6, 1999 R8TOHDF(1)
All times are GMT -4. The time now is 04:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy