Sponsored Content
Top Forums Shell Programming and Scripting Change file content 4 column to one Column using script Post 302604106 by Scrutinizer on Saturday 3rd of March 2012 05:06:55 AM
Old 03-03-2012
You can use
Code:
cut -d, -f2 infile > outfile

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing one column of delimited file column to fixed width column

Hi, Iam new to unix. I have one input file . Input file : ID1~Name1~Place1 ID2~Name2~Place2 ID3~Name3~Place3 I need output such that only first column should change to fixed width column of 15 characters of length. Output File: ID1<<12 spaces>>Name1~Place1 ID2<<12... (5 Replies)
Discussion started by: manneni prakash
5 Replies

2. Shell Programming and Scripting

Change names in a column based on the symbols in another column

If the 4th column has - sign then the names in 3rd column has to change to some user defined names (as shown in output). Thanx input1 1 a aaaaa + 2 b bbbbb + 3 c ccccc + 4 d ddddd + 5 e eeeee + 6 f xxxxx + 8 h hhhhh +... (8 Replies)
Discussion started by: repinementer
8 Replies

3. Shell Programming and Scripting

Need to convert the content of file into COLUMN (To export into excel)

I have multiple condition in file as below. MONITOR "ALERT_INFO" DESCRIPTION "Triggered when informational Netware alert occured" MAXTHRESHOLD 95 SEVERITY Normal MONITOR "ALERT_MAJOR" DESCRIPTION "Triggered when major Netware alert occured" MAXTHRESHOLD SEVERITY Major I need to... (6 Replies)
Discussion started by: velocitnitin
6 Replies

4. Shell Programming and Scripting

Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2

Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2 file 1 sample SNDK 80004C101 AT XLNX 983919101 BB NETL 64118B100 BS AMD 007903107 CC KLAC 482480100 DC TER 880770102 KATS ATHR 04743P108 KATS... (7 Replies)
Discussion started by: rydz00
7 Replies

5. Shell Programming and Scripting

Help with replace column one content based on reference file

Input file 1 testing 10 20 1 A testing 20 40 1 3 testing 23 232 2 1 testing 10 243 2 . . Reference file 1 final 3 used . . Output file (1 Reply)
Discussion started by: perl_beginner
1 Replies

6. Shell Programming and Scripting

awk or sed: change the color of a column w/o screwing up column spacing

Hey folks. I wrote a little awk script that summarizes /proc/net/dev info and then pipes it to the nix column command to set up column spacing appropriately. Here's some example output: Iface RxMBytes RxPackets RxErrs RxDrop TxMBytes TxPackets TxErrs TxDrop bond0 9 83830... (3 Replies)
Discussion started by: ryran
3 Replies

7. Shell Programming and Scripting

Change column to row base on column 2

Hi Guys, Input.txt L194 A -118.2 L194 B -115.1 L194 C -118.7 L196 A 0 L196 C 0 L197 A -111.2 L197 B -118.9 L197 C -119.9 L199 A -120.4 L199 B -119.9 ... (2 Replies)
Discussion started by: asavaliya
2 Replies

8. Shell Programming and Scripting

Sort a file content using one column

Hello All, I have a file which have content as below. 03/09/2014 10:35 AM 618 Admin\rick pqr_ klm2_pog12_20140309_c.xlsx 03/10/2014 10:35 AM 618 user\test01 mplz_ fgh2_lal12_20140310_c.xlsx 03/17/2014 10:35 AM 618 Admin\vick abc_ xyz2_bc12_20140317_c.xlsx 03/18/2014 ... (2 Replies)
Discussion started by: kumar30213
2 Replies

9. Shell Programming and Scripting

Change data in one column with data from another file's column

Hello, I have this file outputData: # cat /tmp/outputData __Capacity^6^NBSC01_Licences^L3_functionality_for_ESB_switch __Capacity^2100^NBSC01_Licences^Gb_over_IP __Capacity^1837^NBSC01_Licences^EDGE_BSS_Fnc __Capacity^1816^NBSC01_Licences^GPRS_CS3_and_CS4... (1 Reply)
Discussion started by: nypreH
1 Replies

10. UNIX for Beginners Questions & Answers

How to insert data into black column( Secound Column ) in excel (.XLSX) file using shell script?

Source Code of the original script is down below please run the script and try to solve this problem this is my data and I want it column wise 2019-03-20 13:00:00:000 2019-03-20 15:00:00:000 1 Operating System LAB 0 1 1 1 1 1 1 1 1 1 0 1 (5 Replies)
Discussion started by: Shubham1182
5 Replies
esdctl(1)							   User Commands							 esdctl(1)

NAME
esdctl - Enlightened Sound Daemon (esd) control program SYNOPSIS
esdctl [-h] [-s hostname:port] command DESCRIPTION
The esdctl utility is a command-line control program for the Enlightened Sound Daemon (esd). OPTIONS
The following options are supported: -s hostname:portContact the esd server on hostname at port. You can also specify this option as follows: --server=hostname:port -h Display help text, and exit. OPERANDS
The following operands are supported: command The following commands are supported: allinfo Get player and sample information from the server cache sample Cache a sample in the server free name Uncache a sample in the server getid name Retrieve a sample id, given the sample name lock Do not allow foreign clients to use the server loop name Make a cached sample loop off Suspend sound output so that other programs can use the audio device (this is the same as the standby option) on Resume sound output so that only esd can use the audio device (this is the same as the resume option) pansample id lefSetidefault panning for a sample, where id is the sample ID, and left and right are integers in the range 0 to 255 panstream id lefSetipanning for a stream, where id is the stream ID, and left and right are integers in the range 0 to 255 play name Play a cached sample once resume Resume sound output so that only esd can use the audio device (this is the same as the on option) serverinfo Get server information from the server standby Suspend sound output so that other programs can use the audio device (this is the same as the off option) standbymode Check whether the server is on standby stop name Stop the looping sample at the end unlock Allow foreign clients to use the server EXAMPLES
Example 1: Putting esd into Standby Mode example% esdctl standby Example 2: Ending Standby Mode example% esdctl resume Example 3: Loading a sample into the esd cache example% esdctl cache info.wav Sample <3> uploaded. Name = esdctl:info.wav This output indicates that the sample id is 3, and the sample name is esdctl:info.wav. Example 4: Getting a sample id from the esd cache example% esdctl getid esdctl:info.wav Example 5: Playing a sample from the esd cache example% esdctl play esdctl:info.wav Example 6: Playing and looping a sample example% esdctl loop esdctl:info.wav Example 7: Stopping a looped sample that is being played example% esdctl stop esdctl:info.wav Example 8: Removing a sample from the esd cache example% esdctl free esdctl:info.wav Example 9: Setting panning for a stream example% esdctl panstream 1 100 155 Example 10: Setting panning for a sample example% esdctl pansample 1 155 100 EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/esdctl Executable for Enlightened Sound Daemon control program ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-audio | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
esdcat(1), esdplay(1), esdrec(1), esdsample(1), esdmon(1), esd-config(1), libesd(3) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003. SunOS 5.10 8 Jan 2003 esdctl(1)
All times are GMT -4. The time now is 04:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy