Search Results

Search: Posts Made By: kam786sim
1,560
Posted By kam786sim
$ is typo. there is absolute path for the...
$ is typo.
there is absolute path for the script.
i tried running the script the below syntax

. /Project/Scripts/emit.ksh


then also got its displaying all the values echoed in the child...
1,560
Posted By kam786sim
execute script without displaying child script messages
Hi i have a script which is calling another script.
But my child script is displaying some values.

sample script.

export LOG_File=/log
$/Project/Scripts/emit.ksh
mv inner_test.ksh...
1,292
Posted By kam786sim
Understand a old unix shell script
Hi All,
I have a unix old script i but i am not able to understand the few commands in it and what it does. below is the script.

if [ -f /ITF_*.dat ];
then
for F in $(find $DIR/. !...
7,647
Posted By kam786sim
Hi Sorry for wrong input Input file 1 2...
Hi Sorry for wrong input
Input file

1
2
3
:
:
50

Output file

3
:
:
48


Any time i should always remove 1st two row from top and bottom.
7,647
Posted By kam786sim
Hi guys thanks for help. But i want to do this...
Hi guys thanks for help.
But i want to do this in one line only.
As i can execute only one command.

tail -n+3 file | head -n-2

Is not working.
7,647
Posted By kam786sim
Remove 1st two rows and last 2 rows
Hi All,
I need to remove 1st 2 line from head and last 2 line from last.
I thought it would be possible by using the Head and tail command.
But after i am using it is not possible by it....
2,530
Posted By kam786sim
Help in removing 1st column in file
Hi All,
I have a input file

CT;RE23;DR33;FT44
CT;RE24;DR22;FT55


Here i need to make and output file with below structure i need to remove the first column:

RE23;DR33;FT44
RE24;DR22;FT55...
3,414
Posted By kam786sim
Thanks for all help. It worked fine.
Thanks for all help.
It worked fine.
3,414
Posted By kam786sim
Hi I tried with this option i got the below error...
Hi I tried with this option i got the below error

awk '{
if ( substr($0, 392, 1)=="C" )
DOC = substr($0, 28, 15) substr($0, 386, 3)
else
DOC = substr($0, 28, 18)

...
3,414
Posted By kam786sim
Hi, awk: Cannot find or open file $C if...
Hi,

awk: Cannot find or open file $C

if i give the way you told i am getting the error as

awk: Cannot find or open file $WOR_/Work_TIR453220100721533.txt


My modified code

awk '{
...
3,414
Posted By kam786sim
Sorry I think i might be have done some mistake...
Sorry
I think i might be have done some mistake from my side while putting the code in the script below is the code:

awk '{
if ( substr($0, 392, 1)=="C" )
DOC = substr($0, 28, 15) ...
3,414
Posted By kam786sim
Scipt is working fine but when i am calling...
Scipt is working fine
but when i am calling from script am getting following error

awk: Field is not correct.
The input line number is 1.
The source line number is 6.



i modified the...
3,414
Posted By kam786sim
Hi aigles, I i tried your script. But i am...
Hi aigles,

I i tried your script.
But i am getting only one output row as output and that is also the last row of the file.

And also in send awk i am not able to understand where we are doing...
3,414
Posted By kam786sim
Hi Thanks for your reply. I dont have any...
Hi Thanks for your reply.
I dont have any second key i am generating different files by unique DOC numbers generated in for loop.

And then for each file i am putting the record for same DOC in...
3,414
Posted By kam786sim
Example input file Its an fixed width file 1 ...
Example input file
Its an fixed width file
1 12367 A 1100
2 12367 B 2200
3 12367 C 3300
C ...
3,414
Posted By kam786sim
Search Key in same file but at different positions
Hi All,

I want some help in unix.
Current code is


for DOC in `InputFileName | awk '{ if ( substr($0, 392, 1)=="C") { $0 = (substr($0, 28, 15) "" substr($0, 386, 3)) } else { ($0 =...
28,520
Posted By kam786sim
Nope it didn't work. i dont want to pass...
Nope it didn't work.
i dont want to pass command as parameter.
I want it output to be passed as string
28,520
Posted By kam786sim
Convert output to string
Hi Guys,
is there any command to convert the output returned by the below command to string format:

Code:
sed 1!d filename

Output is :
108

---------- Post updated at 11:03 AM ----------...
9,433
Posted By kam786sim
Hi zaxxon, Thanks for reply. Can you...
Hi zaxxon,

Thanks for reply.
Can you please explain me what this command does.
i tried reading man sed in shell but it didn't help
9,433
Posted By kam786sim
Read the specified line number from file
Hi Guys,
I am new to unix.
Actually i want help in writing an single command where
i can actually read specific line number in file where the line number will be passed to command as parameter.
...
4,181
Posted By kam786sim
no i dont have python its unix.
no i dont have python its unix.
4,181
Posted By kam786sim
its showing me all records as it is ..its not...
its showing me all records as it is ..its not working..

see i have file

1,2,3
1,2,3
1,2,3

i want this records to be seprated as below


cloumn1 column2
1,2 3
1,2 ...
4,181
Posted By kam786sim
That i will do from the link u have given i want...
That i will do from the link u have given i want output for first 2 column now.
X Y Z are in diffrent file.

And i will get this from cut paste command you have suggested.
4,181
Posted By kam786sim
Thanks for reply. But that example is for...
Thanks for reply.
But that example is for combining data from 2 files.

My input data is in 1 file only i have to keep first few coulmns same and only last column should be saprated .

And...
4,181
Posted By kam786sim
how to cut fields in file
Hi,
I have data in following format.

10001, John, Daves, Architecture, -2219
10002, Jim, Cirners, Businessman, -2219
1003, Tom, Katch, Engineer, -14003


I want to select the last column...
Showing results 1 to 25 of 25

 
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy