Search Results

Search: Posts Made By: rajangupta2387
7,787
Posted By rajangupta2387
Hi, I am designing a script that worlks...
Hi,

I am designing a script that worlks like recycle bin funtcionality in windows.
So if you accidently delete a directory which has no permission you would not able to do it and the tar file...
7,787
Posted By rajangupta2387
Hi, Thanks for the reply. But let me put my...
Hi,

Thanks for the reply. But let me put my issue clear here;
1. When i TAR Directory with no permissions a TAR file is created containing empty directory.
2. now during untar i can retrieve...
7,787
Posted By rajangupta2387
Hi Guys, Thanks for reply. I am using...
Hi Guys,

Thanks for reply. I am using solaris. And i am in process of design a shell script in bash which tar all the files mentioned as a regular expression and removes them from the...
7,787
Posted By rajangupta2387
How to avoid TAR of directory with no permissions?
Hi Users,

i have a situation as below;

-rw-r--r-- 1 t1elkpe cmptl 0 Mar 18 12:00 file2
---------- 1 t1elkpe cmptl 0 Mar 14 16:07 file1
d--------- 3 t1elkpe cmptl ...
2,222
Posted By rajangupta2387
Thank you very much it worked.
Thank you very much it worked.
2,222
Posted By rajangupta2387
Hi, Thanks it is working but still i am now...
Hi,

Thanks it is working but still i am now facing issues w.r.t to "printf" statement.

Input:

Comptel_6_UAT|IXBS_ENCODER|Packages|UPC_CFG_NL_DMS100_IXBS_ENCODER|NOT EXIST|2.1.1....
2,222
Posted By rajangupta2387
Thanks afor your answer and it work for the...
Thanks afor your answer and it work for the situation i mentioned. But in actual the contents of the file are large in size and it fails to execute that.

actual file is something like:

...
2,222
Posted By rajangupta2387
Parse a file using awk
Hi Experts,

I am trying to parse the following file;
FILEA
a|b|c|c|c|c
a|b|d|d|d|d
e|f|a|a|a|a
e|f|b|b|b|boutput expected:

a<TAB>b
<TAB><TAB>c<TAB>c<TAB>c<TAB>c<TAB>...
3,603
Posted By rajangupta2387
Hi, This doesnot work. I just need a small...
Hi,

This doesnot work. I just need a small correction in the awk published by elixir_sinari. Can you please try.
Error generated:
awk: cmd. line:2: fatal: cannot open file `file' for reading...
3,603
Posted By rajangupta2387
Hi, Thanks worked like a cream. Just one...
Hi,

Thanks worked like a cream. Just one more thing i need to incorportae if you can tell me how to do it then my whole purpoose is solved.

if the OLD field is not exist i need to populate...
3,603
Posted By rajangupta2387
Hi, Thanks for the query. It seems to work...
Hi,

Thanks for the query. It seems to work but there are some small small correction required. If you can help me with then then it would be of great use.

The script generate almost corrrect...
3,603
Posted By rajangupta2387
Hi, Thanks all for your effort. Let me just...
Hi,

Thanks all for your effort. Let me just put what exactly i am looking for;
I have attached an input file and here what i do from it;

cat -vt diffStreamVersions.txt |sed 's/SQL>//g' |...
3,603
Posted By rajangupta2387
Hi, Thanks for your answer. It worked as of...
Hi,

Thanks for your answer. It worked as of now. But i have noticed one more improvement that need to be implemented. As stated below

Input:
Name
NEW#TechnicalName1 Value1
...
3,603
Posted By rajangupta2387
Hi, I used this awk command as below; ...
Hi,

I used this awk command as below;
/usr/local/bin/gawk -F "[#]" '{if($0 ~/#/){s=$3;getline;print $2" "$3,s}else{print }}' OFS=" --> "

And the output i got is as this:
...
3,603
Posted By rajangupta2387
usage of Awk command for output
Hi Experts,

I have a Text file generated as below;
<NAME>
NEW#<technicalName><TAB> <Version>
OLD#<technicalName><TAB> <Version>
e.g.
CH_PPV_AUDIT_DISTRIBUTOR
...
740
Posted By rajangupta2387
issue trying to use awk
Hi Gurus,

I am facing a similar issue usiung an awk command. Below is my requirement:

---DATA---
A;F;G
A;D;E
A;D;E
B;Z;P
C;Z;Q

Expected:
A
F<TAB>G
D<TAB>E
D<TAB>E

B
D<TAB>E
Showing results 1 to 16 of 16

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