Search Results

Search: Posts Made By: msb65
2,469
Posted By msb65
Hi Corona688, Thanks for the reply. The...
Hi Corona688,

Thanks for the reply. The files/directories I am attempting to modify are not system ones, just simply some that I have created. I have been playing around with their permissions,...
2,469
Posted By msb65
Reset file permissions
Hi,

Is there a command I can execute to reset to default the file permissions of some files and directories?

I am using BASH on a system running OS X.

Thanks a lot,
Mike
1,502
Posted By msb65
Tips to make scripts install
Hi,

I have a series of BASH shell scripts that I would like to package and distribute. I would like to make it as easy as possible users to install the package on their system.

The only tasks...
1,339
Posted By msb65
Erase line of text file one by one
Hi,

I have a BASH script where I would like to identify all the lines of a text file that match specific pattern, and then erase them one by one. The ultimate goal will be to identify all the...
6,172
Posted By msb65
Help with filename pattern matching
Hi,

I have files in a directory with filenames that match three specific patterns:

1) [AT]*'.L2_LAC'*
2) [AT]*'.L2_LAC_OC'*
3) [AT]*'.L2_LAC_SST'*

I would like to have an "ls" command that...
1,015
Posted By msb65
Thank you very much!
Thank you very much!
1,015
Posted By msb65
Problem with Log File
Hi,

I have written a bash shell script. In order to create a log file when I run the script, as well as print the output to the terminal, I call it in the following manner:

my_shell_script 2>&1...
6,675
Posted By msb65
Source all files in a directory
Hi everyone,

Is there an efficient way to source all of the files contained in a directory? Theoretically I could create a FOR loop and successively source each file, but I just wanted to check if...
3,310
Posted By msb65
Hi Aia, Thank you very much. That works...
Hi Aia,

Thank you very much. That works great and is exactly what I need.

Mike
3,310
Posted By msb65
Read text file line by line
Hi everyone,

I am writing a BASH shell script that I will use to process data files. I have a text file that contains the names of the files to be processed, for example:

cat filenames.txt ...
9,772
Posted By msb65
Error in terminal: Gtk-CRITICAL
Hi,

I am using Ubuntu 10.04. Recently I have seen this error appear in my terminal as I edit text files with gedit:

(gedit:2841): Gtk-CRITICAL **: gtk_widget_is_ancestor: assertion `ancestor !=...
1,440
Posted By msb65
Incrementing Variable Names
Hi,

I am using BASH. I have encountered a situation where the following is necessary (but I am not sure how to do it):

#Define multiple arrays, whose names only differ by a number:
ARRAY_1=(1...
9,072
Posted By msb65
Format output from "echo" command
Hi,

I have written a BASH shell script that contains a lot of "echo" commands to notify the user about what's going on. The script generates a log file that contains a copy of what is seen in the...
Forum: Ubuntu 07-20-2010
13,608
Posted By msb65
Thankyou Habitual and Corona688 for your replies,...
Thankyou Habitual and Corona688 for your replies, I really appreciate it.

Regarding ssmtp, it is certainly an attractive alternative to the complex Postfix. However, my understanding is that while...
Forum: Ubuntu 07-19-2010
13,608
Posted By msb65
What is the default MTA in Ubuntu?
Hi,

What is the default MTA (Mail Transfer Agent) in Ubuntu 10.04? Is it Postfix or exim4?

I am not trying to do anything fancy, I would just like to be able send an email from a bash shell...
1,632
Posted By msb65
Configure system for mail(x)
Hi,

I would like to make a BASH shell script email me regarding its status (ie. it has errored while processing a file, it has finished etc.).

- This script will be distributed to users using...
8,098
Posted By msb65
Hi Jim, Thank you very much for the reply! A...
Hi Jim,

Thank you very much for the reply! A few questions:

- I didn't appear to have mailx installed. When I typed mailx the following was returned:

mike@mikebrown-desktop:~/Desktop$ mailx...
8,098
Posted By msb65
BASH script that sends text message or email
Hi,

I have a BASH shell script that batch processes data. I often start this script before I leave to go home for the day, and leave it processing over night. It has come to my attention that it...
1,476
Posted By msb65
Thank you very much!
Thank you very much!
1,476
Posted By msb65
Simple String Manipulation
Hi,

In a BASH script I have a string variable that will be of the form:

[0-9]DOR
[0-9][0-9]DOR
[0-9][0-9][0-9]Die either a 1, 2, or 3 digit number followed by the letter D. I would like to...
11,141
Posted By msb65
Remove blank lines and comments from text file
Hi,

I am using BASH. How can I remove any lines in a text file that are either blank or begin with a # (ie. comments)? Thanks in advance.

Mike
2,231
Posted By msb65
Modify Text File
Hi,

I would like to remove any lines from a text file that begin with #, or that are blank. How can I do that with BASH?

Mike
2,444
Posted By msb65
Hi Jim, I really appreciate the reply. ...
Hi Jim,

I really appreciate the reply.

- Just to confirm: if you define a variable in a BASH shell script, then call a function, the called function will know of the variable that was defined?...
2,444
Posted By msb65
Help with functions
Hi,

I am exploring with defining functions in my BASH shell scripts. However, I am bit confused about how to pass parameters to my functions. I was under the impression that you must do something...
3,662
Posted By msb65
Hi vgersh99, I meant to specify that I am...
Hi vgersh99,

I meant to specify that I am using the bash shell. A quick web search seems to indicate that whence is a ksh function, and whence ls does not work on my system. Am I correct about...
Showing results 1 to 25 of 116

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