Search Results

Search: Posts Made By: tipsy
13,527
Posted By tipsy
I guess this should work. Let me know if you have...
I guess this should work. Let me know if you have a better way to do it.

find . -type f

Regards,
Tipsy.
13,527
Posted By tipsy
Listing filesnames in bare format with fullpath
Hi,
Need help. How can I get a listing of files in bare format with full path. I mean in the following format.

/root/dir1/sub-dir1/file1
/root/dir1/sub-dir1/file2
/root/dir1/sub-dir2/file1...
2,046
Posted By tipsy
Implications of setting sensitive data in ENV
Hello people,
In shell scripts if some sensitive data is set into the env so that it is available to other scripts called within those scripts -- Are there are security implications ?
-- I...
13,130
Posted By tipsy
Thanks Glenn. Yes. find command does it. ...
Thanks Glenn.

Yes. find command does it.

To list files modified 30 days back
find . -type f -mtime -30

To list folders modified 30 days back
find . -type d -mtime -30

Regards,
T.
13,130
Posted By tipsy
List Files & Folders created/modified
Hello people,
I want to list the files & folders created/modified since a particular date say June 2006. I know I can list recursively thru the folders and use awk to extract the date column to...
2,297
Posted By tipsy
Thanks vgersh99. I should have posted this...
Thanks vgersh99.
I should have posted this query much earlier instead of breaking me head :-)

Regards,
T.
3,331
Posted By tipsy
The reason I was doing it that was for my code I...
The reason I was doing it that was for my code I need the filenames in bare format i.e just the file name without path.
Maybe I will use the basename function to extract just the filename.

Thanks...
2,297
Posted By tipsy
Is it because the value of the variable "files"...
Is it because the value of the variable "files" is getting overwritten in each recursive call? Do I have to make the variable name dynamic instead of "files" ?

Regards,
T.
2,297
Posted By tipsy
Recursive method call getting terminated ???
Hello people,

Need help !!! What am I doing wrong here ?

I am writing a function to recursively list the files under a folder and it's sub-folders. Problem is once it list the files under the...
3,331
Posted By tipsy
Here it is: files=`ls -1 $dir` ...
Here it is:

files=`ls -1 $dir`

for file in `echo $files`
do
echo $dir/$file
done

-- I wanted to list the files in a folder and use that list for further processing....
3,331
Posted By tipsy
Got the solution. A simple for loop worked....
Got the solution. A simple for loop worked. thanks.

Regards,
T.
3,331
Posted By tipsy
Looping thru tab delimited data
Hello people,
Can you please tell me how to loop thru the contents of a variable having tab delimited data using for loop in KSH.

For example:
data1 data2 data3 data4

How can I access the...
3,896
Posted By tipsy
Perfect. Thanks anbu23. Regards, -T
Perfect. Thanks anbu23.

Regards,
-T
3,896
Posted By tipsy
Strip one line from 2 blank lines in a file
Hi
Is there any command to scan thru a file looking for 2 consecutive blank lines and if any remove one of them. Please let me know.

Regards,
Tipsy
7,860
Posted By tipsy
Sorry. It works fine. Thanks, Tipsy.
Sorry. It works fine.

Thanks,
Tipsy.
7,860
Posted By tipsy
Hi, I am using the following AWK command to...
Hi,
I am using the following AWK command to strip some lines from a file based on a pattern. But this is creating an additional blank line at the position where the pattern matched. Please advise...
28,028
Posted By tipsy
Hi Jim, Thanks for your reply. I am getting...
Hi Jim,
Thanks for your reply. I am getting the following error when I tried the command. Are we missing something in the syntax ?

awk: syntax error near line 2
awk: illegal statement near...
48,197
Posted By tipsy
Thanks tmarikle. Regards, Tipsy.
Thanks tmarikle.

Regards,
Tipsy.
48,197
Posted By tipsy
Trim trailing spaces from each line in a file
Hello folks,
Is there a simple way to trim trailing spaces from each line a file. Please let me know.

Regards,
Tipsy.
28,028
Posted By tipsy
Minus of 2 files -- Please help
Hello people,

awk '{print $0}' input1.txt input2.txt |sort -u
Will give the union of the 2 files. Similarly what is command to get just the diff data (i.e minus) of the 2 files. Can I use the...
8,692
Posted By tipsy
Doing this means I have to open a new dedicated...
Doing this means I have to open a new dedicated ISQL connection just to get a value from DB & set it in the Shell variable.
I already have ISQL code inside the script doing a bunch of...
8,692
Posted By tipsy
Setting value of Shell variable from within ISQL
Hi Guys,
Need help. I am using ISQL inside a shell script.
Is there a way to set the value of shell script variable from inside the ISQL code. I do not want to write the results from the SQL to...
11,158
Posted By tipsy
Thanks Jean & Perderabo. The solution does work....
Thanks Jean & Perderabo. The solution does work. Thanks again.

Regards,
Tipsy.
11,158
Posted By tipsy
Unfortunately I do not have the liberty to change...
Unfortunately I do not have the liberty to change the parameter being passed. What I have mentioned is just an example. It can be anyother command with the $ENV.

Is there anything that I can do...
11,158
Posted By tipsy
KSH variable substitution
Hi folks
Please let me know if anyone knows how to handle this.
My KSH script -> testscript.ksh

cmd=$1
ENV="devl"
echo $cmd

This is how I call the script
./testscript.ksh 'ps -ef | grep...
Showing results 1 to 25 of 35

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