Search Results

Search: Posts Made By: weknowd
827
Posted By weknowd
Thanks a lot RudiC. It worked and appreciate your...
Thanks a lot RudiC. It worked and appreciate your help.
827
Posted By weknowd
Looping the files for getting the file size information
Am using Linux 3.10

years.txt is input source file which has the list of year like below
2013
2014
2015
2016

Other Input files are

XX_TEST1_YR2016_01012018.csv...
729
Posted By weknowd
Thanks Don and Rudic
Thanks Don and Rudic
729
Posted By weknowd
Avoiding new line for the counts
Hi Team,

Am getting the below output but need the count of records to be displayed in same line but currently count alone moves to next line. Please let me know how we can still keep the count in...
745
Posted By weknowd
For Loop queries
I have Existing FOR loop in script like below. But the zip should happen for only those years in another file generated dynamically.

Existing FOR LOOP -

for i in XYZ_*ABC${YEAR_2014}.csv; do
...
1,859
Posted By weknowd
Thanks Yoda ,ctac and Don for the inputs and...
Thanks Yoda ,ctac and Don for the inputs and helping me. It worked. Thanks again.
1,859
Posted By weknowd
Thanks ctac. Is there any alternative to...
Thanks ctac.

Is there any alternative to sed -E as it is saying sed: illegal option --

Am using Sun OS 5.10
1,859
Posted By weknowd
Thanks ctac. Am just trying to give multiple...
Thanks ctac.

Am just trying to give multiple pattern search which is if the values are 23,24,25,1003,998,14356 then $1 should be replaced with b.

I tried below and its not working
sed...
1,859
Posted By weknowd
Thanks ctac. It works. sed...
Thanks ctac. It works.

sed '/,2[345],/s/[^,]*/b/' infile

Can we seperate the multiple patterns because I do have other list of values(34,38,100,1566) which needs to be replaced.

Thanks for...
1,859
Posted By weknowd
Thanks Yoda and Ctac. Command line is working...
Thanks Yoda and Ctac. Command line is working fine. But file has field with double quotes. With the double quotes the desired output is not coming.

################################################...
1,859
Posted By weknowd
Thanks Yoda it works. Can I search any filed...
Thanks Yoda it works. Can I search any filed which has 23,24,25 and not specifically $4 and replace $1 with "b". Just curious to know if we can do that.
1,859
Posted By weknowd
Replacing field based on the value of other field
Hi Team,

In the below input file, if I have the value 23,24,25 then for those records 1st field value should get updated from "a" to "b". I also want to pass these values in file as input as it...
1,194
Posted By weknowd
Thanks drl for your time. It works and once again...
Thanks drl for your time. It works and once again thanks for your step by step explanation.
1,194
Posted By weknowd
Delete lines containing key words dynamically
Hi Frens,

I have a requirement where I need to delete lines having key words and am using the below command to do that

sed '/UNIX/d' inputfile > output

But now I have one more requirement...
1,175
Posted By weknowd
Search Multiple patterns and display
Hi,

I have scenario like below and need to search for multiple patterns

Eg:

Test [Red]
Time Started= [2.3] secs
Time Ended = [4.5] secc
Green test

Test[Yellow]
Time Started=...
1,894
Posted By weknowd
^M special character in Filename
Hi All,

Special character ? is added in between filename. Am not able to figure our why this is happening. In my Development environment special characters are not present. This issue is...
759
Posted By weknowd
Yes sorry RudiC. OS is SUN and KSH
Yes sorry RudiC.

OS is SUN and KSH
759
Posted By weknowd
Find the year and assign to different parameters
Hi All,

I have a unix directory and under which the below set of files(Years will change) will be there

#####################################

TEST_DETAIL_HCR_ABC2015_T01152015.csv...
5,311
Posted By weknowd
Extract multiple columns base on double quotes as delimiter
Hi All,

I have my data like below

"1","abc,db","hac,aron","4","5"

Now I need to extract 1,2,4th columns

Output should be like

"1",abc,db","4"

Am trying to use cut command but not...
4,074
Posted By weknowd
Insert a new column with sequence number (Delimiter as comma)
Hi All,

I have a file which has data like

a,b
c,d
e,f
g,h

And I need to insert a new column at the begining with sequence no( 1 to n)

1,a,b
2,c,d
3,e,f
4,g,h

Please let me know...
1,740
Posted By weknowd
Thanks for the reply. It's working fine...
Thanks for the reply.

It's working fine now. Thanks for all the solutions.
1,740
Posted By weknowd
Hi All, Thanks for the solutions. Am...
Hi All,

Thanks for the solutions.

Am able to extract the expected value but not able to assign to another variable. When I assign to another variable it becomes blank.

Even I tried with...
1,740
Posted By weknowd
Assigning a variable
I have a date column as 06302015 but I need to have variable which extracts 063015.

Am trying something like below but it is not assigning

Please let me know if am missing something....
1,481
Posted By weknowd
Thanks Don.
Thanks Don.
1,481
Posted By weknowd
Thanks for the response. But the below command...
Thanks for the response. But the below command throws a syntax error

awk '{print (NR>1?60:"a") "," $0}' file
Showing results 1 to 25 of 54

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