Ubuntu :: Get Text String Pathway Instead Of Button?
Oct 27, 2010In the past, the filebrowser (nautilus) had a navigation-field with the pathway as text , but now there are buttons. I wonder how I can get back to the old-way.
View 2 RepliesIn the past, the filebrowser (nautilus) had a navigation-field with the pathway as text , but now there are buttons. I wonder how I can get back to the old-way.
View 2 RepliesI have a line in a text file that has 40 random characters within a tag and i want to change the characters to a new set of 40 random characters (alphanumeric a-z 0-9 etc)
The line in the text file looks like this:
Quote:
How would i go about doing that?
Also second question same as the above but how would i remove them instead of replacing them?
If I have a word in a text file and I need to replace it by another word (for example, i need to replace abc by fff) so what is the command I can type it?
I am using vi editor.
I want to create a script wherein it will put a string somewhere on the text file. I tried to create a script using redirect ">" and then put it on top of the file.
The text contains code...
I'm trying to search all .log files in ~/.irssi/irclogs/ and it's sub directories for the string 'irssi' and I had though the command I'd used for something similar before was.How should I edit the command, and is it possible to output every line found containing the string to file?
View 4 Replies View RelatedI'm writing a centralized logging piece, and I need to grep out logs that have specific date tags. The date command returns abbreviated months (Sep), via "#date -d yesterday '+%b'" but I need it all caps. ie SEP vice Sep. Otherwise the grep doesn't catch it
View 3 Replies View RelatedQ: Is there any way to use grep and sed with a string variable rather than with a file?
The problem: Im running through a LARGE (about 10,000 lines) xhtml file and need to replace every instance of lines beginning <p>~
The following code works but takes a long time mainlly because an in/out operation needs to be carried out on each line. If I could read from a string rather than a file it would take a much shorter time!
Code:
#!/bin/bash
count=$((0))
>tpf
echo "waiting....."
[Code].....
Is it possible to search ALL files on a system for a specific text string? I've been messing around with grep without any luck.
View 2 Replies View RelatedI have a text file which include code...
I mean, this string should be removed from each line and save in another file.
for some reason text shows up every time I move my mouse over a window control button, and about 1/3 of the time the text stays there, frozen until I open up another window and move my mouse over it's window control buttons. Is there a way I can remove this text completely?
View 6 Replies View RelatedWhat i want to do is pretty simple.I want to uncomment every line that begins with "deb" (except for deb cdrom) in /etc/apt/sources.list.I know how to do this through system > administration > software sources.I know I can gksu gedit /etc/apt/sources.list.I'd rather not do it that way.I'd rather have a script do it. It's less work, less typing, less clicking, and would work the same on every ubuntu version.
View 8 Replies View RelatedI need sed to be able to search a string that includes both single quotes (') and double quotes ("). can anyone help me out, there has to be a way to do this.
So far I have tried:
But none of these work and I cannot think of how else to escape the sed quote inside of brackets.
What's the easiest way to search for a string in a text file in GNOME or on the console? I used to do this in kfindfile back on KDE.I'd like to avoid downloading something like desktop search if at all possible because I'm away for the holidays and stuck on a dialup connection.
View 5 Replies View RelatedWhen I press the power button and select 'Hibernate' I get a text string come up on the screen. The last characters are "fail: -6". There is more to it but it's there and gone so quickly I haven't written the rest of it down yet. What this might be?
View 3 Replies View RelatedAssume I have a text file as belowabcdaaaaaaagfgkhahahahahahhahhgfThen gf would be returned
View 4 Replies View RelatedI have a file called Regions.ini that looks like this:
Code:
[Granite]
RegionUUID = 54ab7cd2-0e70-49b7-8020-8dbeb84c08d0
Location = 9991,10007
InternalAddress = 0.0.0.0
InternalPort = 9001
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9
[Syenite]
RegionUUID = 8fc56fdd-0afd-4074-9432-0ae8f42b799f
Location = 9992,10007
InternalAddress = 0.0.0.0
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9
What I need to do is find out what the IP address is after "ExternalHostName ="
After that I will need to compare that IP to whatismyip and if it's different then replace it but that is easy to do with sed. I just can't figure this simple hurdle out.
I have a series of file names in a text file that I generated by running
Code:
bash-4.1# ls -alt *.txz | awk '{print $8}'
and then copy pasting the output. All of these file names have the version number
Quote:
-4.4.1-x86_64-1alien.txz
I just want a method to remove that version number from all the filenames so that I can then add all the packages without version numbers to a blacklist file.
I've tried kwrite and mousepad and both have a search feature and a replace feature but I haven't been able to just have the text removed successfully.
I want to know how can I add something to a specific line.. the output would be something like:
abc
def 123
ghi
Search for string "def" and add something to that line.
I am using C. I have a fuction that returns a string
Code:
I need to format this string so that I can create a text file like so:
So I'm trying:
Code:
But I get errors like:
im tryin to make a tool in visual C++ which will take an input string through a text box,then it will compare tht string with a text file containing data and display the matched results in list box.
View 2 Replies View RelatedI am having trouble writing a script that monitors a text file. When the file contains number 1 (or any other string that is not a command) it does nothing, but when it is something different from 1, it executes that command.
So, there are 2 files: monitor.mon - this is the file that will be checked constanlty; and test.sh - the script that does the job. The monitor.mon file will have its content modified by php. This means a web page will have a form where I input commands and writes does commands in the file. Test.sh will watch when the file's content changes from character 1 to a command, execute that command and write back a 1 so it will not execute it more times.
I tried combining while and if but with no success. Tried reading the file with cat and grep -e but it doesn't seem to recognize when content changes.
dose any one know the text string to enter to DISABLE ip v6 100% during the install?using the gui installer for fedora 5,6,7,8,9 i have been able to disable this ( uncheck a check box) then set the system up manually for ip4 .the reason is for some reason if ip6 is on during the install ( i have had this problem with all versions of fedora f5 through 9 and now 10)then fedora will never, never, NEVER ever connect to the net .the ip6 lookup kills my cable box, i boot into windows and it can not even connect until i unplug the box for 2 min and plug it back in and get a NEW/renewed ip address .so i do believe that i am going to need to do a text install and disable ip6. But the question is HOW ?
View 3 Replies View RelatedI have large text files with space delimited strings (2-5). The strings can contain "'" or "-". I'd like to replace say the second space with a pipe. What's the best way to go?
Using sed I was thinking of this:
sed -r 's/(^[a-z'-]+ [a-z'-]+) /1|/' filename.txt
write such script (bash script). I have some text file with name filename.txt I must check if this file contains string "test-string-first", I must cut from this file string which follows string "keyword-string:" and till first white-space and save it to some variable.
For example. File: PHP Code: PHP Code:
Start 15022011 Eng 12-3-42
SN1232324422 11 test-string-first
SN322211 securities
HH keyword-string:123456321-net mark (11-22)
[Code].....
I am a member of a group which has written a program whose source code is being held in a specific directory (~cs252/Assignments/basicAsst/project) and we want to go through and change the parameters for the function "sequentialInsert." My job is to find all occurances of the function call to "sequentialInsert" and to also list the files from where the code came from. Also, I have to be in the commandsAsst directory when I do this. I have tried grep and find combined together, and I am at a lost.
View 1 Replies View Relatedcopy string a to string b and change string b with toupper() and count the chars
View 3 Replies View RelatedI just downloaded a Plain Text File that contains (what appears to me as) code that will 'unlock' functions of my MS keyboard, now what do I do with it? Here is a preview of some of the contents of the file from the beginning of the text.
[Code]....
.....and so on with different items. My goal in doing this was to enable the zoom button on the keyboard.
How do you toggle between the button and text-based location bar in Nautilus in Lucid. I can only get Nautilus to show the directory path as buttons and not as as text based in the form of /home/Desktop.Previously there was a button to toggle between them.
View 9 Replies View RelatedI just installed 10.04 on a computer I put together, I noticed the button that allows you to switch back and forth to the 'text entry mode' on the nautilus location bar is missing. Is there a way to get this back? I found you can use CTRL+L or use gconf-editor to switch but I used that button quite a bit and want to find a way to get it back.
View 4 Replies View RelatedI am not especially cli adept so could someone tell me the best way to use the diff command to get the difference between a string of text and the contents of a file instead of between the contents of two files?
View 3 Replies View Related