Sponsored Content
Top Forums Shell Programming and Scripting Script to create a text file whose content is the text of another files Post 302611441 by Chubler_XL on Thursday 22nd of March 2012 09:05:54 PM
Old 03-22-2012
Files will be output in alpha order of filename

Code:
if ls $DIRMAIL/* 2> /dev/null
then  
    cat $DIRMAIL/* > $DIRINBOX/inbox
else
    echo No Files found in $DIRMAIL
fi

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

create a text file in a script

Hi, i want to create a text file (init${x}.ora) and write information to it via a korn shell script. Is it right to do it as shown below (the file doesnt exist yet)? x=$1 file="$ORC/dbs/init${x}.ora" echo "info here..." >> $file will this file get created? (2 Replies)
Discussion started by: n8575
2 Replies

2. Shell Programming and Scripting

Create multiple text file from a single text file on AIX

Hi I need to create multiple text files from onc text file on AIX. The data of text files is as below: ********************************************** ********************************************** DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009 Copyright (c) 1982,... (11 Replies)
Discussion started by: lodhi1978
11 Replies

3. UNIX for Dummies Questions & Answers

Script to create text file.

Hi all Below this is my script..I want to write the command to create a text file in my script below. If anyone know how to do...show me the result.I also want to do this script run automatically without type in terminal. Thanks. #!/usr/bin/sh... (6 Replies)
Discussion started by: mastercar
6 Replies

4. Shell Programming and Scripting

Need help in writing a script to create a new text file with specific data from existing two files

Hi, I have two text files. Need to create a third text file extracting specific data from first two existing files.. Text File 1: Format contains: SQL*Loader: Release 10.2.0.1.0 - Production on Wed Aug 4 21:06:34 2010 some text ............so on...and somwhere text like: Record 1:... (1 Reply)
Discussion started by: shashi143ibm
1 Replies

5. UNIX for Dummies Questions & Answers

creating text file with content from script

hi, can somebody tell me how I can create a text file with content from Bash script. The file should be prefilled with information such as current date and time then leaving the user ability to input more data right below those prefilled content. thank you :) (0 Replies)
Discussion started by: s3270226
0 Replies

6. Shell Programming and Scripting

Need to build Shell Script to search content of a text file into a folder consist several files

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. Shell Programming and Scripting

While or For with looping contructs? to create files from contents of a text file

Hi so far I created this script: vi loop.beta.sh for i in `cat extract.filenames.tabc` do echo $i done>$i === This is the original text file. $ more tabc.txt -rwx------- 1 alice staff 1586 2010-11-05 02:27 request-key .conf -rwx------- 1 ted staff 126 ... (3 Replies)
Discussion started by: wolf@=NK
3 Replies

8. Shell Programming and Scripting

Create users from a text file by script

Hi All, I am new to scripting, i want to create one script in which i can add users from a text file, assign them a default password like 123456. It should be like: Username= $i (it should take users from text file one by one) Password : 123456(default for every user) (1 Reply)
Discussion started by: prad_rocxx
1 Replies

9. UNIX for Dummies Questions & Answers

How to sort a content of a text file using a shell script?

I am new to shell scripting. I am interested how to know how to sort a content of a file using shell scripting. I've attached the 'Input file' and the 'expected output' to this thread. Details provided in the expected output file will provide details on how the sort needs to be done. ... (16 Replies)
Discussion started by: nkarthik_mnnit
16 Replies

10. Shell Programming and Scripting

Splitting a text file into smaller files with awk, how to create a different name for each new file

Hello, I have some large text files that look like, putrescine Mrv1583 01041713302D 6 5 0 0 0 0 999 V2000 2.0928 -0.2063 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0 5.6650 0.2063 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0 3.5217 ... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
patch_active_text(5)						File Formats Manual					      patch_active_text(5)

NAME
patch_active_text - dynamically enable or disable running executable text to be modified via mprotect() VALUES
Fail Safe Default semantics is enabled Allowed values or DESCRIPTION
This tunable allows write access to text of a running process such that the active text can be modified. When this tunable is enabled, can be used with a special flag, to modify the text of a running executable. By default, does not work on text of a process. Enabling the tunable allows to work on text segments of a process. Making text writable will create a private copy of the text to the process using this feature. Once with special flag allows running text to be modified, further invocations of on text of a process with other prot flags are also allowed. For must always be used with (see mprotect(2)). must always be used on text address range. After the first invocation of further mprotect(2) calls will work on text segments of process with any other prot flags; in other words, will work on text with or any combinations of the above. The only requirement is that both these flags must be invoked first. Who Is Expected to Change This Tunable? System administrators who wish to change the default behavior. Restrictions on Changing Changes to this tunable take effect immediately. When Should the Tunable Be Turned Off? If an application expects to fail on text segments, the tunable should be turned off. What Are the Side Effects of Turning the Tunable Off? Applications will no longer be able to use on text of a process. When Should the Tunable Be Turned On? If an application wants its text segment to be writable and also wants to be able to work on text of processes, this tunable must be turned on. Making text writable will create a private copy of the text to the process using this feature. What Are the Side Effects of Turning the Tunable On? Memory consumption in the system will increase. This is because with the process will create a private copy of the shared text on first invocation. It should also be noted that large page benefits on text segments will be lost. What Other Tunables Should Be Changed at the Same Time? None. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
mprotect(2), copy_on_write(5) Tunable Kernel Parameters patch_active_text(5)
All times are GMT -4. The time now is 06:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy