Hi
I have afile with 15fields,say f1,f2....f15 delimited on comma. How can i swap the f1,f15 fields using unix shell commands or any script?
Thanks (3 Replies)
I have a CSV file with a variable number of fields per record. How do I print lines of a certain number of fields only? Several permutations of the following (including the use of escape characters) have failed to retrieve the line I'm after (1,2,3,4)...
$ cat myfile
1,2,3,4
1,2,3
$ # Print... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The assignment is to convert a text table to csv format. I've got the cleaning up done, but I need to swap two... (0 Replies)
I've run into a problem getting exactly what I want out of awk - some folks may recognize this as an output from Amazon's ec2-describe-instances:
Given the following:
INSTANCE i-4960f321
BLOCKDEVICE Line2Var2
TAG instance i-4960f321 Name web1
TAG instance i-4960f321... (2 Replies)
Hi Friends ,
I have file1.txt
1|b|46|123|47673|348738
2|c|63|124|7346|4783
3|y|45|125|5555|78789
output should swap the 4th field to the first field.
output
123|1|b|46|47673|348738
124|2|c|63|7346|4783
125|3|y|45|5555|78789 (3 Replies)
I need a awk command to select from a log-file only the lines that have on the 2nd field (considering "|" separator) one of the values 10.216.22.XX or 10.216.22.YY or 10.216.22.ZZ and on the 4th field only values that contain strictly digits. I want the command to work parsing the file only once (I... (2 Replies)
Hallo Team,
This is the command that i am running :
grep ",Call Forward Not Reachable" *2013*
this is the output that i am getting (i did a head -10 but the files can be more than 1000)
... (8 Replies)
Hallo Team,
I would like to replace filed 4 and 7 with filed 39 how can i achieve this ?
-bash-3.2$ cat dip1.csv| cut -f4,7,24,36,39 -d","|sort -u
+27113996891,+27113996891,196.35.130.52,828854047,+27873500077
+27116452690,+27825702918,10.0.109.13:5060,+27116452690,+27116452690... (2 Replies)
In the awk below, what I am attempting to do is check each line in the tab-delimeted input, which has ~20 lines in it, for a keyword
SVTYPE=Fusion. If the keyword is found I am splitting $3 using the . (dot) and reading the portion before and after the dot in an array a.
If it does have that... (12 Replies)
Discussion started by: cmccabe
12 Replies
LEARN ABOUT DEBIAN
pspp-dump-sav
pspp-dump-sav(1) PSPP Manual pspp-dump-sav(1)NAME
pspp-dump-sav - dissect SPSS system file
SYNOPSIS
pspp-dump-sav [-d | --data[=maxcases]] file...
pspp-dump-sav --help | -h
pspp-dump-sav --version | -v
DESCRIPTION
The pspp-dump-sav program reads each SPSS system file file and prints its contents. The output format is useful for debugging system file
readers and writers and for discovering how to interpret unknown or poorly understood records. End users may find the output useful for
providing the PSPP developers information about system files that PSPP does not accurately read.
OPTIONS
-d[maxcases]
--data[=maxcases]
By default, pspp-dump-sav does not print any of the data in a system file, only the file headers. Specify this option to print the
data as well. If maxcases is specified, then it limits the number of cases printed.
-h
--help Prints a usage message on stdout and exits.
-v
--version
Prints version information on stdout and exits.
BUGS
Some errors that prevent files from being interpreted successfully cause pspp-dump-sav to exit without reading any additional files given
on the command line.
AUTHORS
Ben Pfaff and John Darrington.
SEE ALSO pspp(1), psppire(1).
PSPP January 2012 pspp-dump-sav(1)