![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| history of commands | superuser84 | Linux | 2 | 12-07-2007 04:55 AM |
| History commands | abu_hassan | SUN Solaris | 1 | 02-20-2007 10:24 AM |
| combining sed commands | Dave724001 | UNIX for Dummies Questions & Answers | 2 | 09-28-2006 12:41 PM |
| combining unix commands and awk program | Reza Nazarian | Shell Programming and Scripting | 2 | 05-19-2006 08:37 PM |
| Can I use history command to run previous commands? | firebirdonfire | UNIX for Dummies Questions & Answers | 2 | 03-30-2001 09:05 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
What is the correct format for a single command that would combine portions of 2 different lines in the command history? I'm using a C shell. Here's a simplified command history to clarify:
4 rm file1 5 ls -ld file2 file3 file4 6 cat file 5 With the above history, what would be the command to remove the files called file3 and file 5 using only history references and word identifiers? Here is what I was trying: !4 5:2 6:1 ...didn't work. I'm getting frustrated with having to repeatedly enter long pathnames, etc. Thanks in advance for any help, -Dbyte |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|