Turn off field separation by using a field sep character that does not occur in any record. Try the : character, then everything is in field1
This sorts character positions 16-29.
The following find command works on the Korn Shell command line:
find . \( ! -name . -prune \) -type f -name "*.txt" -mtime +100
In the particular directory I'm in, the above find will list correctly the three text files that exist that haven't been modified in over 100 days:
... (3 Replies)
Hi,
I am trying to check the file not empty, if its not empty then i try to send other system by ftp, the following codes doesnt work
if ]
then
echo "File ${OUTBOUNDFILE} have data"
ftp -i -n -v 204.104.22.33 >> ${FTP_LOGFILE} << EOF
user abc def
ascii
put ${OUTBOUNDFILE}
quit
EOF... (1 Reply)
Hi Guru's,
I need to create 3 files with the contents "ABC" using single command.
Iam using:
echo "ABC" > file1.txt file2.txt file3.txt
the above command is not working. pls help me...
With Regards / Ganapati (4 Replies)
Hi,
I don't know hot to make this command work:
ls -laR | grep "^-" | awk '{print $9}'| grep "$.txt"
It should return the list of file .txt
It's important to search .txt at the end of the line, becouse some file name have "txt" in their name but have other extensions (13 Replies)
I have a file that I ran the dos2unix utility on, it cleans up pretty well, but I noticed an occasional ^M leftover, (actual characters) these may or may not be strays from my original dos file. Either way, I want to get rid of the ^ and any character that may follow. ^M ^C or whatever.
How do I... (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Create a Shell script that looks for all text files in your home directory (including subdirectories).
List... (3 Replies)
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
Hello everyone,
Since my python knowledge is limimted, I've challenged myself to learn as much as possible to help me with my carrere. I'm currently trying to convert a shell script to python, just to give myself a task. There is one section of the script that I'm having issues converting and... (2 Replies)
Discussion started by: da1
2 Replies
LEARN ABOUT FREEBSD
xcolors
XCOLORS(1) General Commands Manual XCOLORS(1)NAME
xcolors - display all X11 color names and colors
SYNOPSIS
xcolors [ -start color ] [ -near color ] [ -distance howfar ]
DESCRIPTION
xcolors reads the rgb.txt file that defines the color names the X server knows and displays the colors found.
At the top of the window is a sample region containing text. By clicking on the color names, the color of the sample text can be changed.
Mouse button 1 changes the foreground; button 2 changes the background. The text can also be edited.
Typing ``q'' exits the program.
OPTIONS
In addition the the usual X Toolkit options, xcolors understands these command line options:
-start name
specify a color name to start with; colors before this one in the rgb.txt file are skipped. This option is useful if there are more
colors than will fit on your screen or in your colormap.
-rgbfile filename
specify an alternate color database file to read.
-near nearcolor
only show colors near this one in the RGB space. All colors within a sphere in the RGB-space centered on nearcolor are displayed.
-distance howfar
defines how close colors have to be to nearcolor to be displayed. This option sets the radius of the sphere used by the -near
option. The scale is such that the RGB cube is 256 units on a side. The default is 64.
ACTIONS
set-foreground([color])
Set the foreground color of the sample region. If no color is provided, the color is taken from the border color of the widget
where the action occurred.
set-background([color])
Same as set-foreground() but sets the background color.
quit() Exit xcolors.
RESOURCES
Xcolors has a few top-level application resources that allow customizations that are specific to xcolors.
startColor (classStartColor)
See the -start option.
rgbFile (classRgbFile)
See the -rgbfile option.
nearColor (classNearColor)
See the -near option.
nearDistance (classNearDistance)
See the -distance option.
WIDGET HIERARCHY
Knowing the name and position in the hierarchy of each widget is useful when specifying resources for them. In the chart below, the class
and name of each widget is given.
Xcolors xcolors
Paned panes
AsciiText sample
Viewport viewport
Box colors
Label colorname
Label colorname
.
.
.
FILES
/etc/X11/rgb.txt
X color names and values.
BUGS
Assumes that all names for the same color are consecutive in the rgb.txt file.
Because xcolors cannot read the server's color name database, the color names it uses may not match those in the server. This is most
likely to happen if xcolors is run from a remote host.
The program would be faster if it used gadgets instead of widgets for the color spots.
AUTHOR
Stephen Gildea, MIT X Consortium
X Version 11 3 October 1991 XCOLORS(1)