Search Results

Search: Posts Made By: siba.s.nayak
19,110
Posted By siba.s.nayak
below command may help you.... sed -i...
below command may help you....

sed -i 's/[Pp][rR][oO][dD][oO][pP][sS]/productionoperations/g' test_file
11,831
Posted By siba.s.nayak
If you want to check the size of current...
If you want to check the size of current directory incluing files and subdirectories in it, then best option is to use du .
5,465
Posted By siba.s.nayak
Thank you ctsgnb and Franklin52... But I need to...
Thank you ctsgnb and Franklin52... But I need to do it using autosys. Can I have some clue on it?
5,465
Posted By siba.s.nayak
Help on Autosys
Hi,

I need to schedule a script to run at 12:00 on first day of every month.
I don't know how to set it. Like days_of_week, do we have days_of_month where we can put 1?

Thanks,
Siba
Forum: Programming 12-30-2010
12,482
Posted By siba.s.nayak
Thanks a lot m.d.ludwig... I found the bug in my...
Thanks a lot m.d.ludwig... I found the bug in my code. The last variale could not be initialized.
Forum: Programming 12-30-2010
12,482
Posted By siba.s.nayak
fprintf() gives segmentation fault
Hi,

I am using fprintf to write few strings toa file which has been opened in write mode.
The syntax is as follows:

printf("Testing 7A.\n");
...
2,480
Posted By siba.s.nayak
echo partner131210.txt | grep -Eo [0-9][0-9]* ...
echo partner131210.txt | grep -Eo [0-9][0-9]*

---------- Post updated at 04:10 PM ---------- Previous update was at 04:08 PM ----------



I doubt we can use cut -c8-13 here because we are...
943
Posted By siba.s.nayak
help on awk
Hi,

I do not understand the following line of code:

awk --file awkfile < file1 > file1.out

The content of awkfile as

-bash-3.00$ cat awkfile
/ 04/

Can anyone please describe it bit...
5,420
Posted By siba.s.nayak
awk -F: '{ print $1 }' <Sample File name>|awk -F@...
awk -F: '{ print $1 }' <Sample File name>|awk -F@ '{ print $2 }' | sort | uniq
38,126
Posted By siba.s.nayak
Regex in find command
Hi,

I need to find out the files whcih contains date in YYYYMMDD in their name.

I don't know if I can use regex in side find.

Now I am using commad for the same purpose which is not full...
1,696
Posted By siba.s.nayak
Hi zaxxon, No, It's not giving the expected...
Hi zaxxon,

No, It's not giving the expected result. It gives me all the files in that directory.

I think it should Because when we issue command grap -v "TRACK" *

It gives the line which...
1,696
Posted By siba.s.nayak
Pattern searching
Hi,

I need small help from you people.

In a directory there are around 150 odd files and few them contain the word "TRACK" and few are not.
How can I find out the the list of those files...
1,582
Posted By siba.s.nayak
Test existance of a file
Hi,

I need to find out if a particular file exists and i am using if with -e option.

Scenarion is like

There is a possibility of two files having nomaincluture like below
First file =...
2,106
Posted By siba.s.nayak
By using sed To read 22nd line the file, ...
By using sed

To read 22nd line the file,
sed -n '22p' <file name>
2,416
Posted By siba.s.nayak
The below line may help... echo...
The below line may help...

echo "exp_bkp_tables_18_Oct_2010_10_50_28.dmp" | awk -F"_" '{ print $4 "-"$5"-"$6" and time "$7":"$8":"$9}'
1,965
Posted By siba.s.nayak
cur_file="*`date +%h`*`" prev_file1="*`date -d...
cur_file="*`date +%h`*`"
prev_file1="*`date -d "-1 month" +%h`*"
prev_file2="*`date -d "-2 month" +%h`*'

if [ -e $cur_file ]; then
<Stmt>
fi

if [ -e $prev_file1 ] ; then
<stmt>
fi
if [...
3,090
Posted By siba.s.nayak
I think by adding a sticky bit to the directory...
I think by adding a sticky bit to the directory will resolve your problem but I doubt only super user can adda sticky bit....
1,755
Posted By siba.s.nayak
The below command may help..... egrep -v...
The below command may help.....


egrep -v ";;" Log_file| tr "\n" "\t" | tr "FILE" "\nFILE" | awk -F/ '{ print $NF }' |\
awk -F"\t" '{ print $1";"$2";"$3}'| sed s/";.*)='"/";"/ | sed...
3,489
Posted By siba.s.nayak
Hi, It may solve your problem... sort...
Hi,

It may solve your problem...

sort -n -t"/" +1 -2 <output_file> | sort -t\t +2 -3 +1 -2 -n +0 -1

Thanks
5,959
Posted By siba.s.nayak
Hi "thegeek" It was just a mistake....I think...
Hi "thegeek"
It was just a mistake....I think you understood my intension.
5,959
Posted By siba.s.nayak
sftp file size differ
Hi,

I have one doubt over sftp.

I am trnasferring a file from server1 to server2 using sftp.
The size of the file shows different in file 1 and file2 after sftp even though it shows same...
1,658
Posted By siba.s.nayak
grep help
Hi
I am in doubt over how to use grep here,
The scenario is like,
I have list of files and from then around 30 files contain the string "CE_" and from those 30 around 20 files contain the word...
1,771
Posted By siba.s.nayak
Why don't you use basename and dirname command? ...
Why don't you use basename and dirname command?
basename /app/myapp/bin/my.sql
my.sql


dirname /app/myapp/bin/my.sql
/app/myapp/bin
11,090
Posted By siba.s.nayak
sed -n...
sed -n 's/\(.\{105\}\).\(.\{50\}\).\(.\{79\}\).\(.*\)/\1XXX\2XXX\3X\4/gp' sample_file
5,431
Posted By siba.s.nayak
Can you post the sample input file?
Can you post the sample input file?
Showing results 1 to 25 of 204

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