If i have a log file record.txt, with 10 fields
- First field is datetime
- 7th field is status
- 8th filed is name
- The last field (10th) is epoch time of the first field
How do i create a new flat file record combine.txt which has 10 new fields
- first field is datetime in epoch "In Use" of the name like chicken
-2nd fields to 10 fields is from "Available" of that name like chicken.
I have problem like we have 2 In Use
How it select and use only the earliest one?
and if In Use but not available yet then it should be now time?
Hi,
I want to print certain fields from my data file depending on certain conditions. Somebody pls let me know how to send it to awk.
The command below is the one which I want to use in a shell script and this prints fine
cat ./datafile.dat | grep -i $SEARCH_STR | awk -F: '{ print $1 $2 $3... (5 Replies)
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
How do I create a script that provides a count of distinct values of a particular field in a file utilizing commonly available UNIX commands (sh or awk)?
Field1|Field2|Field3|Field4
AAA|BBB|CCC|DDD
111|222|333|777
AAA|EEE|ZZZ|EEE
111|555|333|444
AAA|EEE|CCC|DDD
111|222|555|444
For... (2 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)
Hi experts,
I need to print the first field first then last two fields should come next and then i need to print rest of the fields.
Input :
a1,abc,jsd,fhf,fkk,b1,b2
a2,acb,dfg,ghj,b3,c4
a3,djf,wdjg,fkg,dff,ggk,d4,d5
Expected output:
a1,b1,b2,abc,jsd,fhf,fkk... (6 Replies)
I'm trying to compare 2 files for differences in a selct number of fields. When differnces are found it will write the whole record of the second file including appending '|C' out to a delta file. Each record will have 20 fields, but only want to do comparison of 1st 15 fields. The 1st field of... (7 Replies)
Hi All
I would like to modify a file like this:
>antax gioq21 tris notes
abcdefghij
klmnopqrs
>betax gion32 ter notes2
tuvzabcdef
ahgskslsooin this:
>tris
abcdefghij
klmnopqrs
>ter
tuvzabcdef
ahgskslsoo
So, I would like to remove the first two fields(and output field 3) in record... (4 Replies)
Hi
I have a file as below
<field1> <field2> <field3> ... <field_num1> <field_num2>
Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all fields.
I tried this and it doesn't sort on the difference field .. Appreciate your help.
cat... (9 Replies)
In the awk below I am trying to output those lines that Match between file1 and file2, those Missing in file1, and those missing in file2. Using each $1,$2,$4,$5 value as a key to match on, that is if those 4 fields are found in both files the match, but if those 4 fields are not found then missing... (0 Replies)
In the awk below I am trying to use the file1 as a match to file2. In file2 the contents of $5,&6,and $7 (always tab-delimited) and are copied to the output under the header Quality metrics. The below executes but the output is empty. I have added comments to help and show my thinking. Thank you... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT DEBIAN
chicken-uninstall
CHICKEN-UNINSTALL(1) General Commands Manual CHICKEN-UNINSTALL(1)NAME
chicken-uninstall - uninstall extension library
SYNOPSIS
chicken-uninstall [OPTION | PATTERN] ...
DESCRIPTION
chicken-uninstall removes one or more already installed extension libraries for the CHICKEN Scheme system. PATTERN may be a regular
expression naming multiple extensions or just an extension name.
OPTIONS
Enter chicken-uninstall -help for a list of supported command-line options.
ENVIRONMENT VARIABLES
CHICKEN_PREFIX
The installation prefix where CHICKEN Scheme and its support files and libraries are located. Defaults to the installation time pre-
fix given when configuring the system.
CHICKEN_INSTALL_PREFIX
An alternative installation prefix that will be prepended to extension installation paths if specified.
CHICKEN_REPOSITORY
The path where extension libraries are installed. Defaults to the package-library path selected during configuration (usually
/var/lib/chicken/<binary-version> )
DOCUMENTATION
More information can be found in the CHICKEN User's Manual
BUGS
Submit bug reports by e-mail to chicken-janitors@nongnu.org , preferrably using the chicken-bug tool.
AUTHORS
The CHICKEN Team
SEE ALSO chicken-install(1)chicken-status(1)chicken(1)chicken-bug(1)
13 Aug 2008 CHICKEN-UNINSTALL(1)