01-16-2009
Bash script - integrate two files
I wrote script in bash which generates this report "users.csv":
Quote:
@admin;;
user1;yes;
user2;yes;
user3;yes;
@develop;;
user4;no;
user5;yes;
user6;no;
user7;no;
@progs;;
user8;no;
user9;no;
...
I wrote script in bash which generates this report "groups.csv"
Quote:
@admin;path1;12;
user9;path10;1;
@admin;path2;12;
@develop;path3;12;
@develop;path4;1;
@progs;path5;1;
@progs;path6;1;
@progs;path7;1;
@progs;path8;1;
...
I want to integate two reports: "users.csv" and "groups.csv".
I want like so that "result.csv":
Quote:
@admin;path1;12;;;
@admin;path2;12;;;
user1;@admin;yes;12;
user2;@admin;yes;12;
user3;@admin;yes;12;
@develop;path3;12;;;
@develop;path4;1;;;
user4;@develop;no;12 1;
user5;@develop;yes;12 1;
user6;@develop;no;12 1;
user7;@develop;no;12 1;
@progs;path5;1;;;
@progs;path6;1;;;
@progs;path7;1;;;
@progs;path8;1;;;
user8;@progs;no;1;
user9;@progs;no;1;
Thx
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
#!/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
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
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
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
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
LEARN ABOUT DEBIAN
vavoom-dedicated
vavoom(6) Games Manual vavoom(6)
NAME
vavoom - The most advanced Doom/Heretic/Hexen/Strife source port around!
SYNOPSIS
vavoom [ -opengl ] [ -d3d ] [ -particles n ] [ -surfcachesize n ] [ -nosound ] [ -no3dsound ] [ -nomusic ] [ -cddev file ] [ -openal ] [
-nomouse ] [ -nojoy ] [ -nolan ] [ -noudp ] [ -ip ip_addr ] [ -noipx ] [ -mpath ] [ -port n ] { [ -freedoom] | [ -doom ] | [ -doom2 ] | [
-tnt ] | [ -plutonia ] | [ -heretic ] | [ -hexen ] | [ -strife ] } [ -game directory ] [ -devgame directory ] [ -devsnd sndinfo_script ] [
-progs directory ]
DESCRIPTION
Vavoom is a source port based on sources of Doom, Heretic, Hexen and a little bit from Quake. Supported platforms are Windows and Linux.
Vavoom has a graphical launcher (vlaunch).
Graphic Options
-opengl
selects OpenGL driver
-d3d selects Direct3D driver
-particles <count>
specifies number of particles to use, default is 2048, but you can't have less than 512 (i.e. you can't disable them)
-surfcachesize <size>
specifies size of surface cache memory, in kilobytes
Sound Options
-nosound
disables all sound, music and CD-Audio
-nosfx disables sound
-no3dsound
disables 3D sound, use original mode, Windows version only
-nomusic
disables music
-nocdaudio
disables CD music
-cddev <file>
specifies CD device file, default /dev/cdrom, LINUX version only
-openal
enabled OpenAL driver.
Input Options
-nomouse disables mouse
-nojoy disables joystick
Network Options
-nolan disables all LAN drivers
-noudp disables TCP/IP driver
-ip <address>
specifies IP address, Windows version only
-noipx disables IPX driver
-mpath enables MPATH TCP/IP driver, DOS version only
-port <port>
sets default LAN port
Game selection
-freedoom look only for FreeDoom IWAD files
-doom look only for Doom IWAD files
-doom2 look only for Doom 2: Hell On Earth IWAD files
-tnt look only for Doom TNT: Evilution IWAD files
-plutonia
look only for Doom: The Plutionia Experiment IWAD files
-heretic
look only for Heretic IWAD files
-hexen look only for Hexen IWAD files
-strife
look only for Strife IWAD files
Custom games and development
-game <directory> specifies custom game.
-devgame <directory>
like -game, but also sets Vavoom in development mode.
-devsound <SNDINFO_script>
sets sound development mode, uses given SNDINFO script, sounds and music are loaded form archive directory, which is specified in
script.
-progs <directory>
specifies directory where to look for progs. Server progs are loaded from file svprogs.dat, client progs - clprogs.dat. Path must
include ending slash.
Example: -progs progs/myprogs/
-file <file1>[<file2>...]
specifies additional files.
-iwaddir <dir1>[<dir2>...]
specifies additional directories where to look for IWAD files.
Debugging Options
-debug creates a debug file basev/debug.txt with all console messages.
-starttime <time>
sets start time, not in LINUX version and dedicated servers
-rhide prints debugfile to stderr, in DOS version Sys_Error exits with call frame traceback
More Information
http://vavoom-engine.com/wiki/index.php?title=Command_line_arguments
/usr/share/doc/vavoom/vavoom.txt.gz
Doom is a registered trademark of id software (http://www.idsoftware.com/).
Author
See the copyright file on /usr/share/doc/vavoom/copyright
games vavoom(6)