08-19-2015
Wasn't complaining, just new to this and trying different things.
Appreciate your help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi there
I'm getting a string from a sqlplus query, and I need to compare it with another string
Problem here, is that the string i get from query brings a 'carriage return' with it, and comparing throws always false value.
i need to delete all carriage retun charactres in string.
how... (6 Replies)
Discussion started by: viko
6 Replies
2. Shell Programming and Scripting
Hi friends
I need to return string value in functions
can anyone help me out to return string values rather than integer.
#!/bin/bash
add_a_user()
{
USER=$1
COMPANY=$2
shift; shift;
echo "Adding user $USER ..."
echo "$USER working in $COMPANY ..."
ret_type=YES
return... (1 Reply)
Discussion started by: kittusri9
1 Replies
3. Shell Programming and Scripting
Hi there
i have a script which will create unix user accounts. Id like to validate the entered string so that it is specifically 8 characters or less and consists of only ! not
Is there a way to validate a string against a regular expression.. i.e
size=`printf "$var | wc -m`
... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
4. UNIX for Dummies Questions & Answers
I have a folder of scripts:
bash:/folderpath/> ls
beginFile.sh
beginFileBackup.sh
beginAnother.sh
beginAnotherBackup.sh
beginJunk.sh
beginJunkBackup.sh
I'd like to be able to call just one (beginFile.sh) using this type of scheme:
#Run the beginFile script without the word "Backup" in... (1 Reply)
Discussion started by: mrwatkin
1 Replies
5. Shell Programming and Scripting
function blah {
return "string"
}
it keeps saying string: not found
How can i do this guys? Because I'm trying to do something like this
function print_daemon_options {
echo "Start Daemons - Please enter one or a combination of the following:"
if isDatasubEnabled &&... (11 Replies)
Discussion started by: pyscho
11 Replies
6. Shell Programming and Scripting
Gurus,
I have a files from where lines are like following
<ns0:ccid>123456789</ns0:ccid>
<ns0:ccid>1234
56789</ns0:ccid>
I would like to grep any number which will be as below (with carrige return): As 123456789 any number so I have to use the regular expression
<ns0:ccid>1234... (3 Replies)
Discussion started by: thepurple
3 Replies
7. Shell Programming and Scripting
Hello,
Awk seem treat the pattern as regular expression, how can awk search not using regular expression? e.g. just represent for "", not "A" or "a" . I don't want to add backslash . (2 Replies)
Discussion started by: 915086731
2 Replies
8. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
9. Shell Programming and Scripting
Hi,
temp="/usr=25,/usr/lib=12"
How to get only dir names with out values.
I tried like below but no use.
tmp=${temp##*,}
echo $tmp
o/p:
/usr/lib=12
expected o/p:
/usr /usr/lib ---> in array (13 Replies)
Discussion started by: munna_dude
13 Replies
10. Shell Programming and Scripting
Hi,
I am writing a script in awk trying to replace strings that are math expressions with their result.
For example, I have a file that looks like this:
5-1
32/8-1
4*12
17+1-3
I would like to get the following output:
4
3
48
15
I tried doing it the following way (using the "bc"... (8 Replies)
Discussion started by: avi.levi
8 Replies
LEARN ABOUT LINUX
chainsaw
KNIFE(8) System Manager's Manual KNIFE(8)
NAME
knife, axe, cutter, chainsaw - tools to improve network performance via SNIP
SYNOPSIS
knife is used to control the network via Sysadmin Network Interrupt Protocol [SNIP].
DESCRIPTION
Experience has shown that suitable application of these tools on the network can lead to improved network performance, as busy segments of
useless traffic can be isolated from the important stuff (and the rest of the world, for that matter). However, care must be taken, other-
wise lusers will be complaining about "network downtime".
knife vs LART
While knife can be used as a replacement for LART, the reverse is not generally true; while blunt trauma works wonders on lusers, it tends
to be ineffective on cables. Also, note that using knife or one of it's associates as a LART will probably lead to higher level assault
charges than one would get with a standard LART.
chainsaw, the power SNIP tool
chainsaw is a version of knife that makes quick work of almost any problem. It also has a correspondingly higher potential for causing
unintentional damage. Handle with care.
FILES
In its normal application to cables, knife uses no files. If applied to a disk, many files may be affected; see mkfs(8).
SEE ALSO
lart(8)
BUGS
You may be required to fix things eventually.
RESTRICTIONS
Bosses and the legal system may take a dim view of overenthusiastic application of these tools.
AUTHOR
While the origin of the first knife remains a mystery, this man page was written by Kurt Hockenbury <kurt@something.com>. He disclaims
responsibility for any actions inspired by this man page.
HISTORY
SNIP was first described on alt.sysadmin.recovery by J.D. Falk <jdfalk@cais.cais.com> as a followup to a post by <martin@angela.ctrl-
c.liu.se>.
KNIFE(8)