Search Results

Search: Posts Made By: sudeep.id
5,011
Posted By sudeep.id
Hey, The requirement is different entirely....
Hey,

The requirement is different entirely. The mentioned link is for a question where all the file with the path were required. But here i have to search the last modified file from all the...
5,011
Posted By sudeep.id
Help needed - find command for recursive search
Hi All

I have a requirement to find the file that are most latest to be modified in each directory. Can somebody help with the command please?


E.g of the problem.

The directory A is...
2,451
Posted By sudeep.id
Getting directories resulted from Find in one file
Hi

Need help for the following scenario.

I am having two directories /tmp/a and /tmp/b. /tmp/a again has subdirectories /tmp/a/aa and /tmp/a/ab.

I want to run a script from /tmp/b to search...
7,355
Posted By sudeep.id
You have deleted all the files in the current...
You have deleted all the files in the current directory.
works like this
which deleted all files from current dir and then which didn't found any file in the directory so u got an error...
2,089
Posted By sudeep.id
ls -a | grep "^\." Please view this code...
ls -a | grep "^\."

Please view this code tag video (https://www.unix.com/how-post-unix-linux-forums/167686-forum-video-tutorial-how-use-code-tags.html) for how to use code tags when posting code...
3,542
Posted By sudeep.id
Sed for selective pattern replacement
Hi

I am having a code snippet


grant permission to all user
sts|ln|uSe|PSG
sajncht|se|Use|PPSPSG
psg|ln|use|TSPSG
sts_user.Me revoke


I need to change all occurance of use...
1,788
Posted By sudeep.id
Ohh... I missed this solution... How foolish of...
Ohh... I missed this solution... How foolish of me... Thanks a lot :)
1,788
Posted By sudeep.id
Thanks But the requirement has to be...
Thanks

But the requirement has to be sufficed through a shell script or unix commands only. Can this be achieved via unix?
1,788
Posted By sudeep.id
Replacing a pattern in different cases in different columns with a single pattern
Hi All

I am having pipe seperated inputs like

Adam|PeteR|Josh|PEter
Nick|Rave|Simon|Paul
Steve|smith|PETER|Josh
Andrew|Daniel|StAlin|peter
Rick|PETer|ADam|RAVE

i want to repleace all the...
4,926
Posted By sudeep.id
Ok.. will keep that in mind... Is there any...
Ok.. will keep that in mind... Is there any solution for my issue?
4,926
Posted By sudeep.id
Sorry for typo... yes the assumption is correct....
Sorry for typo... yes the assumption is correct. Only the first instance has to be replaced. I wrongly copied the command. It is

sed 's/PROD GOBAL/PROD/' sample.txt > new_sample.txt

I am not...
4,926
Posted By sudeep.id
sample.txt __________ "PROD GLOBAL" ...
sample.txt
__________
"PROD GLOBAL" "BPROD Tray"
"ABC LONDON" "Capla"
"ARAS GLOBAL COMPANY" "AAC - Optiver"

> sed...
4,926
Posted By sudeep.id
Hi No the new string will always have the...
Hi

No the new string will always have the string length less than 44 chars. It will not pass 45 chars limit

Sample text
_______________

"PROD GLOBAL" "BPROD Tray" ...
4,926
Posted By sudeep.id
I have tried sed and awk but the alignment is...
I have tried sed and awk but the alignment is getting compromised.
4,926
Posted By sudeep.id
With the above code, the string would be replaced...
With the above code, the string would be replaced but the alignment would not be preserverd. What I require is suppose column 1 is 45 chars and col 2 starts from 46th chars, even after substitution...
4,926
Posted By sudeep.id
Preserving file format and spacing in output file
Hi

I have a file with the following structure

"VATTENFALL GLOBAL" "Vattenfall Tray"
"BARCLAYS BANK LONDON" "Capula"
"P1...
7,213
Posted By sudeep.id
Thanks shailesh But the problem is that...
Thanks shailesh

But the problem is that the file is very huge and xtra space consumption for a temp file is to be avoided even for creating any sort of swap in real time. Can it be done without...
7,213
Posted By sudeep.id
Deleting "user input line number" from a file using sed
Hi


I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a...
1,846
Posted By sudeep.id
Deleting "user input line number" from a file using sed
Hi

I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed...
6,125
Posted By sudeep.id
Suppose the file is abc.txt from which u have to...
Suppose the file is abc.txt from which u have to extract out last line..

the command is
cat abc.txt | awk '{print $NF}'
13,938
Posted By sudeep.id
Thanks... The whitespaces before EOF were the...
Thanks... The whitespaces before EOF were the problem.
13,938
Posted By sudeep.id
The error message i have written is precise. As i...
The error message i have written is precise. As i stated the same section of code (sqlplus ... << EOF to EOF) when used as an independent script is inserting values and if this is section is removed...
13,938
Posted By sudeep.id
Error with EOF when used in function
Hi all

I am inserting record in oracle database using shell script. When the sql part is directly written in the shell script the record is getting inserted. But when the same piece of code is...
Showing results 1 to 23 of 23

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