General :: Distinguish Between Tab And Space In A File?
Mar 22, 2011
suppose in tab separated file with n columns and if in a column i put a value which is space separated .how can i able to find out a specific column..ie
NAME<TAB>ADDRESS<TAB>AGE
akhand jyoti<TAB>banglore<TAB>21
vijay<TAB>new delhi<TAB>22
ram kumar verma<TAB>ram nagar<TAB>43
..
..
now i want to print NAME column(or any column). how can i do that?
View 3 Replies
ADVERTISEMENT
Jul 20, 2011
In Linux is there a way to distinguish between two connected hard drives and tell which one is eSATA through shell or anyother way?
View 2 Replies
View Related
May 22, 2010
First I create a named pipe at /tmp/.pipe by
Code:
mkfifo /tmp/.pipe
which is then used in a shell script called A.sh like this
[code]....
View 1 Replies
View Related
Feb 14, 2010
I'm running Ubuntu Server 9.10. I have two external USB HDDs. I use them each for different backup reasons. So certain data gets stored on one HDD, and different information gets stored on the other HDD.
I want to make a script that can look at the external HDD can determine which HDD it is, so that it can copy the proper information to it. Is there a way for Linux to determine this? Like if I see one HDD as /dev/sdc1, then unplug it and plug in the other HDD, should Linux see it as /dev/sdd1 or will it be /dev/sdc1?
I don't quite understand how it determines the /dev/sdxx values that it assigns to drives.
View 3 Replies
View Related
Oct 13, 2010
In my rpm I need gdbm 32b.when installing on RHEL x86_64 the Reqires section passes with no error since gdbm 64b was found.I need to distinguish between gdbm 64b to gdbm 32b in my spec file.In my spec I use the following :Requires: gdbm = 1.8.0
View 1 Replies
View Related
Jan 4, 2010
Logical Memory Space of 4GB is divided in to 3GB User Space and 1GB Kernel Space. Always. Correct?
1. How can we change it? (just changing value of PAGE_OFFSET is okay?)
2. If system have only 256MB of memory (embedded system) and suppose Kernel Modules eat away all the memory during boot. User space will be left will no memory. Is this case possible?
View 2 Replies
View Related
Feb 24, 2010
i just installed Fedora 12 (via vbox 3.1.4). stupidly i started with 8G and, of course, ran out of space on the / filesystem. i added 8G to the drive which now shows as 17G.based on the below outputs, it looks like i have 8G more space available on the drive. based on reading other posts it looks like i need to use parted to increase the size but not sure how to do that.
View 7 Replies
View Related
May 8, 2011
i want to add space to my file system, i want to slice some space from my home directory coz it has a lot of space...i am just adding applications, but im runnint ofspace....what shall i do, without reformating or reinstalling my ubuntu 10.10?
View 1 Replies
View Related
Jun 12, 2010
I have external USB HD 500 GB, by mistake folder with 13 GB deleted, using some windows recovery tools, i got it back, but the deleted folder still take and fill space on the HD!!
any idea how to remove or edit it under linux ?
View 15 Replies
View Related
Feb 7, 2011
I'm running a virtual machine of CentOS 3 and I am trying to decompress a tar file, but I run out disk space. I created the VM with 80 GB of disk space. When I look at the partititions, (du command) I have /dev/sda2 with a partition of 70GB mounted on /home with < 1% used.
Here comes the n00b question: How do I use the 70GB of space on sda2? I thought working in the /home directory, where sda2 is mounted, would give me access to that disk space, but the tar files fill up the /boot partition.
View 3 Replies
View Related
Oct 6, 2010
I have a text file that gets produced at the end of the script being run.
For this example the text file will produce the following:
Quote:
THE COW
THE DOG
THE CAT
THE HORSE
In the script I am using either echo or printf to print on the screen each line and then it is doing a test and produces a good or bad result.
Another example:
Quote:
THE COW -- IS HOME
THE DOG -- IS HOME
Each whitespace between the -- are 5 spaces. How can I get them to be in-line and formatted when it gets to more words, when THE HORSE arrives.
Example:
Quote:
THE COW -- IS HOME
THE DOG -- IS HOME
THE CAT -- IS HOME
THE HORSE -- IS HOME <-- This has only 3 whitespaces but is still formatted.
View 8 Replies
View Related
Jul 23, 2010
I did a rm on a file that was 63GB, but then when i do a df -h afterward, it doesn't reflect that file being removed.
View 5 Replies
View Related
Jul 4, 2011
There are some user-space based NFS clients (e.g. NFS Client library). Can I bypass file permissions by using such client? code...
Client1 uses usual NFS client (kernel-mode based) and user1@client1 can read only file1, but not file2.
As I understand, client1 sends uid in nfs request, server1 do a permissions check based on the request data. So, I suggest this is possible to have a client2:
Client2 uses user-space client, and hacker@client2 knows uids of user1 and user2; If he wants to read file1 he can send uid of user1; if he wants to read file2, he sends uid of user2.
Is the scheme possible?
View 1 Replies
View Related
Dec 29, 2010
We have recently built some RAC (OS:RHEL55) servers and after the Oracle guys have installed their application, somehow the directory / is using the maximum space. I contacted the Oracle team & they say that their RAC installation doesn't create any files in the / directory. This is the o/p of '/' directory file system:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/datavg-vol2 498M 382M 62M 88% /
Also, when I checked the file sizes, I found that the following files were taking more space:
/etc/selinux/targeted/modules/active/
-rw------ 1 root root 17M Nov1 base.linked
[code].....
I don't know what these files are doing there, when I did a cat and cheked, I found the files containing this data:
nf_tre--
stem_dbusd_var_run_t...and some stuff like this Unable to decide whether or not to remove these files. Also, is there any way to find out what files are taking more space and whether they can be deleted or not? in order to free up some space in the / direcoty. As there are 10 RACs that we've build, I got to do something to fix this for all of the 10 servers.
View 4 Replies
View Related
Feb 2, 2011
I am trying to create an empty file based on the remaining hard disk space. The problem is that when I create a file that is 1 GB large, the df command shows the remaining space to be only 12 kb smaller than it was before the file was created.
someone@here:/tmp/delete# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 36827144 5031592 29924788 15% /
[code]....
View 2 Replies
View Related
Oct 2, 2010
Currently the way tabs on the taskbar look (the bar at the bottom) make it a bit hard to distinguish between them. sometimes they all look like one big clump of text. its quite messy. when you look at something like the windows xp taskbar [URL] its much easier to see between them. I guess its also because the buttons look 3D in that they stick out a bit. Plus the choice of colours used for when you are on a tab helps.
How do I change/find a theme for this?
View 1 Replies
View Related
May 8, 2010
I am running a server at home, and on rare occasion my server will shut down. Is there a logfile I can check to determine whether the server was shutdown due to a script on the computer, a power loss, or someone hitting the power button? I am not by any means a linux guru, but I know enough to get around.
View 9 Replies
View Related
Sep 22, 2009
I am writing device driver in which i have to call callback function from kernel space, which are saving my data. But the callback functions are in userspace. While accessing them i am getting segmentation fault.
View 1 Replies
View Related
Feb 26, 2010
I working on a project, where a central unit (we call it System Controller ) should talk to several peripheral units on different input ports. The system controller have 4 RS485 ports, 1 RS232, 1 USB A, 1 USB B and a switch with 2 TCP/IP ports. The problem is that when the peripheral unit that is supposed to be connected to one of the two TCP/IP inputs isn't connected (which the system should be able to handle), the software thinks that data from the unit connected to the RS232 port is from the unit that should be connected to the TCP/IP.
The input peripherals are defined as:
#define CR_DEVICE "/dev/ttyS1" // ttyS1
#define SL_PORT "/dev/ttyUSB0"
#define BO_PORT ""
It is the last one which are supposed to receive from the TCP/IP port, and of course the first one which should receive data from the RS232 port.
View 6 Replies
View Related
Oct 22, 2010
I'm playing with apache (and to be quite honest have no idea what I'm doing at this stage!) and currently have a large number of files and folders on the sad little site. One thing that is really bothering me is that files and folders both appear the same. I'm not looking for anything fancy. Something like this is more than adequate. Right now there is simply a dot next to each item.
View 2 Replies
View Related
Oct 14, 2009
I have a list of files in a directory which starts with - or have space.
I need to copy them back without the space or -?
linux1[sim]% ls linux1[sim]% cp ./-* ./*
View 8 Replies
View Related
Mar 30, 2011
Just wondering, what happens when you have multiple server softwares listening to the same port? will it be able to distinguish which service to use by the protocol information, or is it setting it up for failure?
IE: http and ssh both listening to port 80.
View 2 Replies
View Related
Jun 21, 2010
In a 32-bit system, max memory addressable is 4GB. Now Linux kernel does memory mapping division of 1GB for kernel address space and 3GB for user address space. That means 4GB of virtual address space is divided between kernel (1GB) and user (3GB).
Q1. All virtual mapping utilizes the available physical RAM without any division? I mean to say that if RAM is 512MB then a page in kernel space can lie any where RAM (leave aside old PCI dma accesses)? (How this fits to fact that kernel memory is non-pageble)
Q2. If a process is created in user space, it has visibility 4GB address space or 3GB address space?
View 2 Replies
View Related
Jul 5, 2011
My system is dual boot with win7 and ubuntu. I have free space of around 10 gb. I want to add this free space to my ubuntu drive. How can i do that?
View 4 Replies
View Related
Mar 23, 2010
I've noticed that when I run:
davek@linux-kw2x:~> df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 20641788 8427780 11165368 44% /
udev 961204 192 961012 1% /dev
/dev/sda3 217642344 4037944 202548468 2% /home
davek@linux-kw2x:~>
I have 44% used. It should be much smaller, under 10%. How do I empty the /tmp file or other file to free up space?
View 9 Replies
View Related
Jul 25, 2010
I have 160gb laptop. i installed vista in c primary partition which is 25gb and installed ubuntu in d primary partition which is 20gb. A remainig for my data. Now i tried to install CENT OS by formatting ubuntu. I inserted CENT OS DVD and restarted and i selected to delete my /dev/sda2 which is showing 20480mb and it shown me free space. but i tried to add partion /boot of 100mb it got added. but, when i am trying to add / of 3000mb in the remaining 20380mb free space it showing an error message that no free space is available.
View 4 Replies
View Related
Jul 26, 2010
I just mounted my drobo(NTFS) on my slackbox using NTFS-3g, and I can read all my files and see them all, but any file name with a space in it turns into EX: (File Name)... instead of (File Name)I am worried that my Sync software will not recognize the name.Does anyone have any tips Except to not put Spaces in the names of files?
View 3 Replies
View Related
Jan 20, 2011
cp: writing `/tmp/tmpX2KZDc/system.image': No space left on device However, when I right-click on properties, I see it has 51 items, totalling only 130.5 KB!this is a dual boot system with Win XP and Ubuntu 10.10 (~58Gb partition)Quote:
anil@anil-HP-EliteBook-8440p:/tmp$ mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
[code]...
View 12 Replies
View Related
Nov 28, 2010
measure kernel space time and user space time?
View 1 Replies
View Related
Jun 12, 2010
I have an external 800GB USB drive I used for storage for both files from Win XP and Suse 9.0.I can read and write my data from Win XP o.k but when I try to write any files from Suse side it gave me 'read only file system' . This drive from Unix is mounted in /media directory with root owner with executable and read only. When I changed to become root and issue chmod 777 'FreeAgent Drive'.I got error chmod: changing permissions of 'FreeAgent Drive':Read only file system.
From unix, reading any file on this drive, using gui application, I can not access the drive at all but I can see all files on the drive using a command with quote (cd /media/'FreeAgent Drive')
View 7 Replies
View Related