Sponsored Content
Full Discussion: cut & paste
Top Forums Shell Programming and Scripting cut & paste Post 85122 by futurelet on Sunday 2nd of October 2005 03:04:08 AM
Old 10-02-2005
Quote:
Originally Posted by vino
Here is an awk solution.

Code:
awk '{ print $1,$4 }' entry.txt > output.file

If there are more than 4 columns and the country colume always appears last with name in the first column, then here is a more generalized solution.

Code:
awk '{ print $1,$NR }' entry.txt > output.file

vino
Code:
awk '{ print $1,$NF }' entry.txt > output.file

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cut Paste and Insert Help

Hello I have a very large file where say each line is made up of 80 characters. I want to cut the characters from 20-30 and 50-60 from each line and then insert a delimiter between them (# or | etc). eg input file 000000000131.12.20990000590425246363375670011200140406... (5 Replies)
Discussion started by: PradeepRed
5 Replies

2. UNIX for Dummies Questions & Answers

cut, copy + paste

Hi all! How do I cut, copy and paste under unix??? (2 Replies)
Discussion started by: aitor314
2 Replies

3. Shell Programming and Scripting

cut and paste using awk

Hi i need a favour i have a file which has some trillions of records. The file is like this 11111000000000192831840914000000000000000000000000000 45789899090000000000000000011111111111111111111111111 I want to cut specific postions in each line like cut1-3 and assisgn it to a variable and... (5 Replies)
Discussion started by: richa2.m
5 Replies

4. Shell Programming and Scripting

cut and paste?

hi, I have a file with content like this for an employee: EmployeeID 101 Day_type, day vacation,1/2/2009 sick day, 3/2/2009 personal day, 4/5/2009 jury duty day, 5/5/2009 how do I make the result to show: EmployeeID,Day_type,day 101,vacation,1/2/2009 101,sick day,... (6 Replies)
Discussion started by: jbchen
6 Replies

5. Shell Programming and Scripting

cut and paste

Hi, Need a help with shell script. I have to search for a string in one of the file, if match found, copy the line to a new file and delete the line from the exisiting file. eg: 83510000000000063800000.1800000.1600000.1600000.2400000.1800000.2000000.21... (6 Replies)
Discussion started by: gpaulose
6 Replies

6. UNIX for Dummies Questions & Answers

Cut paste from one file to other

Hello, I am working on unix for the first time. I have to write a shell script where i want to cut paste from one file to other. File "1234.abc" is 03,12345555 16,936,x,x,120 16,936,x,x,100 49,12345555 03,12347710 16,936,x,x,115 16,936,x,x,122 49,12347710 03,12342222... (9 Replies)
Discussion started by: swapsb
9 Replies

7. UNIX for Dummies Questions & Answers

Need help with using cut and paste command

I have a file which contains 3 fields separated by tabs example andrew kid baker I need to swap kid and baker using cut and paste commands how is this to be done? Thanks (1 Reply)
Discussion started by: drew211
1 Replies

8. Shell Programming and Scripting

need help with cut and paste command

I have a file which contains 3 fields separated by tabs example andrew kid baker I need to swap kid and baker using cut and paste commands how is this to be done? Thanks (3 Replies)
Discussion started by: drew211
3 Replies

9. Shell Programming and Scripting

Problem in Cut and paste

Hi, I have a file like this --> Consider z as space #cat filename ABC <!--Nzzzzz--> <!--RESUMO--> EFG XYZ <!--Nzzzzz--> <!--RESUMO--> I need to cut the <!--RESUMO--> part and paste it to the previous line so that the file will look like this--> ABC <!--Nzzzzz--><!--RESUMO-->... (4 Replies)
Discussion started by: samsonata
4 Replies

10. Shell Programming and Scripting

Problem in cut or paste

Hello, I have some problem in cut or paste command for my text data. Input1.txt : I use cut command : cut -d ' ' -f1 Input1.txt > result.txt result.txt : Then, I use paste command to merge result.txt. paste -d ' ' result.txt Input1.txt > output.txt output.txt showed : I use cut... (1 Reply)
Discussion started by: awil
1 Replies
vino-preferences(1)						   User Commands					       vino-preferences(1)

NAME
vino-preferences - remote desktop configuration SYNOPSIS
vino-preferences [gnome-std-options] DESCRIPTION
vino-preferences is the configuration dialog for remote desktop server. vino-preferences provides a GUI to configure options of remote desktop server, include view-only mode and control mode for desktop sharing. And it also be used to configure the security mode and specify user password. There are some check boxes in vino preferences dialog. the four check boxes are divided into 2 groups: Sharing and Security. The Sharing group controls if the server allow other users to view your desktop and if the server allow other users to control your desktop. The Secu- rity group control what kind of security method the server will take when there is a remote request. Vino server can be configured to ask user confirm every time there is a connection request, and the server also can be configured to require users to provide password for the remote access. A password editbox is provided to input server password. This password will be saved in gnome keyring. OPTIONS
The following options are supported: gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information. EXAMPLES
Example 1: Start the vino preferences dialog from command line example% vino-preferences FILES
The following files are used by this application: /usr/bin/vino-preferences The executable file for the vino preferences application. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-remote-desktop | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
vino-passwd(1), vino-server(1), attributes(5), gnome-std-options(5) NOTES
Written by Steven Zhang, Sun Microsystems Inc., 2006, 2007. Updated by Halton Huo, Sun Microsystems Inc., 2008. SunOS 5.11 15 Aug 2008 vino-preferences(1)
All times are GMT -4. The time now is 04:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy