Search Results

Search: Posts Made By: drewrockshard
3,073
Posted By drewrockshard
Perl Text Manipulation
I'm in need of help for a project that I'm working on. I believe Perl would be the best way of handling the string manipulation, however, I've barely used perl, and I'm used to BASH scripting. ...
Forum: Linux 08-02-2009
3,143
Posted By drewrockshard
Printer Setup(s)
I'm so frustrated.

I have almost no experience with setting up printers and networking through Linux. That being said, I need some help. In fact, I don't even know if this setup is possible, and...
1,597
Posted By drewrockshard
magnia, Are you sure it is an issue with the...
magnia,

Are you sure it is an issue with the cut statement? I see you have another post open:

https://www.unix.com/unix-dummies-questions-answers/115360-comparing-variables.html

That if...
2,971
Posted By drewrockshard
No problem, man :)
No problem, man :)
5,248
Posted By drewrockshard
What do you mean you "got nothing"? You didn't...
What do you mean you "got nothing"? You didn't recieve an email? You didn't get anything returned to the prompt (you aren't suppose to).

Do you have a maillog so that we can see if there are any...
3,385
Posted By drewrockshard
I'm not sure if this pertains to you, however,...
I'm not sure if this pertains to you, however, the is some good information on what you are requesting. I'm not sure that you can do this in Solaris:

BigAdmin Xpert Session - Solaris 9 Early...
2,971
Posted By drewrockshard
It depends, again, on the distro. For...
It depends, again, on the distro.

For Redhat/CentOS (from package manager install):

/etc/init.d/httpd start

For Debian/Ubuntu (from package manager install):

/etc/init.d/apache2 start
...
5,248
Posted By drewrockshard
Straitsfan: Try the following: mailx -s...
Straitsfan:

Try the following:

mailx -s "email subject" emailaddresstosendto@domain.tld <<< "email message"
4,666
Posted By drewrockshard
You do something like the following: ...
You do something like the following:


SEARCH="$1"
find /data3/home/ -type f -name 'TRCansLog*.gz' |
while read filename
do
gzcat $filename | nawk -v fname=$filename '/'$SEARCH'/ {print...
2,971
Posted By drewrockshard
Which Distro of Linux? On most distro's you...
Which Distro of Linux?

On most distro's you can just use their corresponding package managers. You need to search the repos for each distro for the exacts.

Package managers for various Linux...
2,067
Posted By drewrockshard
It should. I tested it and it worked: # ls...
It should. I tested it and it worked:

# ls -l /opt/ | tr [a-z] [A-Z]
TOTAL 12
DRWXR-XR-X 9 ROOT ROOT 4096 JUL 17 12:45 VIRTUALBOX
DRWXR-XR-X 9 ROOT ROOT 4096 JUN 11 07:05 SPLUNK
DRWXR-XR-X 6...
3,828
Posted By drewrockshard
No problem man. Let me know if you need any help...
No problem man. Let me know if you need any help with the scripting part! :)
Forum: Open Source 07-22-2009
339,678
Posted By drewrockshard
VIM all the way.
VIM all the way.
2,067
Posted By drewrockshard
Like so: ls -l > aaaa | tr [a-z] [A-Z] <...
Like so:

ls -l > aaaa | tr [a-z] [A-Z] < aaaa
3,385
Posted By drewrockshard
rakeshawasthi is correct. Here's the...
rakeshawasthi is correct.

Here's the commands for your reference, since I have them.

This sets the file as "immutable":

chattr +i file
This unsets it:

chattr -i file
3,828
Posted By drewrockshard
First of all, I apologize for the lack of...
First of all, I apologize for the lack of "attention to detail". You stated the first 20 lines, not the last 20 lines. In this case, just to correct myself, it would be:

head -n 20 >> output.txt...
3,828
Posted By drewrockshard
Grep is a search utility. Obviously, you can use...
Grep is a search utility. Obviously, you can use it to return results from a file to text, and I use it for this from time to time. However, I believe you can go at this in a different way, that...
Forum: Linux 09-07-2008
3,438
Posted By drewrockshard
Thanks for the reply. Do you have any idea what...
Thanks for the reply. Do you have any idea what "tools" that I could use that pertain to the command line? This is a base install of CentOS 5.2. X is not installed. There is no GUI.

Thanks in...
Forum: Linux 09-05-2008
3,438
Posted By drewrockshard
Fetchmail Ate my inbox!
Hello All.

I was messing around with Fetchmail on a Test Email account. Here's what my fetchmailrc file looks like:


poll imap.gmail.com proto IMAP fetchall
ssl


When I ran this, it...
5,994
Posted By drewrockshard
Hey, If "work" is your current directory,...
Hey,

If "work" is your current directory, then you need to state this:

./menu ./ input

I've tested the script and it creates the input file. If the directory does not exist, it does not...
5,994
Posted By drewrockshard
Please supple the actual running of the script...
Please supple the actual running of the script (including arguments). For example:


./yourscript /root test.txt


That would mean that /root was $1 and test.txt is $2.

I also need to know...
122,928
Posted By drewrockshard
Another way, you could do the following: ...
Another way, you could do the following:


#!/bin/sh
cat sample1.txt | while read FILE
do
SUBSTRING=${FILE:0:3}
echo $SUBSTRING
done


Regards,
Drew
5,994
Posted By drewrockshard
Alright, here's some working code: #!/bin/sh...
Alright, here's some working code:

#!/bin/sh
choice=0
if [ $# -eq 1 -o $# -eq 2 ]; then
if [ -d $1 ];then
while [ $choice -ne 4 ]; do
clear
...
5,994
Posted By drewrockshard
It works for me - or at least I think it does. ...
It works for me - or at least I think it does. Can you be more specific on what you are having issues with? You have a few comments in the code, and it appears that you can issue the following:
...
4,233
Posted By drewrockshard
Aha! Wow. This works perfectly :). I wish I...
Aha! Wow. This works perfectly :). I wish I knew perl. Something I'll have to look into.

Thanks again.
Drew
Showing results 1 to 25 of 34

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