Search Results

Search: Posts Made By: lijjumathew
Forum: Linux 11-15-2017
3,684
Posted By lijjumathew
Thank you all. This: find /abc | awk '{sub...
Thank you all.
This:
find /abc | awk '{sub (/[^\/]*\./, "*."); T[$0]} END {for (t in T) print t}'
worked for me.

It is not homework :)
I have to prepare a list with all sub directories and...
Forum: Linux 11-14-2017
3,684
Posted By lijjumathew
How to print full path name along with file extension?
Hi

I have a requirement like this:

/abc/a/x.txt
/abc/a/y.txt
/abc/b/x.gz
/abc/b/y.txt

I need output like this:
/abc/a:*.txt
/abc/b:*.txt
/abc/b:*.gz

I have tried find /abc -type f...
1,223
Posted By lijjumathew
Extract date from files based on file pattern
I want to extract dates from the files and i have different types of files with pattern. I have list file with the patterns and want to date extract based on it in a sh script

Files in the...
1,524
Posted By lijjumathew
Hi Thanks for responding. I am getting below...
Hi
Thanks for responding. I am getting below error

': not a valid identifierile
Please use CODE tags as required by forum rules.
1,524
Posted By lijjumathew
Directories having spaces
Hi
I have a list file with complete path of files and there are directories with spaces. Now when i read the list file, read the line and read the file it says no file found because of the space....
3,025
Posted By lijjumathew
Delete everything owned by a particular user
I want to delete all files and folders owned a user say abcuser in the folder /tmp .
Can you please give me the command ?

Thanks
Matt
2,871
Posted By lijjumathew
Call a UNIX script inside another and dont wait for it
Hi
I have two scripts script1.sh and script2.sh(say this script is a long running).
I want to call script2.sh inside and script1.sh,but when i call script2.sh i dont want to wait for script2 to...
2,937
Posted By lijjumathew
Hi Jim I need to get 50 days back date from...
Hi Jim
I need to get 50 days back date from last friday i.e 9/14/2012
The output should be 20120725
2,937
Posted By lijjumathew
Thanks Jim. I need 50 days OLD/ BACK date from...
Thanks Jim.
I need 50 days OLD/ BACK date from the last Friday.
I am trying to tweek the code. Let me know if you can.

Thanks for the help
2,937
Posted By lijjumathew
nth date
Hi
I need to get the date of 50th day from the last friday for one of the calculation into variable in Unix script. The format required is YYYYMMDD. I have solaris OS and dont have GNU date. I would...
3,429
Posted By lijjumathew
list files not matching wild card
Hi
I need a unix command which generates the list of files that dont match the wild card pattern in the current directory

say for example
I have files like
x.addfd.txt.H2012.txt...
11,733
Posted By lijjumathew
Hi I need a script and it is c shell.
Hi
I need a script and it is c shell.
11,733
Posted By lijjumathew
Hi Don Thanks for the reply. That worked. But...
Hi Don
Thanks for the reply. That worked.
But one small change in my question. Sorry for not letting you know this earlier.
My file names are
abc.C201206015423.txt
abc.C201207013456.txt...
11,733
Posted By lijjumathew
Hi I tried this ls abc.* | awk -F'.'...
Hi
I tried this
ls abc.* | awk -F'.' 'int($2)>'201206000000' {print $0}'
and it doesnt show up anything

Thanks

---------- Post updated at 01:11 PM ---------- Previous update was at 01:09...
11,733
Posted By lijjumathew
I didnt clearly get it. Why do we need test.sh...
I didnt clearly get it. Why do we need test.sh here ?
11,733
Posted By lijjumathew
Thanks for responding. All the files are in...
Thanks for responding.
All the files are in same directory.
The date can be any date. I will have a variable for that.
I just gave a date in the example.

Thanks
11,733
Posted By lijjumathew
Find files greater than a particular date in filename.
I need a unix command which will find all the files greater that a particular date in the file name.

say for example I have files like(filenaming cov : filename.YYDDMMSSSS.txt)
...
1,459
Posted By lijjumathew
perl oneliner to cut the file
Hi
I have a file say text.txt and has data as below.

text.txt
-------

/abc/def/tom/hanks
/abc/def/al/pacino
/def/dgg/matt/damon

Now I have to cut the field 3 and field 4 treating / as...
Showing results 1 to 18 of 18

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