08-06-2014
I compulsively quoute variable for just this reason in real code but got lazy in my debug code.
Thanks. I wish there was a smilie for kicking oneself . . .
Mike
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
"Is there any substituation of last command or script syntax which can be used as a user. As far I know the "last" command is being used to display information about previous logins. A member of adm group or the user adm can execute it only.
Thanks in advance for your usual help.
Ghazi (6 Replies)
Discussion started by: ghazi
6 Replies
2. Solaris
Hi.. Everyone...
Kindly consider following :
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Mon Nov 3 19:30:50 2008 from xxxxxxxxxxx
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
Sourcing //.profile-EIS.....
#
#
... (3 Replies)
Discussion started by: Reboot
3 Replies
3. Shell Programming and Scripting
Hi,
What is the actual difference between these two? Why the following code works for process substitution and fails for command substitution?
while IFS= read -r line; do echo $line; done < <(cat file)executes successfully and display the contents of the file
But,
while IFS='\n' read -r... (3 Replies)
Discussion started by: royalibrahim
3 Replies
4. UNIX for Dummies Questions & Answers
I know this script is crummy, but I was just messing around.. how do I get sed's insert command to allow variable expansion to show the filename?
#!/bin/bash
filename=`echo $0`
/usr/bin/sed '/#include/ {
i\
the filename is `$filename`
}' $1
exit 0 (8 Replies)
Discussion started by: glev2005
8 Replies
5. UNIX for Dummies Questions & Answers
Hey, guys!
Trying to research this is such a pain since the read command itself is a common word. Try searching "unix OR linux read command examples" or using the command substitution keyword. :eek:
So, I wanted to use a command statement similar to the following.
This is kinda taken... (2 Replies)
Discussion started by: ProGrammar
2 Replies
6. Shell Programming and Scripting
Hello Folks,
how to write a command on vi that allow to repeat last substitution command?
Here what I want to do :
1
2
3
1
2
3
1
2
3
:.,+2s/\n/ /And I obtain :
1 2 3
1
2
3
1 (5 Replies)
Discussion started by: gogol_bordello
5 Replies
7. Shell Programming and Scripting
echo "abc 123" | sed 's/*/& &/g'
output:
a b c 123 123
Why there are spaces between the "abc" letters?
echo "abc 123" | sed 's/*/&&/'
output:
abc 123
Why the regex in the above script does not match anything? I thought * should match 123 in any case.
---------- Post updated at 08:25... (3 Replies)
Discussion started by: kevintse
3 Replies
8. Shell Programming and Scripting
Oracle Linux 5.6, 64-bit
Given the following snippet
wrkvar=`sqlplus -s / as sysdba <<EOF
set echo off feedback off head off trimsp on
select count(*) from v\$parameter
where name in ('db_file_name_convert','log_file_name_convert')
and value is not null;
EOF`
echo wrkvar=$wrkvarProduces... (2 Replies)
Discussion started by: edstevens
2 Replies
9. Shell Programming and Scripting
Hi Gurus,
I am a little bit confused by the sed command.
my file is below
cat sample
aaa
bbb
ccc
ddd
eee
fff
ggg
hhh
iii
below is command and output. (6 Replies)
Discussion started by: ken6503
6 Replies
LEARN ABOUT DEBIAN
fssync-debug_callback
FSSYNC-DEBUG_CALLBACK(8) AFS Command Reference FSSYNC-DEBUG_CALLBACK(8)
NAME
fssync-debug_callback - Breaks callbacks for a volume (FSYNC_VOL_BREAKCBKS opcode)
SYNOPSIS
fssync-debug callback -volumeid <volume ID>
[-partition <exact partition name>]
[-reason <sync protocol reason code>]
[-programtype <program type code>]
[-help]
fssync-debug ca -v <volume ID>
[-pa <exact partition name>]
[-r <sync protocol reason code>]
[-pr <program type code>]
[-h]
fssync-debug cbk -v <volume ID>
[-pa <exact partition name>]
[-r <sync protocol reason code>]
[-pr <program type code>]
[-h]
DESCRIPTION
The fssync-debug callback command breaks callbacks for a volume.
OPTIONS
-volumeid <volume ID>
Specifies the numeric volume ID. Volume names are not permitted.
-partition <exact partition name>
Specifies the exact partition name (e.g. /vicepa). Abbreviations are not permitted.
-reason <sync protocol reason code>
Specifies numeric sync protocol reason code. Available codes are listed in OpenAFS source file src/vol/fssync_inline.h. For
SYNC_REASON_NONE, use -reason 0.
-programtype <program type code>
Specifies program type code. Permitted values are fileServer, volumeUtility, salvager, salvageServer, volumeServer and volumeSalvager.
PRIVILEGE REQUIRED
The issuer must have write access to the file server. Usually, this means that the issuer must be the local superuser "root" on the file
server machine.
SEE ALSO
fssync-debug_attach(8), fssync-debug_detach(8), fssync-debug_online(8), fssync-debug_offline(8), fssync-debug_leaveoff(8),
fssync-debug_error(8)
COPYRIGHT
Copyright 2010 Davor Ocelic <docelic@spinlocksolutions.com>
This documentation is covered by the IBM Public License Version 1.0. This man page was written by Davor Ocelic for OpenAFS, based on
documentation from Steven Jenkins, Tom Keiser and Simon Wilkinson.
OpenAFS 2012-03-26 FSSYNC-DEBUG_CALLBACK(8)