Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Change the display format for ls -l command in AIX Post 302535633 by styno on Friday 1st of July 2011 10:09:49 AM
Old 07-01-2011
Quote:
Originally Posted by puni
Thank you. Surely I need to modify my code. But I am curious to know if there is a way that we can set the 'ls -l' command dispaly format or it never possible in unix?
An extremely dirty way to do this is to rename the ls binary to oldls and write a script called 'ls' that calls oldls and removes the extra space. I only mention this because you are really looking for a quick and dirty and not recommended solution.
 

10 More Discussions You Might Find Interesting

1. AIX

Analogue of Format Command in AIX for IBM

I need to install AIX 5.3 on an RS/6000 Server. When i boot from an AIX 5.3 CD i get an option to upgrade to 5.3 from 5.2(existing OS). Is there a way by which i can force AIX to perform a new install with creating new partitions. I am looking for the analogue of 'Format' command in AIX that... (2 Replies)
Discussion started by: bestoption
2 Replies

2. Shell Programming and Scripting

ls command format display

Hi I have 3 files $ ls -l -rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 SANITY_TEST -rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333 -rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333 (1) I need to see this "SANITY_TEST" "Success 123333" "Success... (6 Replies)
Discussion started by: mnmonu
6 Replies

3. AIX

Single command to change the attributes of all luns presented to an AIX host

Hi, I would like to know if there is a command similar to scsimgr in HP-UX that can help me change the algorithm and reserve_policy attributes of all luns presented to an AIX host. Otherwise I would have to use, chdev -l hdiskX -a algorithm=round_robin reserve_policy=no_reserve in a... (1 Reply)
Discussion started by: kanna_geekworkz
1 Replies

4. Shell Programming and Scripting

Format of SED command to change a date

I have a website. I have a directory within it with over a hundred .html files. I need to change a date within every file. I don't have an easy way to find/replace. I need to change 10/31 to 11/30 on every single page at once. I tried the command below but it didn't work. Obviously I don't know... (3 Replies)
Discussion started by: ijustsawmars
3 Replies

5. Shell Programming and Scripting

How to change date format in 'last' command?

hi.. i am new to here. can anybody tell me how can we change the date format in the 'last' command. EX- on running last command i am getting -- rruat pts/12 172.18.40.101 Tue May 3 12:59 still logged in rruat pts/10 blr2-3f-239.asco Tue May 3 12:59 - 13:09 ... (2 Replies)
Discussion started by: thearpit
2 Replies

6. AIX

Change AIX display resolution ?

Hello, Running X on AIX local display - want to change resolution. On Linux for example I used xrandr. ? thanks Vilius (1 Reply)
Discussion started by: vilius
1 Replies

7. Shell Programming and Scripting

Display date in mm/dd/yy format in sed command

Hi All, Following is my issue. $MAIL_DOC = test.txt test.txt contains the following text . This process was executed in the %INSTANCE% instance on %RUNDATE%. I am trying to execute the following script var=`echo $ORACLE_SID | tr ` NOW=$(date +"%D") sed -e... (3 Replies)
Discussion started by: megha2525
3 Replies

8. Solaris

Solaris 10 Sparc. How to change Vendor info of SAN disks reported in "format" command?

Greetings! After block level migration using an external appliance, the luns are getting reported as DGC-RAID5 and these luns are infact from the new storage. I have a query on changing the device Vendor info from DGC-RAID5 to HP3par in the format o/p only. AVAILABLE DISK SELECTIONS: ... (3 Replies)
Discussion started by: n_Bhaskar
3 Replies

9. UNIX for Dummies Questions & Answers

Date format change in AIX

Hi I have a date format in a variable as Apr 7 03:35:59 EDT 2016. how do i change it to 04/07/2016 03:35:59 EDT format (5 Replies)
Discussion started by: sushma123
5 Replies

10. UNIX for Beginners Questions & Answers

How to change the format of an Excel from exponential to text through UNIX command?

How to change the format of an excel from exponential to text through UNIX command We have a pipe delimited file in which one particular A column is a combination of number+text and while converting into excel using tr command it is generating a exponential data for the A column. Kindly... (2 Replies)
Discussion started by: AbiramiRaja
2 Replies
libcaca dirty rectangle manipulation(3caca)			      libcaca			       libcaca dirty rectangle manipulation(3caca)

