01-25-2013
How to create a shell script to read a foldername from a text file and go to the folder?
Thanks a lot for suggesting me the good practices. I will make sure I take care of these good practices in my script.
What is the good way to execute one script at a time?
sipp command goes in text file "testlist.txt" and it reads one folder name and it goes in the folder and reads .xml file execute the script and writes the result in a result file and then jump to the next script.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi....can you guys help me out in this script??
Below is a portion text file and it contains these:
GEF001 000093625 MKL002510 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL003604 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL005675 000001... (1 Reply)
Discussion started by: pallavishetty
1 Replies
2. Shell Programming and Scripting
hi all,
I have this file with some user data.
example:
$cat myfile.txt
FName|LName|Gender|Company|Branch|Bday|Salary|Age
aaaa|bbbb|male|cccc|dddd|19900814|15000|20|
eeee|asdg|male|gggg|ksgu|19911216|||
aara|bdbm|male|kkkk|acke|19931018||23|
asad|kfjg|male|kkkc|gkgg|19921213|14000|24|... (4 Replies)
Discussion started by: srimal
4 Replies
3. Shell Programming and Scripting
I am having one text file and i need to read that data from my shell script.
I will expain you the scenario:
Script look like:
For name type 1:
For age type 2:
For Salary type3:
echo "Enter the input:"
read the data
if input is 1 then go to the Text file and print the... (2 Replies)
Discussion started by: dineshmurs
2 Replies
4. Shell Programming and Scripting
The scope of the shell/perl script is to read the input text file. Validate the expiry date of each certificate and send the mail to the user. The user takes action to add the new certificate to the storage file and user owns the responsibility to update the input text file with the new certificate... (5 Replies)
Discussion started by: casmo
5 Replies
5. Shell Programming and Scripting
Hi ,
I am trying to write an shell, which reads a text file (from a location) having a list of numbers of strictly 5 digits only ex: 33144
Now my script will check :
1) that each entry is only 5 digits & numeric only, no alphabets, & its not empty.
2)then it executes a shell script called... (8 Replies)
Discussion started by: new_to_shell
8 Replies
6. Shell Programming and Scripting
Have to read one file say sourcefile containing several words and having another folder containing several files.
Now read the first word of Sourcefile & search it into the folder consisting sevral files, and create another file with result. We hhave to pick the filename of the file in which... (3 Replies)
Discussion started by: mukesh.baranwal
3 Replies
7. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
8. UNIX for Beginners Questions & Answers
I have a script that sorts and processes unsorted files to newly created directories.
Its working great, but I am trying to understand the leanest method to get the script to create an additional file within each newly created directory that:
Contains a list of all files in the directory... (4 Replies)
Discussion started by: Braveheart
4 Replies
9. Shell Programming and Scripting
i have a text file as belows, it includes 2 columns, 1st is the column name, 2nd is the file_name
data_file.txt
column_name file_name
col1 file1
col2 file2
col3 file1
col4 file1
col5 file2
now, i would like to... (4 Replies)
Discussion started by: tester111
4 Replies
10. UNIX for Beginners Questions & Answers
Is it possible to create new folder and write a new text file in the folder while the current position is outside the new folder? in one line
mkdir folder | echo "hello test"> folder/test.txt
not work. (1 Reply)
Discussion started by: cmdcmd
1 Replies
prev(1) General Commands Manual prev(1)
NAME
prev - show the previous message (only available within the message handling system, mh)
SYNOPSIS
prev [+folder] [-[no]header] [-help] [-showproc program] [-noshowproc] [options to showproc]
OPTIONS
Displays a one-line header before the message. The header consists of the name of the folder and the message number. This is the default
behavior. It can be suppressed with the -noheader option. Prints a list of the valid options to this command. Specifies an alternative
program to list messages. The default is to use the program defined by the showproc: entry in the file. As with show, you can give options
to the showproc program at the command line. These are passed directly to showproc by prev.
The defaults for this command are:
+folder defaults to the current folder -header
DESCRIPTION
The prev command displays the previous message in the current folder. The previous message is the one before the current message in the
folder. The message that is shown becomes the current message.
You can specify a folder other than the current folder by using the +folder argument. If you specify a folder, that becomes the current
folder.
RESTRICTIONS
The prev command is really a link to the show program. As a result, if you make a link to prev and that link is not called prev, your link
will act like show instead. To avoid this, add a profile-entry for the link to your MH profile and add the argument prev to the entry.
PROFILE COMPONENTS
Path: To determine your Mail directory
showproc: Program to show the message
EXAMPLES
The command in the following example displays the previous message in the folder +copylog: $ prev +copylog
FILES
The user profile.
SEE ALSO
show(1), next(1)
prev(1)