10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The bash below loops through a specific directory dir and finds and writes the oldest folder to a variable called $filename.
# oldest folder stored as variable for analysis, version log created, and quality indicators matched to run
find... (2 Replies)
Discussion started by: cmccabe
2. Shell Programming and Scripting
Daily I am generating a file dfm_daily_file_
ex: dfm_daily_file_05072015 date will be changed daily.
Once the file is FTP it is deleted.
I have tried the below code to get the file name with any date and store it in a variable its not working.
#!/bin/ksh ... (4 Replies)
Discussion started by: ROCK_PLSQL
3. Shell Programming and Scripting
I have a file service.xml which has following content:
<?xml version="1.0" encoding="UTF-8"?>
I want to read the value of Ver (that is 2.31.13) and assign to a variable which i further use.
Please help me in that. (3 Replies)
Discussion started by: laxmikant15
4. Shell Programming and Scripting
Hello, I am quite new in shell scripting and I would like to write a little scritp to run a program on some parameters files.
all my parameters files are in the same directory, so pick them up with
ls *.para >>dirafter that I have a dir file like that:
I... (2 Replies)
Discussion started by: shadok
5. Shell Programming and Scripting
I need to do the following:
(1) I wan't to extract a line of a textfile (defined by a numer) and store it into a variable...
(2) ...but I want to cut out a part of the line which is between two tokens and store just this to the variable
BlaBlaBla Bla2Bla2Bla2 *pPointerOne;... (4 Replies)
Discussion started by: Michi21609
6. Shell Programming and Scripting
I have a file in a windows directory the file is delivery to us like this
07210900 is the current date.
If I want to store that file in a variable UpLoadFileName and
rename, so I can Ftp later to a UNIX directory, I am doing this, is this correct?
CDRemoteDir='cd... (0 Replies)
Discussion started by: rechever
7. UNIX for Dummies Questions & Answers
How to read a file and put the values in a script. E.g.
The script should read this file and put these values in 3 different variables x1,x2,x3 which can be used further.
Ashu (3 Replies)
Discussion started by: er_ashu
8. Shell Programming and Scripting
Hello, Would someone guide me on how to write a shell script the would search for a phone no using at the end text file using sed or awk and store it in a varaible or print it.
The text file is in this form
text or numbers in first line
text or numbers in second line
Firsname... (6 Replies)
Discussion started by: amuthiga
9. Shell Programming and Scripting
I want each output line assigned to its own variable, ie:
"line1" --> $a
"line2" --> $b
"line3" --> $c
"line4" --> $d
Is this possible without writing to a temporary file?
Thanks (4 Replies)
Discussion started by: ksheller
10. UNIX for Dummies Questions & Answers
I'm quite new to unix and hope that someone can help me on this.
I'm using csh.
Below is what i intend to do.
1. I stored some data in a file.
2. I intend to read the file line by line and store each line of data into a variable, so that i can used it later.
Anyone have any... (4 Replies)
Discussion started by: seijihiko
RMF(1) [nmh-1.5] RMF(1)
rmf - remove an nmh folder
rmf [+folder] [-interactive | -nointeractive] [-version] [-help]
Rmf removes all of the messages (files) within the specified (or default) folder, and then removes the folder (directory) itself.
If there are any files within the folder which are not a part of nmh, they will not be removed, and an error will be produced. If the
folder is given explicitly or the -nointeractive option is given, then the folder will be removed without confirmation. Otherwise, the
user will be asked for confirmation. If rmf can't find the current folder, for some reason, the folder to be removed defaults to `+inbox'
(unless overridden by user's profile entry "Inbox") with confirmation.
If the folder being removed is a subfolder, the parent folder will become the new current folder, and rmf will produce a message telling
the user this has happened. This provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list
and returning to the current folder from which the list was extracted.
If rmf s used on a read-only folder, it will delete all the (private) sequences (i.e., "atr-seq-folder" entries) for this folder from your
context without affecting the folder itself.
Rmf irreversibly deletes messages that don't have other links, so use it with caution.
$HOME/.mh_profile The user profile
Path: To determine the user's nmh directory
Current-Folder: To find the default current folder
Inbox: To find the default inbox
`+folder' defaults to the current folder, usually with confirmation
`-interactive' if +folder' not given, `-nointeractive' otherwise
Rmf will set the current folder to the parent folder if a subfolder is removed; or if the current folder is removed, it will make "inbox"
current. Otherwise, it doesn't change the current folder or message.
Although intuitively one would suspect that rmf works recursively, it does not. Hence if you have a sub-folder within a folder, in order
to rmf the parent, you must first rmf each of the children.
MH.6.8 11 June 2012 RMF(1)