Search Results

Search: Posts Made By: AbhijitIT
2,470
Posted By AbhijitIT
line=`grep "$Index_Line"...
line=`grep "$Index_Line" $HOME/UnixCw/backup/trackfile.txt`


sed -i "/$line/d" $HOME/UnixCw/backup/trackfile.txt
...
2,470
Posted By AbhijitIT
Delete line from file
hi all,
i have trackfile.txt which contains the data as

0 /home8/mc09ats/UnixCw/t1
1 /home8/mc09ats/UnixCw/t2
2 /home8/mc09ats/UnixCw/t3
3...
1,719
Posted By AbhijitIT
Thak you so much....Its working so file
Thak you so much....Its working so file
1,719
Posted By AbhijitIT
seperate it means part before space i want in one...
seperate it means part before space i want in one variable(fileindex) and part after space in other(filepath)
fileindex and filepath are variables

---------- Post updated at 09:26 PM ----------...
1,719
Posted By AbhijitIT
Seperate file content
hi all,
i have some file whoes contents are

0 /home8/mc09ats/UnixCw/a1
1 /home8/mc09ats/UnixCw/a2
2 /home8/mc09ats/b3
3 /home8/mc09ats/UnixCw/d1

i want to...
1,542
Posted By AbhijitIT
Store number in a directory
hi all,
this is some code in c...i want to write script for this...

for(i=0;i<10;i++)
{
store i in backup directory;

}
3,115
Posted By AbhijitIT
Can you please tell me the script for that...
Can you please tell me the script for that...
3,115
Posted By AbhijitIT
Same name files in one directory
hello,
I have backup directory and if i will delete file then it is going in backup
directory. my concern is if backup have file whoes name is abhi and user
again deletes...
3,675
Posted By AbhijitIT
read file content
i have one file

abhi.txt

its contents are

home8/mc09ats/UnixCw/backup/file1
home8/mc09ats/file2

i want to read this content of file using while loop..

in this i want to seperate the...
1,849
Posted By AbhijitIT
no that path is in file...file consist of path......
no that path is in file...file consist of path...
can you please elaborate that how can i extract it from file..

---------- Post updated at 01:25 AM ---------- Previous update was at 01:13 AM...
1,849
Posted By AbhijitIT
String Operation
/home8/mc09ats/UnixCw/file4

this is the path...i have 2 variables filename and filepath...i want

filename=file4

filepath=/home8/mc09ats/UnixCw

i.e. i think i have to find last occurence...
1,755
Posted By AbhijitIT
Still not working...this is my code plese have a...
Still not working...this is my code plese have a look at it..

for index in $@
do

echo "index is $index"

fname=`grep -w "^$index" $HOME/UnixCw/backup/Path.txt`

...
1,755
Posted By AbhijitIT
Grep command
what grep will return if pattern doesnt found....
I have written this code...

fname=`grep -w "^$index" $HOME/UnixCw/backup/Path.txt`

If grep fail to find pattern what fname will contain then?...
2,462
Posted By AbhijitIT
I tried but its not working...can you please...
I tried but its not working...can you please elaborate more..I am very new to unix...sorry for trouble
2,462
Posted By AbhijitIT
How to compare that file name is empty?
i am finding some pattern this way..

fname=`grep -w "^$index" $HOME/UnixCw/backup/Path.txt`

how to check that fname is empty i.e. if pattren doesnt found then i want to do other...
2,233
Posted By AbhijitIT
what is this inline? is it syntax or i am...
what is this inline?

is it syntax or i am suppose to write the filename

i want to read the value after index into any variable how i can do it?
2,663
Posted By AbhijitIT
restoring file to its default location...
Hello everyone,
I am new to unix shell.

I have a file called Path.txt....and i have data in that as

1 abhi
...
2,233
Posted By AbhijitIT
File Operation
I have one text file like
1 filename
2 filename2
3 hi
4 myname

i have one variable in which i have index value..i.e.1,2,3 and so...

i want to copy value after the index into...
1,689
Posted By AbhijitIT
I am very new to unix....so can you please tell...
I am very new to unix....so can you please tell me that is this right..
my path is backup/path.txt and string is abhi so now i will be writting
find $backup/path.txt -name "abhi"

is this right?
1,689
Posted By AbhijitIT
Help with Compare and search content in directory
Hello,
How to search in directory by comparing some string with the content of
directory.
Ex:
I want to compare abhi string with the content of backup...
3,113
Posted By AbhijitIT
Extremely sorry for the language I used...Its...
Extremely sorry for the language I used...Its because of chatting habit...I will never repeat it again...:-(
3,113
Posted By AbhijitIT
Ya U r right...but how I can restore it to Its...
Ya U r right...but how I can restore it to Its original location.
3,113
Posted By AbhijitIT
Thank you so much arunkumar for your reply..... ...
Thank you so much arunkumar for your reply.....

what I am doing is I have written delete script. in which I am simply moving deleted files to backup directory..& in this script only I have created...
3,113
Posted By AbhijitIT
I want to put path names of deleted files...
I want to put path names of deleted files...
3,113
Posted By AbhijitIT
Create File
Hello,
I am new to shell scripting. Can anyone plz tell me that how to write script
to create the file and insert the data into it.

what i am doing is in script i have...
Showing results 1 to 25 of 28

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