LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 04-23-2010, 09:13 AM   #1
shravee
Member
 
Registered: Sep 2009
Posts: 84

Rep: Reputation: 16
Post doubt on {} and shell delete cmds on AIX


hi all,

Query 1.

what is the use/purpose/meaning of " {} " in find /home -name chah.log -exec ls -l {} \;


Query 2.

I am working on AIX. when I create a script file and start writing commands and if i want to delete a letter / word , then I find it very difficult to do it.
in short: how to delete a letter or a word in a script file. my backspace or delete key has NO significance.

regards
shravee
 
Old 04-23-2010, 09:16 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
{} represents the file that find has found.

Regards question 2 (better to ask one question per thread to avoid confusion) which editor are you using?
 
Old 04-23-2010, 10:11 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
I would hazard a guess you are using vi.
If you are not able to use vim or some other editor, then:

delete letter - x
delete word - dw

If you enter a number prior to the above you will delete that many, 2x will delete 2 letters.
 
Old 04-23-2010, 11:52 AM   #4
shravee
Member
 
Registered: Sep 2009
Posts: 84

Original Poster
Rep: Reputation: 16
hi catkin.

I am using vi editor.
so plz tell me what is the command to delete a letter and delete a word.

regards
shravee
 
Old 04-23-2010, 01:02 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by shravee View Post
I am using vi editor.
so plz tell me what is the command to delete a letter and delete a word.
Did you even read the above posts?
 
Old 04-23-2010, 01:11 PM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Homework?
 
Old 04-23-2010, 03:50 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
moved to AIX
 
Old 04-24-2010, 10:19 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Use the man pages and Google.
 
Old 08-10-2011, 10:27 PM   #9
shravee
Member
 
Registered: Sep 2009
Posts: 84

Original Poster
Rep: Reputation: 16
hi,

I have few core files in my working dir.

the dir has foll type of files

core.3423.232.tmp
core.332.3423.txt
core.42342.342.dmp
core.3432.342234.gz
javacore.3423432.3423
core.43243.3424

out of these type of core files i need to remove only the type which is shown in bold.
i.e. core.43243.3424


the nos are not the same, they vary.

can someone please help onthe same. should i use find command or a normal ls will do.

rgds

shravee
 
Old 08-11-2011, 03:22 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Better you start a new thread shravee and define what makes the file name to delete unique -- core.<integers>.<integers> with no .extension on the end?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force delete key to work in aix ksh ? Vilius AIX 10 05-11-2011 09:36 AM
C++ Delete operator - Doubt yasothamani Programming 9 10-10-2007 05:35 AM
shell commad doubt plz madhugp Linux - General 3 12-24-2006 10:08 AM
Doubt in shell script malru AIX 2 11-24-2006 07:59 AM
How to input several cmds to interactive apps through one shell cmd? kornerr Linux - General 4 01-01-2006 01:05 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 04:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration