the script on excution should take a directory path from useran a numric input and it should check indicate whether its write or not?
if the cmmd sh<script-name>,dir/path.<500>" is greater than 500 in size should be copied to dir ,temp in pwd and display the mesage'files of 2000 bytes hav been... (4 Replies)
Hi all,
I have a question..
Here is my requirement..I have 500 files in a path say /a/b/c
I have some numbers in a file which are comma seperated...and I wanted to check if the numbers are present in the FileName in the path /a/b/c..if the number is there in the file that is fine..but if... (1 Reply)
How do I check that a string $AA22CC3 starts with the "$" symbol ?
I have tried :
checksum='$AAB3E45'
echo $checksum
case $checksum in
$* ) echo success ;
esac
Thanks ... (4 Replies)
hi i want to know how to do this
if the given is /tmp/ and it is a valid directory then it will echo directory
if the given is /tmp/file.txt and is a valid file then it will echo file..
thanks! (5 Replies)
Hi,
Here is my question: suppose I have files like
1990_8xdaily_atmos.nc
1991_8xdaily_atmos.nc
1992_8xdaily_atmos.nc
1993_8xdaily_atmos.nc
1990_daily_atmos.nc
1991_daily_atmos.nc
1992_daily_atmos.nc
1993_daily_atmos.nc
1990_month_atmos.nc
1991_month_atmos.nc
1992_month_atmos.nc... (1 Reply)
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Hello ,
I have to search for the file names which will either has ABC_DEF or NN in their filename
Please note that both cannot appear in the same file name
currently I am using
ls -lrt /zthetl/SrcFiles/*ABC_DEF*.xls| head -1 | nawk '{print $9}'
How to combine the NN in this code?... (4 Replies)
This is on a CentOS box, I have two scripts that need to run in order.
I want to write a shell script that calls the first script, lets it run and then terminates it after a certain number of hours (that I specify of course), and then calls the second script (they can't run simultaneously) which... (3 Replies)
This is very basic. Yet Iam struggling to get the right pattern for my check.
Apologize in advance to ask a very lame question.
I have to validate if a value of the variable starts with "efgh" and followed by 6 numbers.
Var1="efgh234567"
The condition Iam trying to achieve is similar to... (6 Replies)
Discussion started by: deepakwins
6 Replies
LEARN ABOUT OSF1
packf
packf(1) General Commands Manual packf(1)NAME
packf - compress a folder into a single file (only available within the message handling system, mh)
SYNOPSIS
packf [+folder] [msgs] [-file name] [-help]
OPTIONS
Specifies the file in which you want the message(s) to be stored. If you specify an existing file then the specified messages will be
appended to the end of that file. Otherwise, a new file will be created and the messages placed in it. If you do not specify a filename,
packf attempts to place the messages in a file called msgbox in the current working directory. If this file does not exist, packf asks
whether you want to create it. Prints a list of the valid options to this command.
The default settings for this command are:
+folder defaults to the current folder msgs defaults to all -file
DESCRIPTION
Each message in a folder is normally stored as a separate file. The packf command takes all messages from the current folder and copies
them to a single specified file. Each message in the file is separated by four <CTRL/A>s and a newline.
You can specify a folder other than the current folder by using the +folder argument. If you do not want all the messages in a folder to be
packed into one file, you can specify a number of messages or a range of messages with message numbers.
The first message packed will become the current message. If you specify a +folder argument, that folder will become the current folder.
When messages have been packed into a file using packf, you can separate them into individual messages using the burst command. See
burst(1).
PROFILE COMPONENTS
Path: To determine the user's Mail directory
Msg-Protect: To set protections when creating a new file
EXAMPLES
The first example shows all the messages in the folder +lrp being packed into a file called planning: % packf +lrp -file planning The next
example shows how packf prompts you if you do not specify a -file option. A file called msgbox is created by packf in your home directory,
and messages 3 to 5 are packed into it: % packf +lrp 3-5 Create file "/machine/disk/username/msgbox"? y
FILES
The user profile.
SEE ALSO burst(1)packf(1)