10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
2. Shell Programming and Scripting
Hi I have a text file with lines beginning with 71303, 71403, 71602,
I need to copy the 10 digit text at position 30 on lines beginning with 71303 (5500011446) to position 99 on every line beginning with 71602 (see example below),
There may be many 71303 lines but I need the text copying to... (2 Replies)
Discussion started by: firefox2k2
2 Replies
3. Shell Programming and Scripting
I have a really big XML file. I need copy the value of one tag inside another one tag. I try to publish one example.
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel>
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies
4. Shell Programming and Scripting
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies
5. Shell Programming and Scripting
Hello Guys,
I know the command echo " " > filenamehere ; would erase everything in the document. Can the same be done, to paste words below certain text?
For example, lets say i want to paste a line below the line Server name: in apache.conf . What should be added in the script? (8 Replies)
Discussion started by: xxxx
8 Replies
6. Shell Programming and Scripting
I have this text file with a very large number of columns (10,000+) and I want to move the first column to the position of the six column so that the text file looks like this:
Before cutting and pasting
ID Family Mother Father Trait Phenotype
aaa bbb ... (5 Replies)
Discussion started by: evelibertine
5 Replies
7. Solaris
Hello,
Can anybody please tell me how we can copy and paste text from a word document into a text file that we are editing in vi? Is it possible to do that while we are editing the text file in vi in insert mode?
Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies
8. Shell Programming and Scripting
Pls help me on this. I have to 2 files like shown below:
File 1
TAIJM
AXPKIM
BEMGW
File 2
PXMPA
JYGE
IMJP
What i want to do is to paste both file to a new file on thir format:
File 3
TAIJM PXMPA
AXPKIM JYGE
BEMGW IMJP
I tried cat and print, but it doesn't work. Cn... (6 Replies)
Discussion started by: kingpeejay
6 Replies
9. Shell Programming and Scripting
I have 2 text files, both have one simple, single column. The 2 files might be the same length, or might not, and if not, it's unknown which one would be longer.
For this example, file1 is longer:
---file1
Joe
Bob
Mary
Sally
Fred
Elmer
David
---file2
Tomato
House
Car... (3 Replies)
Discussion started by: cajunfries
3 Replies
10. UNIX for Dummies Questions & Answers
Hello, I'm absolutely new to this world... but I've a problem with a terminal connected via PuTTY (or Termlite) to an AIX 5.1 application.
The problem: I need to paste from clipboard a text containing both input text strings and special keys as ESC, Arrows and so on, to execute in the AIX... (1 Reply)
Discussion started by: Daniele11
1 Replies
printconfig(8) System Manager's Manual printconfig(8)
NAME
printconfig - Used to add, delete, or modify printer configurations
SYNOPSIS
/usr/sbin/printconfig [-ui gui [x resources] | menu]
OPTIONS
Specifies the user interface to be invoked. The choices are: Specifies graphical user interface. Specifies menu interface.
The x resources are standard X11 resource options. For more information, see the X(1X) reference page.
DESCRIPTION
Use the Printer Configuration application, printconfig, to add, delete, or modify printer configurations for this workstation's local and
remote printers. For each printer that you configure, you can choose the standard printer configuration or customize the configuration.
You must have root privileges to run this application.
The printconfig command has two user interface options: Graphical user interface (GUI) Menu interface (Menu)
Running the Graphical User Interface Option:
To start printconfig from the graphical user interface, do the following: Click on the Application Manager icon on the CDE front panel.
Double click on the System_Admin application group icon. Double click on the Configuration application group icon. Double click on the
Print icon.
To start printconfig from the xterm, enter the following command from the xterm: /usr/sbin/printconfig
Note that the validation checking in the GUI interface is more strict than that used by the menu interface. If the GUI interface rejects an
attribute value you believe to be acceptable, try the menu interface.
Running the Menu Interface Option:
To start the printconfig menu interface, enter the following command from the xterm: printconfig -ui menu
This option invokes lprsetup. For more information, see the lprsetup(8) reference page.
Running Online Help:
You can view the Printer Configuration online help volume without running the application. To open the Printer Configuration help volume
from the command line, enter the following command: /usr/dt/bin/dthelpview -helpVolume /usr/dt/appconfig/help/C/PrintConfig.sdl
You can also view online help for this application by choosing Help from the menu bar in the GUI version. The Help pulldown menu is dis-
played, providing the following options:
Overview: Displays the Overview section of the help volume, which describes the purpose of the application, how to run the application, and
how to exit the application.
Tasks: Displays the Tasks section of the help volume, which describes how to use the application to perform various tasks.
Reference: Displays the Reference section of the help volume, which describes all dialog boxes and dialog box components in the applica-
tion.
On Item: Activates the On Item help functionality by displaying a question mark as the cursor. When the cursor is positioned on any compo-
nent in the application and you click on the component, a Help Viewer window is opened and the help for the selected component is displayed
in the window.
Using Help: Displays the standard CDE instructions on how to use the Help Viewer.
About: Displays version, copyright, and trademark information for the application.
RESTRICTIONS
The following restrictions apply when using older versions of printcap files, at Version 3.2 or earlier: In Verion 4.0 /etc/printcap files,
the system assigns printers names lp[0-9]*, [0-9]*, and for the default printer, lp . For example, the default printer may have a name
field such as lp0|0|lp|default|declaser3500:... and another printer may be lp7|7|some_alias|another alias:... As a result, the system
will have difficulty with printers that have less than two names or that use these reserved names as aliases. Some of the attribute value
checking is different. For example, some fields that were not required now are, and some attributes values that were legal no longer are.
The printconfig utility requires that all comments be associated with a printer. As a result, comments appearing after the last printer
will be deleted.
To avoid these problems, invoke printconfig with the menu interface as follows: # printconfig -ui menu
This command invokes the lprsetup command line utility, which is fully compatible with earlier printcap files.
EXAMPLES
The following example shows how to start the printconfig menu interface from the command line: printconfig -ui menu
FILES
Contains the current printer configurations printconfig modifies the contents of this file Contains the known printer types and their
default attribute values for creating new printer configurations Specifies the environment variables that define the PRINTCONFIG configura-
tion on your system
SEE ALSO
Commands: lpr(1), latcp(8), lpd(8), rc.config(8)
Files: printcap(4)
printconfig(8)