Sponsored Content
Top Forums Shell Programming and Scripting Problem facing in using awk command Post 302424096 by devtakh on Monday 24th of May 2010 07:45:37 AM
Old 05-24-2010
Did you try to use the solution I provided earlier. You should be able to tweak it a little bit .
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

facing a problem in redirection

Hi, I am doing this perl script print (@line(1..15)); the lines 1 to 15 get printed... how can i redirect this to file? thanks and regards vivek.s (4 Replies)
Discussion started by: vivekshankar
4 Replies

2. UNIX for Dummies Questions & Answers

facing problem with cut command

hi , i used ls -ltr | cut -f 1 > \dev\tty but all teh coulmns r getting printed instead of only one........how can i resolve this? prob 2 : wud be able start cutting from last field......supposing in the case of dyanmic list.i dunno the field number of last column.......so is... (3 Replies)
Discussion started by: vivekshankar
3 Replies

3. Solaris

please help as i am facing problem with uptime

Hi I am getting the uptime output as follows 12:40am up 4 day(s), 18:29, 2 users, load average: 38.97, 36.54, 34.89 The load average is too high . I have checked the processes , but no process is taking too much cpu time Please help (3 Replies)
Discussion started by: guy009
3 Replies

4. Shell Programming and Scripting

Problem facing with sed and awk

Hi All, I have a got a problem .. I have t files as below: 1.txt contains ----- ----- ----- column 1, "cat", column 24, "dog", column 100, "rat", ----- ----- ----- 2.sh should contain ----- ----- ----- awk 'BEGIN { printf ("%1s","cat")}' (19 Replies)
Discussion started by: jisha
19 Replies

5. Solaris

Facing problem with zone

i am using this way to create zone1 and zone2 bash-2.05b# zonecfg -z zone1 zone1: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:zone1> create zonecfg:zone1> set zonepath=/zone/1 zonecfg:zone1> set autoboot=true zonecfg:zone1> add net zonecfg:zone1:net>... (6 Replies)
Discussion started by: coxmanchester
6 Replies

6. Shell Programming and Scripting

Problem facing command using shell

Dear Brothers! Need your help for the case where I am running one command on prompt and its giving us the correct output, but when i use the same command from shell its directs no output.:wall: the command on command prompt is ls -ltrh * | nawk '{if ($5~ '/$'M'/') print $9}' | grep -v... (1 Reply)
Discussion started by: jojo123
1 Replies

7. AIX

facing problem using su

Hi, I am able to login using su - or su directly , # prompt is coming, it doesnt ask for password. any normal user on aix system is login using su - or su . Please suggest where to change the configuration direct root login is disabled in /etc/ssh/sshd_config file. (0 Replies)
Discussion started by: manoj.solaris
0 Replies

8. Shell Programming and Scripting

Scripting with awk: facing problem

Hi, I wants to print the 9th column information with its path name in some txt file. Here is one line which works fine for me: rfdir /castor/cern.ch/user/s/sudha/forPooja | grep data | awk '{print "rfio:///castor/cern.ch/user/s/sudha/forPooja/"$9}' > dataFilenames.list rfdir=="ls -ltr" ... (2 Replies)
Discussion started by: nrjrasaxena
2 Replies

9. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
TWEAK(1)						      General Commands Manual							  TWEAK(1)

NAME
tweak - edit bitmap files, subfont files, face files, etc. SYNOPSIS
tweak [ file ... ] DESCRIPTION
Tweak edits existing files holding various forms of bitmap images. To create original images, use art(1) or start from an existing bitmap, subfont, etc. Tweak reads its argument files and displays the resulting bitmaps in a vertical column. If the bitmap is too wide to fit across the dis- play, it is folded much like a long line of text in an 81/2 window. Under each bitmap is displayed one or two lines of text presenting parameters of the image. The first line shows the bitmap's ldepth, the log base 2 of the number of bits per pixel; r, the rectangle cov- ered by the image; and the name of the file from which it was read. If the file is a subfont, a second line presents a hexadecimal 16-bit offset to be applied to character values from the subfont (typically as stored in a font file; see font(6)); and the subfont's n, height, and ascent as defined in cachechars(2). By means described below, magnified views of portions of the bitmaps may be displayed. The text associated with such a view includes mag, the magnification. If the view is of a single character from a subfont, the second line of text shows the character's value (including the subfont's offset) in hexadecimal and as a character in tweak's default font; the character's x, top, bottom, left, and width as defined in cachechars(2); and iwidth, the physical width of the image in the subfont's bitmap. There are two methods to obtain a magnified view of a character from a subfont. The first is to click mouse button 1 over the image of the character in the subfont. The second is to select the char entry on the button 3 menu, point the resulting gunsight cursor at the desired subfont and click button 3, and then type at the text prompt at the bottom of the screen the character value, either as a multi-digit hexa- decimal number or as a single rune representing the character. To magnify a portion of other types of bitmap files, click button 1 over the unmagnified file. The cursor will switch to a cross. Still with button 1, sweep a rectangle, as in 81/2, that encloses the portion of the image to be magnified. (If the file is 16x16 or smaller, tweak will just magnify the entire file; no sweeping is necessary.) Depressing buttons 1 and 2 within magnified images changes pixel values. By default, button 1 sets the pixel to all ones and button 2 sets the pixel to all zeros. Across the top of the screen is a textual display of global parameters. These values, as well as many of the textual values associated with the images, may be edited by clicking button 1 on the displayed value and typing a new value. The values along the top of the screen are: mag Default magnification. val(hex) The value used to modify pixels within magnified images. The value must be in hexadecimal, optionally preceded by a tilde for bit- wise negation. but1 but2 The boolean function used by the named button to set pixel values. The function may be specified either by name as defined in <libg.h>, e.g. DorS, or by simple boolean expression, e.g. S|D. In these expressions, S is the pixel value defined above and D is the pixel being modified. copy The boolean function used in the copy menu item. Under button 3 is a menu holding a variety of functions. Many of these functions prompt for the image upon which to act by switching to a gunsight cursor; click button 3 over the selection, or click a different button to cancel the action. open Read and display a file. The name of the file is typed to the prompt on the bottom line. read Reread a file. write Write a file. copy Use the copy function, default S, to transfer a rectangle of pixels from one image to another. The program prompts with a cross cursor; sweep out a rectangle in one image or just click button 3 to select the whole image. The program will leave that rectangle in place and attach another one to the cursor. Move that rectangle to the desired place in any image and click button 3, or another button to cancel the action. char As described above, open a magnified view of a character image in a subfont. close Close the specified image. If the image is the unmagnified file, also close any magnified views of that file. exit Quit tweak. The program will complain once about modified but unwritten files. To clear blocks of pixels, use copy with function 0. SOURCE
/sys/src/cmd/tweak.c SEE ALSO
art(1), cachechars(2), bitmap(6), font(6) TWEAK(1)
All times are GMT -4. The time now is 03:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy