Hi,
I have a file with about 60 lines of path:
app-defaults/boxXYZ.......
I want to change this to /my/path/goes/here/app-defaults/boxXYZ, but of course vi doesn't like the regualr :s/old/new/ command.
Is there any other quick way to do this?
Thanks ;) (2 Replies)
Hi:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
I have a script in which i want to print absolute path of the same script irrespective of path from where i run script.
I am using
test.sh:
echo "pwd : `pwd`"
echo "script name: $0"
echo "dirname: `dirname $0`"
when i run script from /my/test/dir/struct as ../test.sh the output i... (10 Replies)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Hi All,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
I want to pattern match only path part from below and replace them with new path string.
LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so
JkWorkersFile /fldrA/fldrBaf/fldrCaa/config/OHS/ohs1/workers.properties
JkLogFile... (4 Replies)
Hi experts,
I have multiple file names ending with .jsp located in $SOME_DIR, $SOME_DIR/f1/,$SOME_DIR/f2/test,$SOME_DIR/f3/fa
and there are equivalent class files in $SOME_DIR/WEB-INF/classes/_pages,$SOME_DIR/WEB-INF/classes/_pages/_f1,... (0 Replies)
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
i have make file which i try to make them generic
but it keeps to compline it missing include directory
this is the makefile :
CXX=g++
CPPFAGS= -Wall -O0 -g -std=c++14
INCLUDES = -I/home/vagrant/libuv/include -Isrc
LIBS_DIRS = -L/home/vagrant/libuv/build
LDFLAGS=... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT REDHAT
chkfontpath
CHKFONTPATH(8) Red Hat, Inc. CHKFONTPATH(8)NAME
chkfontpath - simple interface for adding, removing, and listing directories in the X font server's path
SYNOPSIS
chkfontpath [-lqfh] [-a name of directory to add] [-r name of directory to remove]
DESCRIPTION
chkfontpath provides a simple method of configuring the directories contained in the X font server's path. As of Red Hat 6.0, all fonts in
X are served via this separate font server process, not through the main X server process. This speeds up font rendering, and also allows
use of font servers which are not running on the local host.
chkfontpath is mainly used by rpm in its %post and %postun sections to add and remove new directories to the server's config file at
installation and de-installation time of packages containing fonts.
-a, --add=name of directory to add
Add a directory to the font path.
-r, --remove=name of directory to remove
Remove a directory from the font path.
-l, --list
List all directories in the font path.
-q, --quiet
Quiet operation; don't display any output to the screen, even when there is an error during operation.
-f, --first
Requires usage of the add command; puts the specified directory first in the font path, rather than last.
-h, --help
Show detailed help on the command line.
When directories are added to the path, some sanity checking is performed to make sure you are not adding a directory without the file
fonts.dir contained in it, which the server needs to be able to render fonts properly. When a path is succesfully added or removed, the
xfs process is restarted if it is currently running.
RETURN CODES
chkfontpath returns 0 on success, or 1 on error.
FILES
/etc/X11/fs/config
Configuration file for the X font server (xfs).
SEE ALSO xfs(1),fslsfonts(1)AUTHOR
Written by Preston Brown <pbrown@redhat.com>
REPORTING BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 1999-2001 Red Hat, Inc. All rights reserved.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTIBILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
4th Berkeley Distribution Thu Jan 18 2001 CHKFONTPATH(8)