General :: Working Off-line With Ubuntu?
Mar 21, 2011
I'm new at working with Linux based systems.Currently I'm working with a Dell notebook that I installed Ubuntu10.10 on and am having real trouble grasping the method needed to install software and media codecs on it off line.I'm sure it can't be as diffucult as I'm making it and I'm going back to the Ubuntu support center to seek help there.I Love the fact of Linux being open and available for everyone and really want to learn it inside and out.I'm good with MS and like how the system takes over installations of apps,dosen't Linux work in a simular fashion?Or do I need to use a command line interface to acomplish installing the software that I need to build the system I want.I feel really stupid asking,I know I'm missing something obvious that's right in front of me,I'm also going to look into a DOS tutorial.
View 2 Replies
ADVERTISEMENT
Jan 21, 2010
I am having a problem with long lines when displayed in less. It is difficult to describe but I will try...
I have a text file with some lines longer that 80 characters. If I use less to view this file in an Putty terminal set to an 80 character width, some of the lines wrap. So far so good. If I now use the 'j' or 'arrow down' key to scroll down one line at a time all is ok until I encounter another long line (longer than 80 characters in my example). What I see is only the wrapped portion of the line. The first 80 characters are missing. At this point I can type a ctrl-L to refresh the window and then the long line is wrapped properly. It is only when I am scrolling one line at a time that I see this behavior.
I am not certain that this is a "less problem". However, I only notice it using less. vi works properly. more works properly. I suppose it could also be a Putty, bash or environment problem but I'm not sure.
I've played around with options to less such as -X -r -R without any luck. The systems I am connecting to area all running CentOS if that makes any difference.
View 5 Replies
View Related
Oct 7, 2010
How to create cron tab when DSL line down set automatically restart the network service while DSL line up?
View 3 Replies
View Related
Feb 8, 2010
After running the following command, I get:
[root@yukiko /]# find / -iname .bashrc
/home/clamav/.bashrc
/home/vpopmail/.bashrc
/etc/skel/.bashrc
/root/.bashrc
But I would like to have a command that prints a specific line by supplying the command with the line number, for example:
[root@yukiko /]# find / -iname .bashrc | getline(2)
/home/vpopmail/.bashrc
Is there such a command on CentOS?
View 3 Replies
View Related
Sep 11, 2009
I have several files with many lines something like this:
I'm trying to write a script that will count the number of characters per line that doesn't contain a ">" symbol and give me an average of those values. I have most of the script together but I can't figure out how to connect some of the steps.
Code:
View 3 Replies
View Related
Dec 23, 2009
I am trying to write a script that takes an input file ($FileName) and an intermediate file ($FileName.info) and removes lines from $FileName if the value in $2 of $FileName.info is <75.
I can't figure out how to feed only one line of the .info file to the if statement at a time so that it will perceive it as an integer instead of a list.
The error I am getting now is ./script.sh: line 6: [: : integer expression expected
Sample input $FileName
Code:
Code:
Code:
Script so far:
Code:
View 10 Replies
View Related
Aug 2, 2010
I've written a script to parse a file and print each line that ends with matching pattern, if the next line is blank. The pattern lines are the result of md5sum $i|sed 's/path///g' so that only md5 and filename appear. Here's what I'm using.
Quote:
for fline in `sed -n '/.*.ext$/p' file1`
do
if [ "`sed -n -e '/'"$fline"'/ {n; p;}' file1`" == "" ]
then
echo ""$fline" has no info" >>file2
fi
done
[Code]....
View 4 Replies
View Related
Feb 24, 2011
I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:
$ (something) -l 154 stuff.py
150: def foo(bar):
151: """
[code]....
View 5 Replies
View Related
Aug 22, 2011
How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt
View 1 Replies
View Related
Jan 8, 2010
I want to sort a number of lines based on their size:
data:
-------
12345678
87654321
1234
[code]....
Should output as:
-----------------
1
2
12
21
[code]....
But i'm gettings this with sort
----------------
1
12
123
1234
[code]....
Can we sort the above "data" text, based on "number of characters" instead of "character order"?
View 8 Replies
View Related
Apr 1, 2011
I am combining data from a couple different input files and creating an output file in a specific format. I notice that if I use the >> operator, information gets appended to a new line in my output file. This is useful, but if I'd like to append onto the CURRENT line, is there an easy way to do this? I've been googling around and see lots of complicated answers, nothing that suggests to me an easy way to do this. For example, if my output file looks like this:
b1a:] cat test
hello my name is
b1a:]
and I'd simply like to append "Bob", how can I do it? If I use
b1a:] echo Bob >> test
b1a:] cat test
b1a:] hello my name is
Bob
b1a:]
So what I would prefer is some command that would create the result:
hello my name is Bob
View 14 Replies
View Related
Mar 21, 2011
This solution works but is slow with large files. I am looking for a faster solution.
The 2 files contain filenames, one of them has associated data I want to append to the other file's matching filenames
file1:
file2:
I append file2 by matching the unique_filenames and appending them with the tag data and some formatting
appended file2:
Here is the SLOW code
while read inputline.
View 9 Replies
View Related
Mar 30, 2011
I need to grep for a particular string and if found need to display the line containing that string, the line above that and also the first line of that paragraph.
Can this be done via sed.
Eg, My Paragraphs
OA connectA
Enclosure:
Interconnect Module #6 Status:
Here, if I grep for Critical, it should display the following
Similarly if I grep for Degraded, it should display
View 3 Replies
View Related
May 13, 2010
I have to do several scripts and I have no idea of how to do this one: Make a script that read line by line the passwd file and prints in console.Hope you understand couse my english isso bad as you can see.Our teacher told us something like this:#!/bin/bashwhile read line doecho $lineadone < dispositiveexit
View 9 Replies
View Related
Sep 1, 2009
I have a dataset (see example below) that I would like to go through and copy all lines containing a certain string ("LGIG") plus the line immediately following that line to a new file. I have no problem grepping lines containing the string LGIG but I'm lost how to translate that to line number and shift up one line number for each instance of that string.
Example input file:
[code].....
View 5 Replies
View Related
Feb 26, 2010
I have the file abc.txt
cat abc.txt This is a test file Nothing is new in this world
I want to replace "This is a test file" to "Text is replaced"
Code:
FindString='This is a test file'
ReplaceString='Text is replaced'
Findarray=(`echo $FindString | tr ' ' ' '`)
[Code]....
But this is not effective. how to replace entire line either using sed or awk or any other utility.
View 5 Replies
View Related
Jun 15, 2010
I m writing a script to delete a line at particular location.
But i m unable to use variable for specifying line number.
For example.
Code:
works fine and deletes 7th line from my file
But
Code:
gives following error.
Code:
View 7 Replies
View Related
Jan 7, 2010
I am using xterm and sometimes when typing long commands into a small window, the command extends beyond the end of the line. On my old uni setup, when this happens, the cursor moves to the line below and you can see what text you have typed above however on my slack 13 setup, it overwrites the current line so you cannot see what you have typed! How can I set xterm to move onto the next line instead of overtyping?
View 14 Replies
View Related
Sep 27, 2010
My T1 connection is like this: T1 line -- cisco router -- regular router -- LAN. It works fine. Now I want to replace the regular router with an Ubuntu router, which has two nic card, eth0 to Internet and eth1 to LAN. I tested the Ubuntu router on a DSL connection and it worked perfectly. But when I connected the cable from the cisco router to eth0 in the Ubuntu router, eth0 was not up. It didn't show the ip address of eth0 as I tried "ifconfig". I assigned the static ip from the ISP to eth0, also made it acquire ip automatically. Neither worked. eth0 still got no ip address. Did I miss something?
View 9 Replies
View Related
Mar 24, 2010
I have two files (not sorted) and need to compare line by line (i.e. first line of file1 to be compared to all the lines of file2 and so as for the rest of file1). Output will be an array of length of file2. Any suggestion in BASH other than a grep inside two read line loops ( which is time consuming for files ~1000s of lines).
View 2 Replies
View Related
Apr 12, 2011
Kernel 2.6.21.5, Slackware 12.0 Assuming I work in a text console (tty1,...,tty6) and that I have audio at Line In (the jack at the machine rear panel), how could I do to have it at Line Out?
View 6 Replies
View Related
Feb 12, 2011
I want to append at a new line if the old line is non empty. so it would be something like
Code:
1
2
3//dont add here
Code:
1
2
3
//add here
but if sometimes there could be extra empty line, then add at the empty line. So the script needs to detect whether or not the last line is empty. i figured out the symbol for a new line pattern is ^ so it would probably be sed "a^stuff here"is this right? but i dont seem to get the right result
View 12 Replies
View Related
Jan 30, 2011
I want to print the line number with the pattern of the line on a same line using multi-patterns in sed. But i don't know how to do it. For example, I have a file
abc
def
ghi
I want to print
1 abc
2 def
3 ghi
View 6 Replies
View Related
Oct 25, 2010
I have a few alias' in my .bashrc to save some typing, mostly ls type variants.
I wanted to add the following:
- give me a Long listing of ALL in Reverse Time order, (don't recurse directory)
Code:
But it doesn't work anything like the way it does on the command line
When I use the alias I get the following:
Code:
No Time, No Permissions, no group/owner ... , Why?
View 2 Replies
View Related
Mar 22, 2011
I have two files, file1.traj and file2.traj. Both these files contain identical data and the data are arranged in same format in them. The first line of both files is a comment.
At line 7843 of both files there is a cartesian coordinate X, Y and Z ( three digits ). And at line 15685 there is another three digits. The number of lines in between two cartesian coordinates are 7841. And there are few hundreds of thousands of lines in a file.
What I need to do is copy the X Y Z coordinate (three digits) from file1.traj at line 7843 and paste into file2.traj at the same line number as in file1.traj. The next line will be 15685 from file1.traj and replace at line 15685 at file2.traj. And I dont want other lines (data) in file2.traj get altered. This sequence shall be going on until the end of the file. Means copy and substitude the selected lines from file1.traj into file2.traj.
I tried to use paste command but I cant do for specified line alone.
Here i showed the data format in the file. I used the line number for clarity purpose.
Code:
View 10 Replies
View Related
Jan 9, 2011
I'm having trouble getting my Line 6 Toneport UX2 (just want to play back sound with it) to work in Debian Testing.
Code:
Uname: Linux lys 2.6.32-5-amd64 #1 SMP Fri Dec 10 15:35:08 UTC 2010 x86_64 GNU/Linux
lsusb (cutout): Bus 006 Device 002: ID 0e41:4142 Line6, Inc.
[code]....
View 1 Replies
View Related
Jul 6, 2011
I wanted to run a little media server in my house, shared with my laptop only, so I could free up space on my laptop drive. I took one of my Linux boxes out of my render farm and loaded up a minimal install, command line only of Ubuntu Lucid from the mini ISO (32 bit). I had to plug in a lan cable to install, but I wanted to move my box back out to the "farm" that doesn't have wired access to my intranet.
After much research, trial and error, this is what worked for me. My wireless card uses an Atheros AR5001X+ chip, and it works with the desktop cd out of the box. I found the "just works" desktop install uses the ath5k driver that is now included in Lucid, but I'm not using a desktop or window manager. I haven't tried this on server version, if you do, let others know what you had to install to get it to work.
The things I do tell you about, I instruct you as if you are a newbie, however I have left out some things that users should know or be able to lookup easily, like if you want a static address instead of using dhcp. You may not need all of the steps or you may have to do more research and troubleshooting.
Find your wireless card (you may need to lookup what to do if it is not recognized at all)List all pci devices, only show network devices (-v verbose, -vv very verbose): >>lspci -vv | grep Network List all hardware (| less lets you pause at each page - arrow keys, page down/up to navigate, q to quit) >>lshw | less
[Code]...
View 1 Replies
View Related
Feb 13, 2011
I want to access a file, and check the length of every line.After, i want to check and replace all lines with length over 10 characters, with a message.Does anyone have a clue on that?
View 1 Replies
View Related
Jan 26, 2010
I actually pretty much abandoned Ubuntu a few weeks back after several weeks of not getting a couple things working properly.One of the big problems is I couldn't get my line-in audio jack working to save my life (despite working flawlessly in Windows on the same machine).I have posted about this numerous times and had no luck despite many of you good people attempting to assist.Tonight, I put a live CD of Linux Mint in my machine and noticed a few of the little problems I have with Ubuntu seemed to be "fixed" with Linux Mint.
That's when it hit me that perhaps the big difference is 32 vs. 64 bit? My Ubuntu is 64 bit but the Linux Mint I tested is 32. Does anybody think that my audio problem could be as simple as getting away from Ubuntu 64 bit?Also, can anybody tell me if there is a Terminal Services Client available for Mint? I'm sure there is but it didn't seem to be in the default install..
View 2 Replies
View Related
Apr 29, 2011
Some of my short cut keys seem not ot be working. Ex Alt +F2 dose not open a pop up command line. Also would like to add some short cuts. Like Ctrl + Alt+ Backspace for reboot. I went to the short cut app and I can add a short cut key, name it, but can't seem to figure out how to assign it a function. Didn't seem intuitive to me. I'm using the UNE version on a asus eel 1000.
View 1 Replies
View Related