Programming :: List 4 Names From Users List And Output Them To Fbusers In Numbered Ascending Order?
Feb 2, 2010
How would I list 4 users ID numbered 10, 11, 12 and 13 from my users list and output them to a file busers where their names are numbered by ascending order? How would I accomplish that on a one line command?
PU12829,24869;PD15733,24869;PD15733,19785;PD12829,19785;PD12829,24869; PU4599,20915;PD9924,20915;PD9924,18898;PD4599,18898;PD4599,20915; PU12829,24869;PD15733,24869;PD15733,19785;PD12829,19785;PD12829,24869; PU4599,20915;PD9924,20915;PD9924,18898;PD4599,18898;PD4599,20915; PU1723,3423; #this line is ignored to short
What I'm trying to do is while true, cut each line from file that begins with PU and thats longer than 12 characters and write to a increasing numbered file for each line. Stating with object1 etc.
I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.
#!/bin/sh # Wget script to retrieve modules from slax.org modules # # ----Begin of user defined values ----- # Path to wget
The lpr man page says a destination printer can be specified with the -P flag -P destination[/instance] Prints files to the named printer I have 'added' various printers on local Samba shares using the GUI in Ubuntu/Gnome. How can I get a list of these available printers in the format that the -P flag expects (preferably from a bash shell)?
I tried looking this up. It seems that in Ubuntu, you need to edit /boot/grub/menu.lst. I tried that, and the file is not present in Debian "Squeeze". (Just trying it out on a different PC, In case you are confused by my other thread regarding Lenny) So what do I need to do to change the default OS to boot?
I have 4 hard drives in my computer. 1 for may root and home partitions. 2 extras for storage and 1 for Windows. I have the hard drive with my root and home partitions set as the first hard drive in the bios. However, in the Ubuntu setup it isn't the first one in the list. I would have thought that the first drive would be get set to sda. That is not the case.
I have a server with what appears to have 352 home directories (350 actually if you omit '.' & '..') & I am being asked to basically tally a list of whom all 350 users are in alphabetical order. Now I could sit here for days doing the 'finger' command to obtain their full name commented in '/etc/passwd' file but I would assume there is a script or way I could have Linux quirry the '/etc/passwd' file & take all the user 'comment' entries and export them to a list in alphabetical order. Does anyone know if this could happen and if so, how would I do something like this? I can't write bash / shell scripts to save my life
Code: cmennens@mail]:/$ ls -l total 160 drwxr-xr-x 352 root root 12288 Oct 21 13:41 home
I regularly use 'df -h' to check usage on each of my primary directories and mount points.
I'm currently somewhat confused by disk usage within my filesystem, so I'd like to do the following:
Display directory size of all, or say, the 10 largest, subdirectories to a specified directory. So, if I passed the root (/) directory, output would list the subdirectory of / with the largest disk usage first and its associated disk usage listed in human readable format (either M or G suffix as appropriate), followed by the subdirectory and usage for the second largest directory and so on.
Can anyone suggest a command or series of commands to do this?
How do you change the order of the list? I have Xubuntu 9.10 installed on a 5 gig partition. I only use it for Skype as the mic does not work in 10.04 at the moment for me.Anyway, I would like 10.04 to default to the top of the list. How do I change the order when grub loads.
Just installed Debian on a laptop. I'm not a Linux noob, been running Ubuntu / Kubuntu / Fedora elsewhere for a while. But first time with Debian (Gnome). [Broadly pretty happy so far. It may supplant Kubuntu on my desktop as the latter seems a bit of a resource hog.]I want the login screen to offer a list of users.I've tried System > Administration > Login Window > Localand chosen Themed with face browser from the dropdown marked Style:I'm using Bijou (though I've also tried some of the others) as my theme, in case that makes any difference.I haven't got any pictures set up for users. It's not particularly that that I want, just a list of users to choose from rather than having to type in your username each time. It's a family setup, no big security worries, so easing typing would be nice.
I tried to change the basic toolbar to cairo dock,a tutorial that i found told me to write in terminal gksu gedit /etc/apt/sources.list.d/winehq.listso i write it and a window opened,i couled not find the text that told me(the tutorial i mean)so i closed the window,after that i keep taiking the same error
E: Type �sudo� is not known on line 55 in source list /etc/apt/sources.list E: The list of sources could not be read. Go to the repository dialogue to correct the problem. E: _cache->open() failed, please report.
now whene i got in the winehq.list the text has gone and i take this error in update manager,my software center doesn't work and my terminal whenever i type sudo commands says
E: Type �sudo� is not known on line 55 in source list /etc/apt/sources.list
All I want is for my bootloader to show "Ubuntu" & "Windows XP" which are the only 2 OS's I have installed (dual booting). At the moment it shows Windows XP, Ubuntu, Ubuntu recovery mode & like 2 more.. which are also Ubuntu & recovery mode. I've never selected the other Ubuntu ones, only the first one. So, how can I remove the ones I don't want to show on the list.
what I'm doing, but I'm implementing some automatic security protocols on a ubuntu system, and I need to see a list of all users, including system ones. The reason for this is that I created a system user with a specific UID, and I forgot it. The 'user' command only lists the nonsystem users.