Hi ,
I´m working on Solaris 9 SPARC and I´m writing a Script to mírror two disks..
I need to replace some text in a file ( /etc/vfstab ) .
For example:
/dev/dsk/c0t0d0s0 ==> /dev/md/dsk/d0
I just want to change the "/dev/dsk/" to "/dev/md/dsk/.
Thanks for your repsonse (5 Replies)
I'm trying to replace text in a file with text from a variable
I have the following in my script, but its not working:
#!/bin/ksh
echo "Enter the path to load scripts"
read x
echo "updating the templates"
sed "s/CHANGE_ME_TO_LOAD_PATH/"$x"/g" LoadFiles.sh > LoadFiles2.sh
I thought... (1 Reply)
Hi,
I have a situation where I want to replace some occurrences of ".jsp" into ".html" inside a text file.
For Example:
If a pattern found like <a href="http://www.mysite.com/mypage.jsp"> it should be retained.
But if a pattern found like <a href="../mypage.jsp"> it should be changed to... (4 Replies)
Hi,
I need to replace text in a file. Can someone help me write the proper sed command for this? My text file contains about a 100 lines of content. I want to replace the line containing
new_name = "#{options}-#{ENV}"
by, the following -
new_name = "#{options}-#{ENV}-#{rand(999)}"
... (1 Reply)
Hi,
I hope someone can help me out with the following:
I have a file with the following lines in it:
something /path/dir/my_-_file.01.ext sometext sometext
somethingelse /path/dir/my_-_file.02.ext sometext
something /path/dir/my_-_file.03.ext sometext some other text
And i want to... (3 Replies)
My apologies if this has been answered in a previous post. I've been doing a lot of searching, but I haven't been able to find what I was looking for. Specifically, I am wondering if I can utilize sed and/or awk to locate two strings in a file, and replace everything between those two strings... (12 Replies)
can anyone please help me in the below scenario:
File1:
Hello1
Hello1
i want to use sed to replace multiple occurances of Hello1 in file 1 to welcome.
Thanks a ton for the help (9 Replies)
Hi,
I would like to use sed to replace NA to x ('s/NA/x/g'), but only in the 5th column of the space delimited text file, nowhere else. How do I go about doing that? Thanks! (1 Reply)
I have a sample text format as given below
<Text Text_ID="10155645315851111_10155645333076543" From="460350337461111" Created="2011-03-16T17:05:37+0000" use_count="123">This is the first text</Text>
<Text Text_ID="10155645315851111_10155645317023456" From="1626711840902323"... (3 Replies)
Good Day Every one
I have a problem finding and replacing text in some large files that will take a long time to manually edit.
Example text file looks like this
#Example Large Text File
unix
linux
dos
squid
bind
dance
bike
car
plane
What im trying to do is to edit all the... (4 Replies)
Discussion started by: linuxjunkie
4 Replies
LEARN ABOUT DEBIAN
gifti_test
GIFTI_TEST(1) User Commands GIFTI_TEST(1)NAME
gifti_test - test reading/writing a GIFTI dataset
SYNOPSIS
gifti_test [...]
OPTIONS -help Show usage help.
-gifti_hist
Show giftilib history.
-gifti_ver
Show giftilib version.
-encoding TYPE
Set the data encoding for any output file.
TYPE = ASCII : ASCII encoding
TYPE = BASE64 : base64 binary
TYPE = BASE64GZIP : base64 compressed binary
-gfile OUTPUT
Write out dataset as gifti image.
-infile INPUT
Specify INPUT as the GIFTI dataset to read.
-no_data
Do not write out data.
-show Show final gifti image.
-slist LEN s0...
Restrict output to list of length LEN.
-verb VERB
Set verbose level.
EXAMPLES
1. read in a GIFTI dataset (verbose, show output?)
gifti_test -infile dset.gii
gifti_test -infile dset.gii -verb 3
gifti_test -infile dset.gii -show
2. copy a GIFTI dataset (check differences?)
gifti_test -infile dset.gii -gfile copy.gii
diff dset.gii copy.gii
3. copy a GIFTI data, but write out only 3 surf indices: 0,4,5
gifti_test -infile time_series.gii -gfile ts3.gii -slist 3 0 4 5
SEE ALSO
Website: http://www.nitrc.org/projects/gifti
AUTHOR
Richard Reynolds - SSCC, DIRP, NIMH, National Institutes of Health
This manual page was written by Michael Hanke <michael.hanke@gmail.com>, for the Debian project (but may be used by others).
gifti_test June 2010 GIFTI_TEST(1)