NAME
libcaca dirty rectangle manipulation - Functions __extern int caca_disable_dirty_rect (caca_canvas_t *) Disable dirty rectangles. __extern int caca_enable_dirty_rect (caca_canvas_t *) Enable dirty rectangles. __extern int caca_get_dirty_rect_count (caca_canvas_t *) Get the number of dirty rectangles in the canvas. __extern int caca_get_dirty_rect (caca_canvas_t *, int, int *, int *, int *, int *) Get a canvas's dirty rectangle. __extern int caca_add_dirty_rect (caca_canvas_t *, int, int, int, int) Add an area to the canvas's dirty rectangle list. __extern int caca_remove_dirty_rect (caca_canvas_t *, int, int, int, int) Remove an area from the dirty rectangle list. __extern int caca_clear_dirty_rect_list (caca_canvas_t *) Clear a canvas's dirty rectangle list. Detailed Description These functions manipulate dirty rectangles for optimised blitting. Function Documentation __extern int caca_disable_dirty_rect (caca_canvas_t *cv) Disable dirty rectangle handling for all libcaca graphic calls. This is handy when the calling application needs to do slow operations within a known area. Just call caca_add_dirty_rect() afterwards. This function is recursive. Dirty rectangles are only reenabled when caca_enable_dirty_rect() is called as many times. This function never fails. Parameters: cv A libcaca canvas. Returns: This function always returns 0. __extern int caca_enable_dirty_rect (caca_canvas_t *cv) This function can only be called after caca_disable_dirty_rect() was called. If an error occurs, -1 is returned and errno is set accordingly: o EINVAL Dirty rectangles were not disabled. Parameters: cv A libcaca canvas. Returns: 0 in case of success, -1 if an error occurred. __extern int caca_get_dirty_rect_count (caca_canvas_t *cv) Get the number of dirty rectangles in a canvas. Dirty rectangles are areas that contain cells that have changed since the last reset. The dirty rectangles are used internally by display drivers to optimise rendering by avoiding to redraw the whole screen. Once the display driver has rendered the canvas, it resets the dirty rectangle list. Dirty rectangles are guaranteed not to overlap. This function never fails. Parameters: cv A libcaca canvas. Returns: The number of dirty rectangles in the given canvas. __extern int caca_get_dirty_rect (caca_canvas_t *cv, intr, int *x, int *y, int *width, int *height) Get the canvas's given dirty rectangle coordinates. The index must be within the dirty rectangle count. See caca_get_dirty_rect_count() for how to compute this count. If an error occurs, no coordinates are written in the pointer arguments, -1 is returned and errno is set accordingly: o EINVAL Specified rectangle index is out of bounds. Parameters: cv A libcaca canvas. r The requested rectangle index. x A pointer to an integer where the leftmost edge of the dirty rectangle will be stored. y A pointer to an integer where the topmost edge of the dirty rectangle will be stored. width A pointer to an integer where the width of the dirty rectangle will be stored. height A pointer to an integer where the height of the dirty rectangle will be stored. Returns: 0 in case of success, -1 if an error occurred. __extern int caca_add_dirty_rect (caca_canvas_t *cv, intx, inty, intwidth, intheight) Add an invalidating zone to the canvas's dirty rectangle list. For more information about the dirty rectangles, see caca_get_dirty_rect(). This function may be useful to force refresh of a given zone of the canvas even if the dirty rectangle tracking indicates that it is unchanged. This may happen if the canvas contents were somewhat directly modified. If an error occurs, -1 is returned and errno is set accordingly: o EINVAL Specified rectangle coordinates are out of bounds. Parameters: cv A libcaca canvas. x The leftmost edge of the additional dirty rectangle. y The topmost edge of the additional dirty rectangle. width The width of the additional dirty rectangle. height The height of the additional dirty rectangle. Returns: 0 in case of success, -1 if an error occurred. Referenced by caca_blit(), caca_clear_canvas(), caca_fill_box(), caca_flip(), caca_flop(), caca_free_frame(), caca_invert(), caca_put_attr(), caca_put_char(), caca_rotate_180(), caca_rotate_left(), caca_rotate_right(), caca_set_canvas_boundaries(), caca_set_frame(), caca_stretch_left(), and caca_stretch_right(). __extern int caca_remove_dirty_rect (caca_canvas_t *cv, intx, inty, intwidth, intheight) Mark a cell area in the canvas as not dirty. For more information about the dirty rectangles, see caca_get_dirty_rect(). Values such that xmin > xmax or ymin > ymax indicate that the dirty rectangle is empty. They will be silently ignored. If an error occurs, -1 is returned and errno is set accordingly: o EINVAL Specified rectangle coordinates are out of bounds. Parameters: cv A libcaca canvas. x The leftmost edge of the clean rectangle. y The topmost edge of the clean rectangle. width The width of the clean rectangle. height The height of the clean rectangle. Returns: 0 in case of success, -1 if an error occurred. __extern int caca_clear_dirty_rect_list (caca_canvas_t *cv) Empty the canvas's dirty rectangle list. This function never fails. Parameters: cv A libcaca canvas. Returns: This function always returns 0. Referenced by caca_refresh_display(). Author Generated automatically by Doxygen for libcaca from the source code. Version 0.99.beta18 Fri Apr 6 2012 libcaca dirty rectangle manipulation(3caca)
All times are GMT -4. The time now is 05:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy