09-30-2012
Hi,
Thanks aahish,
But that I know. I was asking for the difference in "iname" and "name".
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am trouble parsing through a file with spaces in the filename. I need to grab "supportIDPS/SCM/windows_install/file groups/dds.fgl" and then do a md5sum on it. I am using sh.
Any help is appreciated.
Here is an example of the input file:
7eedbc9f7902bf4c1878d9e571addf9a ... (4 Replies)
Discussion started by: jekl5
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I grep for a pattern in a list of files.
"grep -i -l $pattern *.datx*"
it may give me n number of files.
say for eg, it gives me 2 files.
lock_eicu_20071228_00000000.dat_20071228_05343100
lock_eicu_20080501_00000000.dat_20080501_05343900
out of these 2 files I need to get the... (7 Replies)
Discussion started by: prsshini
7 Replies
3. Shell Programming and Scripting
I have to to read files simultaneously in two nested loops,but am getting error can anyone do the needful.
useridFile=userIds.txt
fname=kiran.txt
exec<$useridFile
while read line
do
echo "User IDs are..$line"
USER_ID=$line
REMOTE_DIR_LOCATION="/home/test/$USER_ID"
SOURCE_DIR=$USER_ID... (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
4. UNIX for Dummies Questions & Answers
I am using the following code to read filename from the directory:
for i in ` ls $inputDir | grep $partialName*.csv`
do
echo $i
done
But the echo is giving me the following:
ls | grep cm_ctx*.csv instead of the full filename "cm_ctx_2009_07_15_17_18.csv"
Any ideas anyone? I... (2 Replies)
Discussion started by: khanvader
2 Replies
5. UNIX for Dummies Questions & Answers
Im trying to set a filename to a variable and then read the file in using the variable but im getting a syntax error. any ideas?
#!/bin/bash
function scanFile()
{
while read $1
do
echo $filename
done
}
file1=report.log
scanFile() $file1 (3 Replies)
Discussion started by: magnia
3 Replies
6. Shell Programming and Scripting
Hi,
I am searching for a file named "Backup.txt" but I don't know in which directory it is.
Can someone tell me, how I can search recursiv in all directories and subdirectories?
thanks (2 Replies)
Discussion started by: ABE2202
2 Replies
7. Shell Programming and Scripting
I need to construct a command that finds directories which contains more than n matches of a certain filename.
E.g. I have many directories at different locations and want to find all directories that has 2 or more .dat-files.
I thought of using find and maybe the exec parameter to issue an... (5 Replies)
Discussion started by: odyssey
5 Replies
8. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I want to read in a file, and plot the data in matlab. However, I do not like hardwiring filenames into my codes, so I always give the user the option to specify what the filename is. I am pretty inexperienced with matlab, so I have no... (0 Replies)
Discussion started by: ds7202
0 Replies
9. Shell Programming and Scripting
Hi Guys,
I have the following input.
test_junk_file__20120210092009.txt
latest_file__20120210092009.txt
side_load_junk_file__20120210092009.txt
I need to exclude the timestamp part from the file.
so, the output should be as follows.
test_junk_file.txt
latest_file.txt... (7 Replies)
Discussion started by: mac4rfree
7 Replies
10. UNIX for Dummies Questions & Answers
Can this be done and if yes how?
I have 10 directories that end with the name 'cuff'
eg dir1-cuff , dir2-cuff
All these directories have a file named xyz.gtf
How do I run the same code for each directory and print an output inside the directory
something like
for dir in *cuff... (3 Replies)
Discussion started by: newbie83
3 Replies
LEARN ABOUT DEBIAN
iscsid
ISCSID(8) Linux Administrator's Manual ISCSID(8)
NAME
iscsid - Open-iSCSI daemon
SYNOPSIS
iscsid [OPTION]
DESCRIPTION
The iscsid implements the control path of iSCSI protocol, plus some management facilities. For example, the daemon could be configured to
automatically re-start discovery at startup, based on the contents of persistent iSCSI database.
OPTIONS
[-c|--config=]config-file
Read configuration from config-file rather than the default /etc/iscsi/iscsid.conf file.
[-i|--initiatorname=]iname-file
Read initiator name from iname-file rather than the default /etc/iscsi/initiatorname.iscsi file.
[-f|--foreground]
run iscsid in the foreground.
[-d|--debug=]debug_level
print debugging information. Valid values for debug_level are 0 to 8.
[-u|--uid=]uid
run under user ID uid (default is the current user ID)
[-g|--gid=]gid
run under user group ID gid (default is the current user group ID).
[-n|--no-pid-file]
do not write a process ID file.
[-p|--pid=]pid-file
write process ID to pid-file rather than the default /var/run/iscsid.pid
[-h|--help]
display this help and exit
[-v|--version]
display version and exit.
FILES
/etc/iscsi/iscsid.conf
The configuration file read by iscsid and iscsiadm on startup.
/etc/iscsi/initiatorname.iscsi
The file containing the iSCSI initiatorname and initiatoralias read by iscsid and iscsiadm on startup.
/etc/iscsi/nodes
Open-iSCSI persistent configuration database
SEE ALSO
iscsiadm(8)
AUTHORS
Open-iSCSI project <http://www.open-iscsi.org/>
Alex Aizman <itn780@yahoo.com>
Dmitry Yusupov <dmitry_yus@yahoo.com>
July 2005 ISCSID(8)