Search Results

Search: Posts Made By: SeanWuzHere
19,973
Posted By SeanWuzHere
Right, but the thing I don't get is why is there...
Right, but the thing I don't get is why is there so many? For instance, I can see the reasoning behind having one default one and then maybe a second one for the user account. But like bash for...
19,973
Posted By SeanWuzHere
Shell initialization files
As you know, when a user logs in, the shell reads the initialization files in an order something like below...

###################
Bourne Shell
/etc/profile > $HOME/.profile

Bash Shell...
4,000
Posted By SeanWuzHere
Whoo hoo! Finally after working on this all day I...
Whoo hoo! Finally after working on this all day I finished it. I feel so accomplished now. :D


#!/bin/bash
# Program: myrm

if [ "$#" -le 0 ]
then
echo "Not enough arguments"
...
4,000
Posted By SeanWuzHere
Yeah,.. I guess when we are first learning...
Yeah,.. I guess when we are first learning something people give us stupid questions to figure out. LOL. Believe me,.. I have way better things I'd rather spend my Saturday night doing but I have to...
4,000
Posted By SeanWuzHere
Yeah. Something like that. Here is the code I...
Yeah. Something like that. Here is the code I have so far for the program. It kinda sorta works but either I'm doing something wrong or it's missing something or I dunno.



#!/bin/bash
#...
4,000
Posted By SeanWuzHere
rm question
I want to use the rm command to delete files in a directory. But I want to be able to set a variable that says how many arguments it will delete. So for instance, if I set a variable to null,.. (i.e....
3,670
Posted By SeanWuzHere
Thanks man! That is awesome! Thank you so much. ...
Thanks man! That is awesome! Thank you so much. :)
3,670
Posted By SeanWuzHere
Btw,.. for the record, here is what I have so...
Btw,.. for the record, here is what I have so far:

#!/bin/bash
# Program: uncomp

filelist=

while [ "$#" -ge 1 ]
do
filelist="$filelist $1"
shift
done

for var in...
3,670
Posted By SeanWuzHere
Having trouble writing a basic shell program
Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take...
1,536
Posted By SeanWuzHere
Oh wow!! You are amazing! Thank you soooooo much!...
Oh wow!! You are amazing! Thank you soooooo much! I don't think I would've ever figured that out. Now I'll have to go back with what little I know and see if I can figure out exactly how that code...
1,536
Posted By SeanWuzHere
awk script
Hello,..

I'm new to UNIX and been learning a lot but still have a lot to learn. I've been trying to figure this one out but I'm stumped. I'm trying to write an awk script for a file that has 5...
Showing results 1 to 11 of 11

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