Sponsored Content
Top Forums Shell Programming and Scripting Bash script - integrate two files Post 302277615 by cfajohnson on Friday 16th of January 2009 11:33:04 PM
Old 01-17-2009
Quote:
Originally Posted by patrykxes
I wrote script in bash which generates this report "users.csv":
I wrote script in bash which generates this report "groups.csv"

I want to integate two reports: "users.csv" and "groups.csv".
I want like so that "result.csv":

I would use the original data to create the format you want rather than use an intermediate format.

Alternatively, create intermediate files in a format that will be easier to work with.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Renaming files in a bash script

I'm doing a short batch script to compile po files producing output binary mo files. The compilation command is: msgfmt -o file.mo file.po so in order to compile I am appending .mo to the varible in a loop. It goes something like this: for i in `find . -name "*.po"` do echo... (2 Replies)
Discussion started by: Breen
2 Replies

2. Shell Programming and Scripting

Again integrate files - bash script

I wrote script in bash which generates this report "users.csv": I wrote script in bash which generates this report "groups.csv" I want to integate two reports: "users.csv" and "groups.csv". I want like so that "result.csv": (2 Replies)
Discussion started by: patrykxes
2 Replies

3. Shell Programming and Scripting

bash script to copy files

hey everyone, new here i have arch setup and i am using smbnetfs to mount some windows shares in /mnt/smbnet what i want to do is copy files from my home dir to a dir in /mnt/smbnet but i also need it to remove files if i have deleted them from my home dir seems that cp would be the... (8 Replies)
Discussion started by: dodgefan67
8 Replies

4. UNIX for Dummies Questions & Answers

Bash script to sort files

I've got a disorganized list of items and quantities for each. I've been using a combination of grep and sort to find out how much to buy of each item. I'm tired of having to constantly using these commands so I've been trying to write a shell script to make it easier, but I can't figure out how... (3 Replies)
Discussion started by: PTcharger
3 Replies

5. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies

6. Shell Programming and Scripting

Renumbering files bash script

I am new to the world of Linux scripting, and would like to make the following 2 scripts: I have 67 files named Alk-0001.txt to Alk-0067.txt I would like them to be numbered Alk-002.txt to Alk-0134.txt eg Alk-0001.txt > Alk-0002.txt Alk-0002.txt > Alk-0004.txt Alk-0003.txt > Alk-0006.txt ... (3 Replies)
Discussion started by: tollyboy_uk
3 Replies

7. Shell Programming and Scripting

Bash script for check files

I created this script for check whether specific files exist or not in the given location. but when I run this its always showing Failed - Flag_lms_device_info_20160628.txt do not exist Failed - Flag_lms_weekly_usage_info_20160628.txt do not exist but both files are existing. appreciate help... (2 Replies)
Discussion started by: lfreez
2 Replies

8. Web Development

Help to integrate Shell script with PHP

I have a shell script which takes user name and server name from the user and check the authentication type on that server like LDAP or VAS or local. It also provides various other info also such as owner of the ID and etc. I need this script to work on the browser where user can directly input... (2 Replies)
Discussion started by: Bhuwan Nazkani
2 Replies

9. Shell Programming and Scripting

How to integrate all the systemctl commands into a shell script to verify any daemon/agent service?

Hi, Can we integrate all the systemctl command into a shell script to verify any service with all the options of systemctl if service integrate with the operating system service management tools to deliver their functionality. sudo systemctl start <service_name> sudo systemctl stop... (1 Reply)
Discussion started by: Mannu2525
1 Replies
SMPTEFrame(3)							    libltcsmpte 						     SMPTEFrame(3)

NAME
SMPTEFrame - Raw 80 bit SMPTE frame. SYNOPSIS
#include <ltcsmpte.h> Data Fields unsigned int frameUnits:4 unsigned int user1:4 unsigned int frameTens:2 unsigned int dfbit:1 unsigned int colFrm:1 unsigned int user2:4 unsigned int secsUnits:4 unsigned int user3:4 unsigned int secsTens:3 unsigned int biphaseMarkPhaseCorrection:1 unsigned int user4:4 unsigned int minsUnits:4 unsigned int user5:4 unsigned int minsTens:3 unsigned int binaryGroupFlagBit1:1 unsigned int user6:4 unsigned int hoursUnits:4 unsigned int user7:4 unsigned int hoursTens:2 unsigned int reserved:1 unsigned int binaryGroupFlagBit2:1 unsigned int user8:4 unsigned int syncWord:16 Detailed Description Raw 80 bit SMPTE frame. Definition at line 140 of file ltcsmpte.h. Field Documentation unsigned int SMPTEFrame::binaryGroupFlagBit1 Definition at line 160 of file ltcsmpte.h. unsigned int SMPTEFrame::binaryGroupFlagBit2 Definition at line 168 of file ltcsmpte.h. unsigned int SMPTEFrame::biphaseMarkPhaseCorrection Definition at line 153 of file ltcsmpte.h. unsigned int SMPTEFrame::colFrm Definition at line 146 of file ltcsmpte.h. unsigned int SMPTEFrame::dfbit Examples: tests/decoder.c. Definition at line 145 of file ltcsmpte.h. unsigned int SMPTEFrame::frameTens Definition at line 144 of file ltcsmpte.h. unsigned int SMPTEFrame::frameUnits Definition at line 141 of file ltcsmpte.h. unsigned int SMPTEFrame::hoursTens Definition at line 166 of file ltcsmpte.h. unsigned int SMPTEFrame::hoursUnits Definition at line 163 of file ltcsmpte.h. unsigned int SMPTEFrame::minsTens Definition at line 159 of file ltcsmpte.h. unsigned int SMPTEFrame::minsUnits Definition at line 156 of file ltcsmpte.h. unsigned int SMPTEFrame::reserved Definition at line 167 of file ltcsmpte.h. unsigned int SMPTEFrame::secsTens Definition at line 152 of file ltcsmpte.h. unsigned int SMPTEFrame::secsUnits Definition at line 149 of file ltcsmpte.h. unsigned int SMPTEFrame::syncWord Definition at line 171 of file ltcsmpte.h. unsigned int SMPTEFrame::user1 Definition at line 142 of file ltcsmpte.h. unsigned int SMPTEFrame::user2 Definition at line 147 of file ltcsmpte.h. unsigned int SMPTEFrame::user3 Definition at line 150 of file ltcsmpte.h. unsigned int SMPTEFrame::user4 Definition at line 154 of file ltcsmpte.h. unsigned int SMPTEFrame::user5 Definition at line 157 of file ltcsmpte.h. unsigned int SMPTEFrame::user6 Definition at line 161 of file ltcsmpte.h. unsigned int SMPTEFrame::user7 Definition at line 164 of file ltcsmpte.h. unsigned int SMPTEFrame::user8 Definition at line 169 of file ltcsmpte.h. Author Generated automatically by Doxygen for libltcsmpte from the source code. Version 0.4.4 Fri Apr 27 2012 SMPTEFrame(3)
All times are GMT -4. The time now is 10:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy