Hi,
Could anyone give me a idea how to strip the lines from a given file. example
***********
1st occurence
1st occurence
1st occurence
1st occurence
***********
2nd occurence
2nd occurence
2nd occurence
2nd occurence
2nd occurence
2nd occurence
*************
3rd occurence
3rd... (10 Replies)
Hello Everyone
I am new to this forum.
I am having a requirement to edit the file(the file is having some sql code).
And this file is in my colleagues login. This is readonly
Now I would like to edit this file.
In which way can I do this? (1 Reply)
I have a .fs file that I want to edit, (or just be able to see what is in it) preferably through a windows environment. Does anyone know how to do that? Thanks (4 Replies)
I have a file oratab with entry like this
SCADAG:/esitst1/oracle/product/9.2.0.8:Y
I am trying to discover a way to change the 9.2.0.8 part of this to something like 10.2.0.4 as part of an upgrade script.
I have tried
cat /etc/oratab >>/tmp/oratab... (1 Reply)
When I execute a korn shell script , I am getting the following error.
"mktemp not found"
Why I am getting this...is this error related to script. (6 Replies)
I have a requirement, which is as follows
*. Folder contains list of xmls. Script has to create new xml files by copying the existing one and renaming it by appending "_pre.xml" at the end.
*. Each file has multiple <Name>fileName</Name> entry. The script has to find the first occurance of... (1 Reply)
I have a file containing dates like below
2010 1 02
2010 2 01
2010 3 05
i want the dates to be like below
20100102
20100201
20100305
i tired using
awk '{printf "%s%02s%02s",$1,$2,$3}'
But it does not work,it puts all the dates in one line,i want them in seperate lines like the... (6 Replies)
Hi All,
I have file with 200K Records and each line with 400 character. I need to edit the some part of the file.
For example, i need to edit character from 115 to 125, 135to 145 and 344 to 361
Can you please anyone help me to do this?
Regards, (1 Reply)
I have the following script
inp=$input
out=$output
cat_out=$cout
cat_out1=$cout1
cat_outfinal=$coutfinal
echo inp:$inp
echo out:$out
echo cat_out:$cat_out
echo cat_outfinal:$cat_outfinal
awk '{print FNR "\t"$4"\t"$5"\t"$9"\t"$2"\t"$3}' $inp > $out
cat $out | tr "-" " " > $cat_out... (3 Replies)
Discussion started by: rossi
3 Replies
LEARN ABOUT HPUX
mktemp
mktemp(1) General Commands Manual mktemp(1)NAME
mktemp - make a name for a temporary file
SYNOPSIS
directory_name] prefix]
DESCRIPTION
makes a name that is suitable for use as the pathname of a temporary file, and writes that name to the standard output. The name is chosen
such that it does not duplicate the name of an existing file. If the option is specified, a zero-length file is created with the generated
name.
The name generated by is the concatenation of a directory name, a slash the value of the environment variable truncated to - 6 characters,
and the process ID of the invoking process.
The directory name is chosen as follows:
1. If the option is specified, directory_name is used.
2. Otherwise, if the environment variable is set and a string that would yield a unique name can be obtained by using the value of
that variable as a directory name, this value is used.
3. Otherwise, if a string that would yield a unique name can be obtained using as the directory, is used.
4. Otherwise, (current directory) is used.
If the option is specified, prefix is used instead of the value of the environment variable for name generation.
RETURN VALUE
returns zero on successful completion and non-zero if syntax, file access, or file creation errors were encountered or a unique pathname
could not be generated.
SEE ALSO mktemp(3C), umask(1).
mktemp(1)