Sponsored Content
Full Discussion: Cannot do this simple thing
Top Forums UNIX for Dummies Questions & Answers Cannot do this simple thing Post 302113311 by tantric on Thursday 5th of April 2007 02:27:13 AM
Old 04-05-2007
Cannot do this simple thing

I think its a bash thing and it is really annoying me..

its difficult to explain the problem but I will try..

When I type a command on the shell prompt... then lets say I go back to the 2nd letter and correct a typo.. after that I cannot get the cursor beyond the last alphabet that I had typed..

In the following.. type is in red and position of cursor is: ^

% ./a.out -g file.txt -n 15
^

Then I correct the typo..

% ./a.out -f file.txt -n 15
^

then I want to continue ahead and complete the command

% ./a.out -f file.txt -n 15
^

but my cursor wouldnt go beyond the last character (5 in this case) aaargghh !!! Smilie

So I have to delete 5 using "x", now the cursor comes to 1..and I cannont go beyond that !!!!!

Smilie
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Dumb thing to do

I'm writing for a friend. He has a SPARC system at home that has Solaris 7 on it. He did not yet create a user on it and has not set the CONSOLE to allow the root user to log in remotely. Now, something happened and the system will not even boot to the Boot PROM. How can he get into the system... (4 Replies)
Discussion started by: danh
4 Replies

2. UNIX for Dummies Questions & Answers

very simple shell thing..

set a = 5 set b = a echo $b a // will print a I want to get echo ${$b} // something expression like this to get value of 'a' by accessing the value of b. 5 ie. fetching the value of a with the inputs of b ( frm b --thro a ---5) Is it possible to execute something like this? ... (2 Replies)
Discussion started by: sskb
2 Replies

3. UNIX for Dummies Questions & Answers

Shortcut thing?

Hey, im new to Linux...totally new. I know there is a way to assign a type of variable or something to a directory, so instead of having to type "cd /var/www" etc, I could just assign a variable to the directory, so I could just do "cd $assignedvar" and it would be there...if you get what I... (0 Replies)
Discussion started by: mo0ness
0 Replies

4. OS X (Apple)

Ok another small thing if anyone knows...

Hi i wanna change the look of my terminal. For example i wanted a black background and like a cyan colored text so it stands out against the black. Is there anyway i can do this?. I am running Mac OSX if that helps any at all (2 Replies)
Discussion started by: Corrail
2 Replies

5. Shell Programming and Scripting

Grep related thing

Is there any way i can use grep to do this I have file which is continuously growing,I want grep to star search from say line number 1210 is that possible. (5 Replies)
Discussion started by: aliahsan81
5 Replies

6. Ubuntu

need some help on this jolicloud thing??PLease help !!!!

i am not used to linux ubuntu... i get the same error code while booting from jolicloud.... can you help, please??????? i can't directly installed it because everytime i tried it, installation panel freezes, so i waited and it booted from live cd.... i tried to install jolicloud... (0 Replies)
Discussion started by: cemdede@hotmail
0 Replies

7. UNIX for Dummies Questions & Answers

Difference between two cmmands that did the same thing

Hello everybody, Can you please help me unerstand the difference between: # grep word_we_are_looking_for /directory/file and # more /directory/file |grep word_we_are_looking_for I know that the result is the same. Thank you for your help. Please use next time code tags for your... (5 Replies)
Discussion started by: adilyos
5 Replies
SRM(1)							      General Commands Manual							    SRM(1)

NAME
srm - securely remove files or directories SYNOPSIS
srm [OPTION]... FILE... DESCRIPTION
srm removes each specified file by overwriting, renaming, and truncating it before unlinking. This prevents other people from undeleting or recovering any information about the file from the command line. srm, like every program that uses the getopt function to parse its arguments, lets you use the -- option to indicate that all following arguments are non-options. To remove a file called '-f' in the current directory, you could type either "srm -- -f" or "srm ./-f". OPTIONS
-d, --directory ignored (for compatibility with rm(1)) -f, --force ignore nonexistent files, never prompt -i, --interactive prompt before any removal -r, -R, --recursive remove the contents of directories recursively -s, --simple only overwrite with a single pass of random data -m, --medium overwrite the file with 7 US DoD compliant passes (0xF6, 0x00, 0xFF, random, 0x00, 0xFF, random) -z, --zero after overwriting, zero blocks used by file -n, --nounlink overwrite file, but do not rename or unlink it -v, --verbose explain what is being done --help display this help and exit --version output version information and exit NOTES
srm can not remove write protected files owned by another user, regardless of the permissions on the directory containing the file. The -s option overrides the -m option, if both are present. If neither is specified, the 35-pass Gutmann algorithm is used. Development and discussion of srm is carried out at <http://sourceforge.net/project/?group_id=3297>, which is also accessible via <http://srm.sourceforge.net>. SEE ALSO
rm(1) Mac OS X 20 September 2004 SRM(1)
All times are GMT -4. The time now is 02:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy