Yes, we can help you do that, but we need some examples
ie. input and expected output.
control file name control.ctl:
This will not always work, especially when you try to replace what are regex metacharacters.
hi guys,
Suppose you have 100 files in a folder and you want to replace all occurances of a word say "ABCD" in those files with "DCBA", how would you do
it ???
jatin (13 Replies)
Hi,
How do I parse/split lines (strings) read from a file and display the individual tokens in a shell script? Given that the length of individual lines is not constant and number of tokens in each line is also not constant.
The input file could be as below:
... (3 Replies)
I used the following script
cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done
and it worked fine for finding and replacing strings with names etc. in all files of the given path.
I'm trying to replace a string which consists of path (location of file)
... (11 Replies)
I have a rather complicated search and replace I need to do among several dozen files and over a hundred occurrences. My site is written in PHP and throughout the old code, you will find things like
die("Operation Aborted due to.....");
For my new design skins for the site, I need to get... (2 Replies)
I have app log files that need to be cleansed for readability, and my sed skills are not adequate.
Each line has a long multi-segment header, which I am trying to remove, example below:
: 2010.05.26 20:38:00.640--DatabaseSessionImpl(21447570)--Connection(26209441)--Thread(Thread)--SELECT... (4 Replies)
Hi All,
Im writing a shell script in which I want to get the folder names in one folder to be used in for loop.
I have used:
packsName=$(cd ~/packs/Acquisitions; ls -l| awk '{print $9}')
echo $packsName
o/p: opt temp user1 user2
ie. Im getting the output as a string.
But I want... (3 Replies)
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Hi all
This is my first post. Please bear with me with all my mistakes. I started learning shell since couple of days now and this might be quite basic for all, i want to search for files in a directory containing specific string and replace it with new string. The code i wrote is quite bulky... (2 Replies)
Hi
can someone help me to resolve the error
for this condition
if ] && ]; then
i am passing the values $k and $kkm
i am getting the error like "-: more tokens expected"
Thanks in Advance (5 Replies)
Good Evening Folks -
Happy Friday!
I have a need to replace a certain string in all .csv files from "0.00" to "#Missing" in my /app/hyp_app/files directory.
Does anyone have a script they use regularly that's rather quick in performance? My files are rather large so I'm looking for a... (5 Replies)
Discussion started by: SIMMS7400
5 Replies
LEARN ABOUT DEBIAN
xnbd-wrapper-ctl
XNBD-WRAPPER(8) System Manager's Manual XNBD-WRAPPER(8)NAME
xnbd-wrapper-ctl -- manage a xnbd-wrapper(8) super-server.
SYNOPSIS
xnbd-wrapper-ctl [--socket SOCKETPATH] [--add FILE] [--remove FILE] [--list]
DESCRIPTION
With the xnbd-wrapper-ctl command you can connect to a xnbd-wrapper control channel and instruct it to act as directed. You may pass cer-
tain commands as argument to the control program which are then forwarded, on your behalf, to the server instance.
OPTIONS
The following options are supported:
--add|-a FILE
Instruct the xnbd-wrapper to add the given FILE as exported xNBD device.
--help|-h
Display a short usage overview and exit
--list|-l
Connects to the xNBD wrapper and retrieves a list exported file names
--remove|-r INDEX
Instruct the xnbd-wrapper to remove the volume exported on INDEX from the list of exported xNBD devices.
--socket|-s SOCKETPATH
Connect to SOCKETPATH as xnbd-wrapper control sokcet. Default is /tmp/xnbd_wrapper.ctl.
SEE ALSO
xnbd-wrapper (1), xnbd-server (8).
AUTHOR
The NBD kernel module and the NBD tools have been written by Pavel Macheck (pavel@ucw.cz) and is now maintained by Paul Clements.
(Paul.Clements@steeleye.com).
The xNBD userland (client and server) have been written by Takahiro Hirofuchi (t.hirofuchi@aist.go.jp)
This manual page was written by Arno Toell (debian@toell.net) for the Debian GNU/Linux system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 2, as published by the
Free Software Foundation.
XNBD-WRAPPER(8)