Sponsored Content
Full Discussion: "here documents" and /tmp
Operating Systems Solaris "here documents" and /tmp Post 62776 by Perderabo on Saturday 19th of February 2005 02:00:49 PM
Old 02-19-2005
Just do something like...
Code:
filename=/tmp/jhjHkkkGRrqxbmXppoujuuyttrjfeJgfgg$$
echo "this
that
the other
last line" > $filename
program < $filename
rm $filename

*dang* vgersh99 beat me to it... I gotta type faster... Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Shell Programming and Scripting

Script for delete tmp files older than 15 days and owned by "xxx" id

Hi All , I want to delete files from /tmp directory created by "xxxx" id. because i got the list says more than 60 thousand files were created by "xxxx" id since 2002. The /tmp directory has lot of files created by different user ids like root,system etc.. But, i need a script to... (2 Replies)
Discussion started by: vparunkumar
2 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

5. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

6. Solaris

Solaris 10 error "-sh: /tmp/outfile: cannot create"

Hello, Each time a user log on to host, they receive below error: -sh: /tmp/outfile: cannot create Example: $ ssh host user@host's password: Last login: Fri Dec 4 08:17:28 2015 from client.ref |-----------------------------------------------------------------| -sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies

7. Shell Programming and Scripting

Issue with rsync: failed to set times on "/tmp/.": Not owner (1)

Hi, Here is my source host and folder details. $ hostname source-host $ id uid=600000208(src-user) gid=64688(src-user) groups=64688(src-user) $ ls -ltrd /web/Trn_File/data/ drwxrwxrwx 3 src-user src-user 4096 Feb 7 15:27 /web/Trn_File/data/ $ ls -ltrd /web/Trn_File/data/* drwxrwxrwx 8... (1 Reply)
Discussion started by: mohtashims
1 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
DCM2NII(1)							   User Commands							DCM2NII(1)

NAME
dcm2nii - convert DICOM or PAR/REC image into the NIfTI format SYNOPSIS
dcm2nii <options> <sourcenames> OPTIONS
-a Anonymize [remove identifying information]: Y,N = Y -b load settings from specified inifile, e.g. '-b /etc/mricron.ini' -c Collapse input folders: Y,N = N -d Date in filename [filename.dcm -> 20061230122032.nii]: Y,N = Y -e events (series/acq) in filename [filename.dcm -> s002a003.nii]: Y,N = Y -f Source filename [e.g. filename.par -> filename.nii]: Y,N = Y -g gzip output, filename.nii.gz [ignored if '-n n']: Y,N = Y -i ID in filename [filename.dcm -> johndoe.nii]: Y,N = Y -n output .nii file [if no, create .hdr/.img pair]: Y,N = Y -o Output Directory, e.g. '/tmp' (if unspecified, source directory is used) -p Protocol in filename [filename.dcm -> TFE_T1.nii]: Y,N = Y -r Reorient image to nearest orthogonal: Y,N -s SPM2/Analyze not SPM5/NIfTI [ignored if '-n y']: Y,N = N -v Convert every image in the directory: Y,N = Y -x Reorient and crop 3D NIfTI images: Y,N = N You can also set defaults by editing /home/michael/.dcm2nii/dcm2nii.ini EXAMPLES
dcm2nii -a y /home/joe/Documents/dcm/IM_0116 AUTHOR
dcm2nii was written by Chris Rorden. This manual page was written by Michael Hanke <michael.hanke@gmail.com>, for the Debian project (but may be used by others). SEE ALSO
mricron(1) MRIcron Homepage: http://www.cabiatl.com/mricro/mricron/ Michael Hanke April 2010 DCM2NII(1)
All times are GMT -4. The time now is 06:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy