Search Results

Search: Posts Made By: yadavricky
Forum: Programming 02-08-2017
2,155
Posted By yadavricky
Hi Don, thanks for your such luring reply. i...
Hi Don,
thanks for your such luring reply.
i am not saying that i can not share the code. but to do that i need to send it my personal account and them post it here. its not a customer code. its...
Forum: Programming 02-08-2017
2,155
Posted By yadavricky
Thanks for reply, I will explain again. I...
Thanks for reply, I will explain again.

I have a huge file almost 1000 lines, which is a code.

Now I want to insert a line at a specific position. For that I know the one frame name first_frame...
Forum: Programming 02-08-2017
2,155
Posted By yadavricky
1. no its not an assignement. 2. working on...
1. no its not an assignement.
2. working on automation, 90% work is done but 10% remaining and depends on this logic else that job need to done manually.
3. the code which i have is of 200 lines...
Forum: Programming 02-08-2017
2,155
Posted By yadavricky
unix Shell scripting
Hi All,

need help to complete the automation but stuck at a perticular situation

below is the code

<code>
fixed_function_name
{
code....
code....

variable_map=
{
a="/a"
b="/b"...
1,719
Posted By yadavricky
Differentiat 2 files depending on naming Covention
Thanks to all for quick reply. But I am getting some problem because of difference in Unix and Linux option available for command.

I have 2 set of file..

First Set these should be treated...
1,719
Posted By yadavricky
2 files
Thanks for your reply.

First File format would be as below

<compound>_<study>_<agent>_<ana>_YYYYMMDD_(C or 1).zip


Second File format would be as below
...
1,719
Posted By yadavricky
thw file format is not fixed.
Thanks for your reply but the files are randomly generated. except there naming convention nothing is fixed. like for the first one.
<std>_<lb>_<vend>_datewithdetails_c.zip
1,719
Posted By yadavricky
Differentiate 2 files name
Hello All,

I have 2 Type of files.


1. MYTEST001_RKP_DORALDO_20150402120000.zip
2. CMP001_STD001_MOGANO_RPSL_20150409_C.zip


I can receive these Two type of file at one location.

If i...
8,411
Posted By yadavricky
Cp not working in shell script but running perfectly from shell
Dear All,


I have script.



Dest=""
IFS='
'
for translation in $(echo $MY_MAP)
do
t1=$(echo $translation | cut -d"=" -f1)
t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1)...
2,520
Posted By yadavricky
Actually I wanted to put all Extension in a...
Actually I wanted to put all Extension in a Variable and then search it.


like ACC_EXT=".TXT$|.DOC$|.XLS$|.XLSX$|.DOCX$|.PDF$"


Would someone would be able to help. where i am wrong.
...
2,520
Posted By yadavricky
I tried below 2 things ...
I tried below 2 things


ALL_ACC_EXTNS=(dat, txt, pdf)
for i in "${ALL_ACC_EXTNS[@]}"; do
cp ${Source}/*.$i $Destination
done


and second try with

ACC_EXT=".TXT$|.PDF$|.XLSX$"
find ....
2,520
Posted By yadavricky
Find and Copy file of specific location
Dear All,
I need to transfer all files present in one location to another but those files should be of specific extension like.

Find and copy all files of extension .xls, .pdf, .txt from...
815
Posted By yadavricky
Not able to use @ in VI editor
Hello All,

Need one Help for one issue.
I am using a French Keyboard, so @ sign is on key 0 and i have to use right Alt + 0 to print it.
It is working everywhere but not inside Vi editor. I can...
4,516
Posted By yadavricky
Not able to use @ in VI editor
Hello All,

Need one Help for one issue.
I am using a French Keyboard, so @ sign is on key 0 and i have to use right Alt + 0 to print it.

It is working everywhere but not inside Vi editor. I...
5,958
Posted By yadavricky
Copy of file without permission
Dear All,
I need some help on weired thing happed today.

We have one process which unzip and copy the file on one location

The zip file will be

abc123_xyz456_pl_20140805.zip


The...
1,000
Posted By yadavricky
no luck.. ---------- Post updated at 06:06...
no luck..

---------- Post updated at 06:06 AM ---------- Previous update was at 06:06 AM ----------



no luck on this
1,000
Posted By yadavricky
Bulk find in UNIX at unknown dir location
Dear All,
I have a file which is having a number my_file.csv


032001031
100509001
203001165

there are many more about 5000.

I have a path in unix
...
11,205
Posted By yadavricky
The issue was i was using 120 rather than -120 ...
The issue was i was using 120 rather than -120

thanks again
11,205
Posted By yadavricky
Find mmin, mtime, cmin not working
Dear All,
We are having the script which is creating the folder on another server if it is not present using ssh. Using scp it copies copy all pdf files from local folder to server folder.

After...
973
Posted By yadavricky
thanks but i got below output $ echo...
thanks but i got below output


$ echo RYK3201_0003200121.pdf | cut -d "_" -f2 | cut -d "." -f1 | cut -c -6 | sed 's/.*_0*//; s/...\..*$//'
000320
973
Posted By yadavricky
Remove appending 0 from file variable
Dear All,

i have filename RYK3201_032001002.pdf

and i am using below command to get a file

file_name1=$(echo $file_name | cut -d "_" -f2 | cut -d "." -f1 | cut -c -6)
and then...
2,143
Posted By yadavricky
yes perfect.. thanks for quick reply
yes perfect.. thanks for quick reply
2,143
Posted By yadavricky
Ohh sorry for confusion. it was just sample What...
Ohh sorry for confusion. it was just sample What i want is replace all line in file with del "linevalue"

del "DRI10566_124007001.pdf"
del "DRI10566_124007002.pdf"
del "DRI10566_124007003.pdf"...
2,143
Posted By yadavricky
while deleting the files from shared drive on...
while deleting the files from shared drive on network it need the specified format.
it should be del "filename"

thanks
2,143
Posted By yadavricky
Append specific text in file
we will keep allfile_dump.txt for audit purpose but if it possible to append same file its ok.

this is how i am populating the file

cat $UNXLOG/filelist_dump.txt | grep ".pdf"| grep -v...
Showing results 1 to 25 of 55

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