Search Results

Search: Posts Made By: JunkYardWars
6,328
Posted By JunkYardWars
I think u will need to find the diff of current...
I think u will need to find the diff of current that with the start and end date of the month u want backup.
and u may use the find . -mtime -60 -mtime +30
-mtime -60,...less than 60 days ago...
5,322
Posted By JunkYardWars
well show what u have done..so far.......may be...
well show what u have done..so far.......may be we can help , once u get started with it
Forum: What is on Your Mind? 04-13-2006
3,065
Posted By JunkYardWars
You need to understand this isn't a tutor...
You need to understand this isn't a tutor class..there are lots of tutorials available on unix scripting u should try them :-)
3,299
Posted By JunkYardWars
Input 1- 100 Input 2 -1000 hope thats what u...
Input 1- 100
Input 2 -1000
hope thats what u wanna do....

#! /bin/ksh
typeset -i ranger=$1
typeset -i mark=$2
typeset -i range=`expr $ranger - 1`
while [[ $ranger -lt $mark ]]
do
echo...
Forum: HP-UX 04-12-2006
25,155
Posted By JunkYardWars
try df -k
try
df -k
5,659
Posted By JunkYardWars
This is the prelim and u will have to look for...
This is the prelim and u will have to look for tighter time checking ..but thats the start....
#! /bin/ksh
input=$1
echo $input
if [[ $input = [0-2][0-9]:[0-6][0-9] ]]
then
echo "Correct input"...
18,757
Posted By JunkYardWars
I dont have any clue for how to do this...
I dont have any clue for how to do this either..but may be this is the way forward... may be someone else from the group can help u sorting out this messy script to tell how to do this :-)
#!...
29,674
Posted By JunkYardWars
or awk solution awk ' NR>=3&&NR<=6 {print}'...
or awk solution

awk ' NR>=3&&NR<=6 {print}' file
7,684
Posted By JunkYardWars
I think this will do the trick..but whats the...
I think this will do the trick..but whats the requirements is..still not sure about..
sed -e 's/[^~]*\/\(~[^/]*\).*/\1/' data2
1,553
Posted By JunkYardWars
use sort -t "U" +1nr data1 see if it...
use
sort -t "U" +1nr data1

see if it solves urs purpose.....
8,763
Posted By JunkYardWars
have u tried dir command type:- I cant...
have u tried dir command
type:- I cant understand what u looking for??? but i guess thats it...or u want to see files within dir also???


dir
46,770
Posted By JunkYardWars
sed -e '1,/pattern/s/pattern/REPLACEMENT/'...
sed -e '1,/pattern/s/pattern/REPLACEMENT/' <INPUTFILE

dont ask me why it works...cause that will sound like homework....just figure it out :-)
regards
8,451
Posted By JunkYardWars
can u provide the data..and by example what u...
can u provide the data..and by example what u really want.....can't get urs requirements
23,953
Posted By JunkYardWars
can please someone explain me the diff between ...
can please someone explain me the diff between
It works perfectly fine to give last word
sed -e 's/.*,\([^,]\)/\1/' dat1
xyz
rty
tsrt

Shouldn't this also give the last word..i accidently...
14,762
Posted By JunkYardWars
u can use the cut to extract the field...
u can use the cut to extract the field required..this case the fifth field(try to check to make sure that urs system is using the same format for passwd file)and then u can use the grep command to...
34,262
Posted By JunkYardWars
I think u want this........ sed -e '/^$/d' -e...
I think u want this........
sed -e '/^$/d' -e '/^ \{3,\}/d' Inputfilename
but beware it may not give the same result as the sequential application of the same commands....
Regards.
8,451
Posted By JunkYardWars
yah....but as in the file was contaning one space...
yah....but as in the file was contaning one space before "...but yah it would be better as sed -e 's/[ ]*"/"/g' inputfile>outputfile
8,451
Posted By JunkYardWars
complicating the uncomplicated things..... sed...
complicating the uncomplicated things.....
sed -e 's/[ ]"/"/g' inputfile>outputfile...
in case u have read the request is to act on file and not on echo statemtn...
as for info ...echo removes the...
8,451
Posted By JunkYardWars
use this....
sed -e 's/[ ]"/"/g' oldfile>newfile
Forum: Programming 03-29-2006
5,611
Posted By JunkYardWars
I have a CC native compiler on solaris10..it...
I have a CC native compiler on solaris10..it works perfectly on it..and i dont think that ..const int max =20;" instead of "#define max 20 is required...C++ ANSI standrads dont prohibits it.
5,208
Posted By JunkYardWars
I think u have some confusion regarding variable...
I think u have some confusion regarding variable and file name..hope this will clarify it.

#! /bin/ksh
ls -t tmp/backup/$filename.* | sed 1,2d | while read FILEVAR ; do rm $FILEVAR
done
2,505
Posted By JunkYardWars
sed 's/|[ ]*/|/g' data this will solve urs...
sed 's/|[ ]*/|/g' data
this will solve urs purpose
5,208
Posted By JunkYardWars
Do you want the older file deletion...u can...
Do you want the older file deletion...u can achieve it by ctime of find command..
find /usr/local/apache/htdocs/website/zip_backup/ -name -ctime +2 -exec rm {} \;
This will remove the files which...
1,468
Posted By JunkYardWars
sed
Hope this is what u looking for
sed -e "s/\(.*\)/'\1'/" inputfile > outputfile
3,126
Posted By JunkYardWars
Thanks man...
Thanks man...
Showing results 1 to 25 of 26

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