Search Results

Search: Posts Made By: Astudent
6,933
Posted By Astudent
Neo, I am not familar with wrapper scripts. ...
Neo,
I am not familar with wrapper scripts.
I was thinking a longer way of doing things would be do write a bunch of if, elifs and write something like if
if [ "$1" -eq January ]
then
cal 1...
1,728
Posted By Astudent
Neo, I am not familar with wrapper scripts. I...
Neo,
I am not familar with wrapper scripts.
I was thinking a longer way of doing things would be do write a bunch of if, elifs and write something like if
if [ "$1" -eq January ]
then
cal 1...
6,933
Posted By Astudent
Neo, I know that much, but I meant so I...
Neo,
I know that much, but
I meant so I could type cal mar, or cal March.
Any suggestions.

Thanks,

theA
4,865
Posted By Astudent
I have this idea. I have a variable for the...
I have this idea.
I have a variable for the start of someones log in time,
(start=`who am i | cut -c30-34`)
and a variable for the log out time or present time,
(end=`date | cut -c12-16`)
but...
6,933
Posted By Astudent
I am trying to configure the cal command to...
I am trying to configure the cal command to recognize the month names.
When you type: cal - you get the calander for the current month of the current year.

Is there a way of making the system...
5,892
Posted By Astudent
Hi, I want to list all the words in my file on...
Hi,
I want to list all the words in my file on a separate line.
I am using the bourne(sh)/bourne again shell(bash).

Thanks,

theA
5,913
Posted By Astudent
Hi, I'm back! Ok, I'm trying to use a...
Hi,
I'm back!
Ok, I'm trying to use a variable with a value of a unix command.
So when I try a=`ls`, then echo $a I get the correct answer.
But when I try it with a pipe:
a=`ls | wc -c`, then...
2,356
Posted By Astudent
This is wat I have, I used "elif" before but it...
This is wat I have, I used "elif" before but it worked the same. Ok the first 2 if statements work but the last 2 don't. For example here are the files in your dir:
10 11.txt 12 14.txt

When...
9,118
Posted By Astudent
Another book I saw while browsing at Chapters was...
Another book I saw while browsing at Chapters was

"Optimizing Unix for Performance" -Author Amir H. Majidimehr

Seemed very interesting, I was just wondering if anyone has read this book and...
13
README: Unix Books
82,372
Posted By Astudent
Another book I saw while browsing at Chapters was...
Another book I saw while browsing at Chapters was

"Optimizing Unix for Performance" -Author Amir H. Majidimehr

Seemed very interesting, I was just wondering if anyone has read this book and...
2,356
Posted By Astudent
Actually this isn't really working: I used: ...
Actually this isn't really working:

I used:

if [ ! -e "$1" ]
then
echo "Database file \"$1\" does not exist!"
exit 1
elif [ ! -e "$1" ]
then
echo "Database file \"$1\" does...
2,559
Posted By Astudent
Hi, I was wondering how everyone has gotten...
Hi,
I was wondering how everyone has gotten good their training in unix. Did anyone specialize in college/university or take a course at a computer institute.
At my college you can't really...
2,356
Posted By Astudent
Hi again, OK - I figured it out on my own, this...
Hi again,
OK - I figured it out on my own, this is funny when this happens!
if [ "-f" = "*txt" ]
then
echo
fiBut thanks for trying!

added code tags for readability --oombera
2,356
Posted By Astudent
Hi, First off I usually script in the bash...
Hi,
First off I usually script in the bash shell.
Ok, in my script I am checking to see if the filename has a .txt extension.
So I was trying:
if [ ! -e "*txt" ]
then
echo "Must contain a...
2,892
Posted By Astudent
Neo - I know that part - that's what I'm using...
Neo - I know that part - that's what I'm using for my other "if" statements.
I just don't know how to have it recognize if the file is in my dir.

Usually I prompt so when you echo the question...
2,892
Posted By Astudent
Hi, I am writig this script and usually I have...
Hi,
I am writig this script and usually I have prompts like:
echo "Enter file name: "
read "$filename"

So later when I want verify the name to something I can:
if [ "$filename" = "penski" ]...
3,849
Posted By Astudent
I just started reading about sendmail. What I...
I just started reading about sendmail.
What I wanted to know is - is it possible to have an auto response for my hotmail account/@home/sympatico account -
or? As I stated I just recently started...
13
README: Unix Books
82,372
Posted By Astudent
Thanks everyone, and Neo please post the...
Thanks everyone, and Neo please post the networking books as well, and as many as you can that are worth posting about.
Keep them coming!

theA
9,118
Posted By Astudent
Thanks everyone, and Neo please post the...
Thanks everyone, and Neo please post the networking books as well, and as many as you can that are worth posting about.
Keep them coming!

theA
13
README: Unix Books
82,372
Posted By Astudent
Another good shell programming book I saw on my...
Another good shell programming book I saw on my quest on
getting the best unix shell programming book is:
"Linux and Unix Shell Programming" by Tansley David
<CENTER>
<A...
9,118
Posted By Astudent
Another good shell programming book I saw on my...
Another good shell programming book I saw on my quest on
getting the best unix shell programming book is:
"Linux and Unix Shell Programming" by Tansley David
...
13
README: Unix Books
82,372
Posted By Astudent
I'm just looking for really good unix book on...
I'm just looking for really good unix book on programming in all shells, and system adminstrator books, and well as just all around really good books on unix.
I know the "Unix Shell Programming"...
9,118
Posted By Astudent
I'm just looking for really good unix book on...
I'm just looking for really good unix book on programming in all shells, and system adminstrator books, and well as just all around really good books on unix.
I know the "Unix Shell Programming"...
2
$#
2,231
Posted By Astudent
In my script let's call it myfile, I want to have...
In my script let's call it myfile, I want to have an option where the script changes the time format(military to standard). But to have the script change - you run the script but instead of at the...
2,656
Posted By Astudent
This is sort of the same question I recently...
This is sort of the same question I recently asked:
In my script I'm outputing lines of various symbols.
When I run my script it prints the information vertically.
I need my script to print out...
Showing results 1 to 25 of 42

 
All times are GMT -4. The time now is 12:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy