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?

View 4 Replies


ADVERTISEMENT

General :: List The 'chkconfig --list' In Alphabetical Order?

Jan 7, 2010

list the 'chkconfig --list' in alphabetical order

View 3 Replies View Related

Programming :: Sed In A Bash Loop With Ascending Output?

Jan 1, 2011

I have a file like below:

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

[Code]...

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.

View 14 Replies View Related

Programming :: Checking List Of Logged In Users - Without Logging Into Pc

Jul 17, 2010

It is possible to check who logged in with "who" command. If we are also logged in to that linux pc.

But, is there any possibility to check without our login?(not even by ssh)

Our logging in to find that pc, will be wasting the cpu resources. And may disturb the user who is working on the x-session.

View 7 Replies View Related

General :: Use Sort Command For Its Ascending Order And Descending Order?

Aug 18, 2010

in my text file of 5 columns 2 column is in DDMMYYYY format. (ie DATE OF BIRTH). how to use sort command for its ascending order and descending order.

Is the same can be use for the date format YYYYMMDD ?

View 3 Replies View Related

Programming :: Downloading A List Of Files From A Remote Server Using A List?

Feb 10, 2009

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

[code].....

View 7 Replies View Related

Programming :: Show The Output Of These Fields In A Certain Way That Every Record Is Numbered?

Mar 25, 2010

i am reading a database flat file with the "awk" command which has 4 fields separated by colon ":" .I want to show the output of these fields in a certain way that every record is numbered e.g

1.some text
2.some text

Is there a way to do this?

View 14 Replies View Related

Programming :: Create A Script That Returns A List Of The Users Who Have Never Changed Their Password From /etc/shadow

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow. As I know on linux there is a command "chage" used for find last password change.

View 2 Replies View Related

Ubuntu :: Change The Order In Which Users' Names Appear In GDM Login?

Aug 18, 2010

Can someone tell me if it is possible to change the order in which users' names appear in the GDM login screen? And if so, how to change it?

View 1 Replies View Related

General :: Ubuntu - List Printer Names Acceptable For Use With Lpr?

Aug 18, 2010

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)?

View 1 Replies View Related

General :: List Only The Device Names Of All Available Network Interfaces?

Oct 25, 2010

I want to get a list of all available Network-Device Names on my Linux server. I figured that

netstat -a

would do the job, however netstat produces quite much output:

eth0 Link encap:Ethernet Hardware Adresse 08:00:27:fc:5c:98
inet Adresse:192.168.2.222 Bcast:192.168.2.255 Maske:255.255.255.0
inet6-Adresse: fe80::a00:27ff:fefc:5c98/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1

[Code]....

I assume that this can be done by a combination of "cat", "sed" and "grep", but I have simply no clue of how to strip the uneccessary information.

View 4 Replies View Related

Ubuntu :: Change The 11.04 Boot Order List?

Sep 1, 2011

I've installed ubuntu 11.04 side by side with my xp. However after reboot I found my boot order list is like

Ubuntu, with Linux 2.6.38-8-generic
Ubuntu, with Linux 2.6.38-8-generic (recover mode)
Memory test (memtest86+)

[code]....

As you can see the windows option is way in the bottom, how to make it to be on the second line like below ?

Ubuntu, with Linux 2.6.38-8-generic
Microsoft Windows XP Professional (on /dev/sda1)
Ubuntu, with Linux 2.6.38-8-generic (recover mode)

[code]....

how can I remove the other 3 which I thought unnecessary

View 1 Replies View Related

Debian :: Change Order Of GRUB Boot List?

Apr 1, 2010

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?

View 3 Replies View Related

Ubuntu :: Sata Hard Drive Order Isn't The First One In The List

Jan 16, 2010

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.

View 1 Replies View Related

Ubuntu :: File List Now In Reverse Alphabetical Order

May 26, 2011

I am running fully updated ubuntu 10.10 and now, since 2 days ago, when I open a file
in open office, gimp or gedit etc the directories and files now appear in reverse alphabetical order.

View 8 Replies View Related

General :: Create A User List In Alphabetical Order?

Oct 22, 2010

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

View 7 Replies View Related

Server :: List Folder Size In Descending Order?

Feb 8, 2010

how to list folder size in descending orde

View 2 Replies View Related

Ubuntu :: Terminal Command To List Disk Usage In Order?

Mar 29, 2010

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?

View 6 Replies View Related

Ubuntu Installation :: Change The Order Of The List When Grub Loads ?

May 6, 2010

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.

View 4 Replies View Related

Ubuntu :: Rename A List Of Files In Batch In Order To Maintain The Last Part Of Them?

Dec 1, 2010

possible to rename a list of files in batch in order to maintain the last part of them, then purge a central section and then again maintain the extension?I.E.:

Code:
file01.qwertyuiop.txt
file02.asdfghjklmnbvzxcqwertyuiop.txt

[code]....

View 7 Replies View Related

Debian :: List Users At Login?

Oct 20, 2010

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.

View 5 Replies View Related

General :: Piping Output Of List To Cp?

May 16, 2011

I have the following code

Code:

ls ~/ | grep ^[[:lower:]]

and would like to take the result of this output and use this as the basis for a cp command to move these files to another folder.

View 3 Replies View Related

Ubuntu Installation :: E - Type 'usage:' Is Not Known On Line 54 In Source List /etc/apt/sources.list

Jan 23, 2010

Ive seen some fixes for this but they all seem to be specific to the particular user's sources.list . . . ..

Code:

Here is Line 54

Code:

View 2 Replies View Related

Ubuntu Installation :: E: Type Sudo Is Not Known On Line 55 In Source List /etc/apt/sources.list

Mar 12, 2010

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

View 9 Replies View Related

Ubuntu :: E - Malformed Line 57 In Source List /etc/apt/sources.list - Dist Parse

Jun 25, 2010

I get this error message: E: Malformed line 57 in source list /etc/apt/sources.list (dist parse)

I am pretty new to Ubuntu and dont really understand computer

Here is the sources list (??) as well

View 3 Replies View Related

Ubuntu :: Error: E: Type 'sudo' Is Not Known On Line 52 In Source List /etc/apt/sources.list

May 4, 2011

don't know much, but when I tried to update I get this error:

E: Type 'sudo' is not known on line 52 in source list /etc/apt/sources.list E: The list of sources could not be read.

View 2 Replies View Related

General :: Bash - Shell Utils: Convert A List Of Hex To List Of Decimals?

Dec 27, 2010

How can I convert a file with a lot hex numbers into the decimal?

Example: file1
0x59999
0x5acdc
0xffeff

I want to start $ cat file1 | util | cat >file2 and get file2 with smth like

[Code]...

View 3 Replies View Related

Ubuntu :: Clean Up Bootloader Menu List - Remove Ones Don't Want To Show On List

Jun 17, 2010

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.

View 2 Replies View Related

Ubuntu :: See A List Of All Users, Including System Ones

Apr 19, 2011

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.

View 3 Replies View Related

Red Hat / Fedora :: How To Find List Of Locked Users

Mar 9, 2011

I have found users on my linux machine by using command.

Then i locked some of users which were not required.

Now how to find list of users which are locked .

I tried a command for this

But it respond as

How to find list of locked users?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved