Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: mr_manii
809
Posted By mr_manii
Hi, The files are created by another...
Hi,

The files are created by another process. The file write once complete, it will not be re-opened again.
809
Posted By mr_manii
The file is not getting generated on a fixed time...
The file is not getting generated on a fixed time unfortunately
809
Posted By mr_manii
UNIX -Tracking File I/O
Hi Team,

I have a requirement. We are processing 100s of thousands of files and had to tar 10K files each

The problem I face is, I would need to add the file into tar only when the write...
560
Posted By mr_manii
UNIX Pipe -Exit when there are no bytes to read
Hi All,

I'm creating a program which reads millions of bytes from the PIPE and do some processing. As the data is more, the idea is to read the pipe parallely.

Sun Solaris 8
See the code...
943
Posted By mr_manii
Printing a document in UNIX
Hi,
I would like to know the command to print a document with portait option.

Note : I used the below command, however I am not getting any output and it is blocking the printer queue.


lp...
1,189
Posted By mr_manii
Output Display in a perl program
Hi All,

I have created a sample perl program in one of the unix environment as below

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>";


When I execute...
967
Posted By mr_manii
Thanks a lot for the reply,problem solved
Thanks a lot for the reply,problem solved
967
Posted By mr_manii
[Solved] Finding the next line when a pattern matches
Hi I have a file like this

Record 182: Rejected
No Data found
Record 196: Rejected
File Not Found
Record 202: Rejected
Invalid argument
Record 212: Rejected
Bad data


My...
2,222
Posted By mr_manii
E363 ERROR working with VIM
When i try to edit the byte size file in vim editor iam getting the following error message(OS IBM AIX5.3)
E363: pattern caused out-of-stack error

Anyone know how to overcome this ?.
2,088
Posted By mr_manii
Hi, Split is to split an already written file. ...
Hi,
Split is to split an already written file.
Here in the script, I am forming something and writing it into a file. My question is to how to form a file appending only 10000 seq. nos. per file?
2,088
Posted By mr_manii
Breaking the files as 10k recs. per file
Hi,
I have a code as given below

Set -A _Category="A\
B\
C"
for _cat in ${_Category}
do
sed -e "s:<TABLE_NAME>:${_cat}:g" \
...
2,576
Posted By mr_manii
Validating commandline argument
Hi,
I am calling a script script2.shl from script1.shl as below

script2.shl "TABLE_NAME" -r 10

In that I have to validate the parameter 4.

i.e : it should be only 10 20 30 40 50

I...
3,017
Posted By mr_manii
Removing a file from the tar
Hi All,
I have a tar file abc.tar with the contents
1.txt
2.txt
3.txt
Now I want to remove 2.txt from abc.tar. Can I know what is the command to be used to remove a file from the tar.
1,603
Posted By mr_manii
Replacing a string with new line
Hi,
Can anyone help me know how to replace a string with the new line



for ex:
file1
val1 or val2 or val3 or

I need to replace the "or" with new line.


Thanks in advance
3,953
Posted By mr_manii
Hi saltysumi, Below is the code if you need...
Hi saltysumi,

Below is the code if you need it as a shell script

#!/bin/ksh
_prevseq=1
grep -n '^[0-9]' input.txt|cut -f1 -d":"|tail +2|while read _txt
do
echo ${_txt}
_curval=`expr...
1,532
Posted By mr_manii
Hi Amit, Thanks for the reply From your...
Hi Amit,
Thanks for the reply

From your script:

file b.txt will only contain the fild name data type and the length

For ex:f6 char 2
f7 char 3

If the file a.txt has 5...
1,532
Posted By mr_manii
Adding new fields to an existing layout
Hi Everybody,
I have an layout file like below

f1 1 char 10,
f2 11 char 2,
f3 13 char 1,
lineend 14 char 1


Their I need to add a new field which would be like
f5 char 3,
f6 char 2
...
1,192
Posted By mr_manii
Hi Everybody, Thanks a lot, the permission for...
Hi Everybody,
Thanks a lot, the permission for /tmp has been changed with the help of the admin.
1,192
Posted By mr_manii
Hi, I cannot as it is too big. But this is...
Hi,
I cannot as it is too big. But this is happening for all the scripts which is trying to write to the /tmp direcrory. Looks like a permission issue!
1,192
Posted By mr_manii
Problem executing a script
Hi Friends,
When I try to execute one of my script script1.shl, I am getting the error message as "/tmp/sh1871978.13: cannot create" .

I could not find the specified sh* file in the /tmp...
28,092
Posted By mr_manii
Hi Friends, Thanks a lot for the inputs, it...
Hi Friends,
Thanks a lot for the inputs, it works for me.:b:
28,092
Posted By mr_manii
Hi scottn, Thanks for the reply, the file is a...
Hi scottn,
Thanks for the reply, the file is a hidden file starts with "." with file permission mode "000". Thats why it's showing like that.

Can we make it look like a table with the column...
28,092
Posted By mr_manii
Creating table in Unix
Hi All,
In a given directory, I need to list the files present in it in the below given format as a table.


File name Permission Number of Bytes File Type
Telecom1 --w-r-x 1230 ...
8,897
Posted By mr_manii
-r doesn't work in my system . I work with IBM...
-r doesn't work in my system . I work with IBM AIX 5.3
8,897
Posted By mr_manii
Adding file to an existing tar
Hi Friends,
I want to know the command to add a new file in a existing tar file.

For Ex:
I have a tar file file1.tar with the contents
one.txt
two.txt
three.txt

Now I need to add file...
Showing results 1 to 25 of 32

 

Featured Tech Videos

All times are GMT -4. The time now is 08:54 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy