9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to return a value from the function. the value will be the output from cat command which uses random fucntion.
var1=$(`cat /dev/urandom| tr -dc 'a-zA-Z0-9-!%&()*+,-/:;<=>?_'|fold -w 10 | head -n 1`)
echo "value is" var1
var=$?... (2 Replies)
Discussion started by: Nandy
2. Shell Programming and Scripting
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3. UNIX for Dummies Questions & Answers
I am trying to pull a formatted date back from the function find_end_day and pass it into the function export_dealer_changes. When I try the above the variable date_found is empty. I have tried various... (3 Replies)
Discussion started by: treemyf
4. Shell Programming and Scripting
#convert memory to MB
let "mmsize_a= ($mmsize)/256"
let "mminuse_a= ($mminuse)/256"
let "mmfree_a= ($mmsize_a -$mminuse_a)"
let "mmfreepercent= (($mmfree_a)/($mmsize_a))*100"
echo "\n\n######################" >>$sndFile
echo "\n$sysName Total Memory usage"... (3 Replies)
Discussion started by: Daniel Gate
5. Shell Programming and Scripting
I am trying to grep a .txt file for a word. When I hit enter, it returns back to $
The file is 4155402 in size and is named in this way:
I use this command, being in the same directory as the file:
grep -i "invalid" *_eveningtimes_done_log.txt
... (16 Replies)
Discussion started by: DallasT
6. UNIX for Dummies Questions & Answers
Is there a command where I can pipe my grep into it and it will output it with spaces rather than returns?
I want to turn
prompt$ grep blah file
prompt$ grep blah file | someCommand
blah blah (1 Reply)
Discussion started by: mrwatkin
7. UNIX for Dummies Questions & Answers
can u tell me what is the meaning of exit(0),exit(1),exit(2)
what is diff amonng these.
Amit (1 Reply)
Discussion started by: amitpansuria
What is the difference between using exit(0) and exit(1) to exit a program? Which should I use? (9 Replies)
Discussion started by: enuenu
9. UNIX for Dummies Questions & Answers
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747