I'm using sed for Windows at a WinNT command prompt. Wrapping the expressions with single quotes doesn't work. I have to use double quotes. Is this the norm for the Windows implementation? (2 Replies)
Hello, I'm trying to use grep or egrep to exclude a whole range of characters but how do I exclude both a single and a double quote.
It might be easier to say how do I use grep to find both single and double quotes.
grep ' ' " ' file
grep detects the first single quote within my... (4 Replies)
I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example,
$ ITSME=itsme
$ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME"
itsme
$ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME'
itsyou
$... (3 Replies)
Hi,
I am trying to write the following command as an alias in my .bashrc file.
bjobs -u all | awk '{if (NR > 1) {username++;}}END{{print"\nJOBS BY USER:\n"} for (i in username) {print username,i;}{print"\n Total Jobs=",NR-1,"\n" }}'
The command simply puts how many jobs each user is... (2 Replies)
Hi guys, I have a sed line in double quotes which works fine, but I want it to be in single quotes
here is the sed line
sed "/abc_def/s/\'.*\'/\'\${abc_def}\'/"
can some one give the equivalent to the above script in single quotes
Thanks a ton (5 Replies)
Unix superusers,
I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
Hi i have to insert the below line into a specific line number of another file
export MBR_CNT_PRCP_TYPE_CODES_DEL="'01','02','04','05','49','55','UNK'"
I have passed the above line to a variable say ins_line. I have used below command to perform the insert
awk 'NR==3{print "'"${ins_line}"'"}1'... (1 Reply)
# echo 'export HISTFILE=/var/log/history/history_$(uname -n)_$(date +%Y:%b:%d:%H:%M)_$(who am i | awk '{print \$1}')' >> new_file
#
# cat new_file
export HISTFILE=/var/log/history/history_$(uname -n)_$(date +%Y:%b:%d:%H:%M)_$(who am i | awk {print $1})
#
Now how to echo the quotes around the... (2 Replies)
Hi,
Trying to change the prompt. I have the following code.
export PS1='
<${USER}@`hostname -s`>$ '
The hostname is not displayed
<abc@`hostname -s`>$ uname -a
AIX xyz 1 6 00F736154C00
<adcwl4h@`hostname -s`>$
If I use double quotes, then the hostname is printed properly but... (3 Replies)
Hi Froum.
I have tried in vain to find a solution for this problem - I'm trying to replace any double quotes within a quoted string with a single quote, leaving everything else as is.
I have the following data:
Before:
... (32 Replies)
Discussion started by: pchang
32 Replies
LEARN ABOUT DEBIAN
mincextract
MINCEXTRACT(1) MINC User's Guide MINCEXTRACT(1)NAME
mincextract - dump a hyperslab of MINC file data
SYNOPSIS
mincextract [options] mincfile
DESCRIPTION
mincextract dumps a chunk of MINC file data to standard output in the format of your choice.
OPTIONS -ascii Write out data as ascii strings (default)
-byte Write out data as 8-bit integers
-short Write out data as 16-bit integers
-int Write out data as 32-bit integers
-long Superseded by -int
-float Write out data as single precision floating-point values
-double
Write out data as double precision floating-point values
-filetype
Write out data in the type of the file
-signed
Write out signed data (applies only to integer types)
-unsigned
Write out unsigned data (applies only to integer types)
-range low high
Specify the range of output values
-normalize
Normalize integer pixel values to file max and min (Default)
-nonormalize
Turn off pixel normalization
-image_range low high
Specify the range of real image values for normalization
-image_minimum min
Specify the minimum real image value for normalization
-image_maximum max
Specify the maximum real image value for normalization
-start indexvector
Specifies corner of hyperslab (C conventions for indices). Indices are either separated by spaces (enclosed by quotes) or commas
(no quotes required).
-count indexvector
Specifies edge lengths of hyperslab to read. Indices are either separated by spaces (enclosed by quotes) or commas (no quotes
required).
-positive_direction
Flip images to always have positive direction.
-negative_direction
Flip images to always have negative direction.
-any_direction
Do not flip images (Default).
+xdirection
Flip images to give positive xspace:step value (left-to-right).
-xdirection
Flip images to give negative xspace:step value (right-to-left).
-xanydirection
Don't flip images along x-axis (default).
+ydirection
Flip images to give positive yspace:step value (post-to-ant).
-ydirection
Flip images to give negative yspace:step value (ant-to-post).
-yanydirection
Don't flip images along y-axis (default).
+zdirection
Flip images to give positive zspace:step value (inf-to-sup).
-zdirection
Flip images to give negative zspace:step value (sup-to-inf).
-zanydirection
Don't flip images along z-axis (default).
-help Print summary of command-line options and exit.
-version
Print the program's version number and exit.
AUTHOR
Peter Neelin
COPYRIGHTS
Copyright (C) 1993 by Peter Neelin
SEE ALSO minctoraw(1)
$Date: 2004-05-20 21:52:08 $ MINCEXTRACT(1)