Search Results

Search: Posts Made By: r@v!7*7@
3,574
Posted By r@v!7*7@
I tried the exact code you gave (20170512) but it...
I tried the exact code you gave (20170512) but it did not find file1.dat.

But if I create the files like below (20170508) then it is able to find file1.dat
touch -t 201705080000...
3,574
Posted By r@v!7*7@
I am not sure of the filesystem type but we are...
I am not sure of the filesystem type but we are using AIX OS.

I see the below dates available for a file. Is there a way we can use Find command to check by the date of last modification of i-node...
3,574
Posted By r@v!7*7@
Hi Don, Thanks for the reply. The solution you...
Hi Don, Thanks for the reply.
The solution you provided is working perfectly for this scenario.

We also have a requirement where the files are placed in our directory on a daily basis.
In this...
3,574
Posted By r@v!7*7@
Search files between date ranges - Ctime usage
Hello,
I am a noob and need some help.
I am trying to find files created between a date range.

For Example:
These are files in directory.

-rw-r--r-- 1 user staff 6 May 8...
19,664
Posted By r@v!7*7@
Thanks for you reply. Actually to make my...
Thanks for you reply.

Actually to make my question more clear.
The client server might have n no. of such files starting with name 'hellofile'. For example hellofile.101, hellofile.102,...
19,664
Posted By r@v!7*7@
Curl command to download multiple files with a file prefix
I am using the below curl command to download a single file from client server and it is working as expected

curl --ftp-ssl -k -u ${USER}:${PASSWD} ftp://${HOST}:${PORT}/path/to/${FILE} --output...
1,790
Posted By r@v!7*7@
IF condition to compare file prefix
I have files with naming as below,
testS123,
testS223,
testB1,
testC1,
testD1

I need to write a if condition to print 'Hello' when the file prefix is not testS* else 'Good bye'.

if [ $file...
8,990
Posted By r@v!7*7@
Does FTPS has its own command or can we use SFTP...
Does FTPS has its own command or can we use SFTP instead.
I looked it in the man page but didn't find anything (not found or installed).
8,990
Posted By r@v!7*7@
FTPS Connection script
I have a requirement for which I had to connect to a server using FTPS. I have been provided with these,

connection method: FTPS
Server Name
Port for explicit and implicit
Login user

I would...
3,332
Posted By r@v!7*7@
This Worked. Thank you Don.
This Worked. Thank you Don.
3,332
Posted By r@v!7*7@
you are right. But is there a way we can only...
you are right. But is there a way we can only replace only first occurrence of the string in a file for line starting with 03.
3,332
Posted By r@v!7*7@
Thanks a lot. That was really helpful. But even...
Thanks a lot. That was really helpful.
But even though I changed it to below, it is replacing mutiple occurrence's. Am I missing something.
sub(ERE,rep,$2)[/QUOTE]
3,332
Posted By r@v!7*7@
Its working when I hard code the values but when...
Its working when I hard code the values but when I use the variables like this the its not replacing..

awk -F, '$1=="03"{gsub(/$l_test/,$l_replace,$2)}1' OFS="," file.txt > temp.txt
3,332
Posted By r@v!7*7@
My txt file has data something like this, ...
My txt file has data something like this,


01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test1,41203016,,/
01,0000000,xxxxxxx/ ...
3,332
Posted By r@v!7*7@
Thanks for your reply. I tried this.. awk...
Thanks for your reply.

I tried this..
awk -F"," -v X="03" -v N=6 '($1 == X) && ((++L)>=(N+0)) { $2="replace2"; print $2 ; exit }' myfile.txt > temp.txt

but this is replacing whole content of...
3,332
Posted By r@v!7*7@
Thanks a lot for the command and a beautiful...
Thanks a lot for the command and a beautiful explanation.

---------- Post updated 04-10-15 at 02:34 PM ---------- Previous update was 04-09-15 at 02:53 PM ----------

I have an additional...
3,332
Posted By r@v!7*7@
Get nth occurence of string from a file
I have file in which the data looks like this,

01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test1,41203016,,/
01,0000000,xxxxxxx/...
Showing results 1 to 17 of 17

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