Search Results

Search: Posts Made By: viallos
1,156
Posted By viallos
There is only one file that will resolve from...
There is only one file that will resolve from output_file="${outputdir}/if_flex_Output.All_*"

Corona688 you are right that if I change code to

if [ -e $output_file ]; then it is working as...
1,156
Posted By viallos
Test file script - if evaluation failing
I have a following script to evaluate if file exist in the directory and then archive it.


#!/bin/bash

#master directory
scriptdir="/flex/sh/interfaces" #change this path only - all other...
3,853
Posted By viallos
Thanks for that. Working as expected. I don't...
Thanks for that.
Working as expected.
I don't think I would considered this syntax.
3,853
Posted By viallos
Sorry but I don't get it. What else I'm...
Sorry but I don't get it.

What else I'm doing if not referencing this string by A[a++]=

and then printf A[i]
3,853
Posted By viallos
Thanks for info. How to return modified...
Thanks for info.

How to return modified string then?
3,853
Posted By viallos
Moving forward with this issue. File...
Moving forward with this issue.

File structure

1ABC1234567890123Y 31-Jul-2012
1DEF1234567890124NMEDIUM 31-Jul-2012
193939312345889 YSMALL 31-Jul-2012...
3,853
Posted By viallos
Sorry zaxxon - didn't want to confuse anyone. ...
Sorry zaxxon - didn't want to confuse anyone.
I'm PL/SQL developer not Unix and this was passed into me as a bonus :-).

The issue remains the same. When creating sql insert command I would like...
3,853
Posted By viallos
Thank you both it is working fine but this is not...
Thank you both it is working fine but this is not exactly what I was looking for.

This code was only part of my program and I have to use loop rather then proposed code.

I will try to explain...
3,853
Posted By viallos
Looks like the spaces in the file has been...
Looks like the spaces in the file has been replaced when posted this.

In the file
Line 3 - Between 9 and Y there are 2 spaces
Line 5 - Between 1 and Y there are 16 spaces

Hope this looks...
3,853
Posted By viallos
awk loop - substr and sub query
Hi there

Looking for help with formating text output.

I have following file

1ABC1234567890123Y 31-Jul-2012
1DEF1234567890124NMEDIUM 31-Jul-2012
193939312345889 YSMALL ...
4,599
Posted By viallos
Thank you both. dos2unix seems to resolve...
Thank you both.

dos2unix seems to resolve my initial issue, however both of you suggested to use awk.

I tested scripts and both work fine.

Is there any advantage to use awk rather then...
4,599
Posted By viallos
Arithmetic (number-based) if condition
Hi Folks

I'm looking for help with if statement.

I'm reading the file with header (starts with 0 on position 1 in the line) and data (starts with 1 on position 1 in the line).
I have to check...
Showing results 1 to 12 of 12

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