Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: sachinkl
26,354
Posted By sachinkl
* indicates a executable file.... you can...
* indicates a executable file....

you can find that by running the below command :

$ ls -F
4,771
Posted By sachinkl
Hey vbe....I need to do it through a unix script.
Hey vbe....I need to do it through a unix script.
4,771
Posted By sachinkl
Find and delete files and folders which are n days older from one unix server to another unix server
Hi All,

Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older.

Please note that I need to delete files on remote unix server.So,...
7,385
Posted By sachinkl
ok... give me a command which searches for...
ok...

give me a command which searches for files only in the current directory and no sub directories and deletes them at the same time.

Also, please consider the point that the file list is...
7,385
Posted By sachinkl
Balaji, This will list all the directories,...
Balaji,

This will list all the directories, but i need only the matching directories.

I tried to update the command like this:

ls -l [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | grep...
7,385
Posted By sachinkl
List matching directories in current folder only on AIX
Hi,

I need to find the list of matching direcories in current folder only and no subfolders on AIX.I tried -maxdepth option but its not working.

Also, tried ls -d option to list the matching...
1,609
Posted By sachinkl
i guess u need to use sort command further...
i guess u need to use sort command further...
1,609
Posted By sachinkl
I am not sure why are you using -exec with ls...
I am not sure why are you using -exec with ls -ltr..You can directly use like,

find / -name "*pattern*" | ls -ltr
713
Posted By sachinkl
can u elaborate little more. I am not sure what...
can u elaborate little more. I am not sure what exactly you are trying to do..
25,237
Posted By sachinkl
sending multiple files along with mail message using uuencode
Hi,

I have a requirement to send a mail with multiple files attached to it and along with the text message in the mail.

I am trying sumthing like below but it only sends me the text message...
Forum: Solaris 02-15-2011
6,739
Posted By sachinkl
Yesterday's date on Sun solaris
Can someone help me with the command to get yesterday's date on Sun solaris??
7,331
Posted By sachinkl
Easiest way would be: Display N lines after...
Easiest way would be:

Display N lines after match

The following example prints the matched line, along with the 3 lines after it.

A stands for after the matching line,3 fetch next 3rows
$...
2,622
Posted By sachinkl
This is the perfect answer that i was looking...
This is the perfect answer that i was looking for. Great job Rajamadhavan:b:
41,373
Posted By sachinkl
What is -mtime 0 in find command?
What is "-mtime 0" option in find command. Does it consider the files that are of today lets say today is 4th Aug or will include files 24 hrs past from the current time????
2,622
Posted By sachinkl
Hi Pravin.. I tried what u said but it...
Hi Pravin..

I tried what u said but it gives me the below error:

awk: syntax error near line 1
awk: bailing out near line 1
$ xargs: Child killed with signal 13
2,622
Posted By sachinkl
$ ls -l | awk '/Aug 2/ { print $NF }' | xargs...
$ ls -l | awk '/Aug 2/ { print $NF }' | xargs grep -c 'sachin'

This is wat i was looking for. Can you tell me what is xargs and what does it do . Also, it gives me filenames and the count of...
2,622
Posted By sachinkl
It still does not answer my question. It looks...
It still does not answer my question. It looks for string 'sachin' in the filenames which is i dont want. I need to find total count of string 'sachin' in the text present inside the files not in the...
2,622
Posted By sachinkl
It just give me files of Aug 3. How about finding...
It just give me files of Aug 3. How about finding the total count of a string lets say "sachin" in all the files of Aug 3
2,622
Posted By sachinkl
i need to find all files of lets say Aug 2 and...
i need to find all files of lets say Aug 2 and the counts for a particular string lets say "abc" is present in the files received for Aug 2
2,622
Posted By sachinkl
Find files of particular day
Hi,

I need to find all files of particular day lets say for 2nd august in below.

-rw-r--r-- 1 skl eusdc 8168 Aug 5 19:31 aabc123.txt
-rw-r--r-- 1 skl eusdc 4251 Aug 5...
17,607
Posted By sachinkl
its kill 0(zero) ...and i think you tried with o...
its kill 0(zero) ...and i think you tried with o (character) its zero actually.
Forum: Solaris 08-02-2010
4,454
Posted By sachinkl
to set alias for a command use, ex: below ...
to set alias for a command use, ex: below

alias rm = "rm -i"
Forum: Solaris 08-02-2010
3,504
Posted By sachinkl
1)to see the list of Environment variables use...
1)to see the list of Environment variables use ..... ENV command...they can be set in your.profile file in your home directory.....

Or to set from command prompt use export PATH = $PATH:<add path...
10,883
Posted By sachinkl
grep -v "ID=180" <filename> > abc.txt # will...
grep -v "ID=180" <filename> > abc.txt # will print all lines that does not match the string "ID=180" and will direct them to abc.txt
6,556
Posted By sachinkl
There is another way of doing it ...just mention...
There is another way of doing it ...just mention the alias name in your mailx statement instead of actually mentioning the all id's that can complex your statement. Actual entry for your id's can be...
Showing results 1 to 25 of 32

 

Featured Tech Videos

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