Programming :: Join 2 AWK Scripts?
May 4, 2010
with my question (I�m using Cygwin). How can I join the 2 AWK scripts showed below in a unique script avoiding use temp file?
I have this input file Pipe separated. Code: CATEGORY1|CATEGORY2|CATEGORY3|CATEGORY4
String3|MUSIC/OLDIES/POP/80S/SONGW|String4|
String4|MUSIC/OLDIES/ROCK/70S/SONGX|String5|
[code]....
View 1 Replies
ADVERTISEMENT
Mar 2, 2011
I am trying to understand the join command. I wish to join two files:
Code:
$ cat test1
a 0
b 2.51
c 19.85
$ cat test2
a 0
b 2.51
[Code]...
this is great but I do not understand why join ignores the -e flag and fails to insert FOO in the empty field.
View 1 Replies
View Related
Jul 1, 2010
I have a large CSV file, tab-delimited with CRLF at the end of each line. Each line should contain 5 fields (i.e. NF == 5) However, there are rogue CRLF characters in the middle of some records, causing records to be split across two lines. I want to scan each line, check the field count and if it's !=5 then join that line to the following line. Example input might be;
Code:
one two three four five
six seven eight nine ten
eleven tw<CRLF>
elve thirteen fourteen fifteen
[code].....
View 2 Replies
View Related
Aug 19, 2010
I have a bunch of files that contain a date, then data. When I use join, I get exactly the output I need. But manually joining the first with the second, then that output with the third and so on would take days. I have thousands of files. Can any of you folks help me write a script that would do this?To put it another way, for clarity's sake, here is what I am currently doing
If I were to repeat that 3000 times the final output would be what I need. I know a simple script would do this for me, but I can't figure out how to write it.
View 12 Replies
View Related
Nov 26, 2010
I have been searching previous posts but could not find an example which works with my data. I think I might be the spaces in my fields. I have a massive data file and need to join 5 line blocks separated by a comma.
Code:
2
111.222.333.444
host.edu
[code].....
View 8 Replies
View Related
Apr 30, 2011
Am a bit bewildered on the output of this "join" comad. I'm expecting it to output the 2nd and 3rd columns of both text1.txt and text2.txt. However, it somehow misses some of the columns from text1.txt. For example, rows 1, 2, 8, and 14 are working as expected. The rest of the row aren't.
Code:
cat text1.txt
20110429,10480,Y
20110429,5202,Y
20110429,19434,Y
20110429,19417,Y
[code]....
View 3 Replies
View Related
Jun 19, 2011
I want to join .ogv files that have been encoded with my all time favourite encoder 'thoggen'? I know cat will join VOB files. The cat command is making very strange noises in my terminal and sending out screwed up letters that i have never seen..)
View 5 Replies
View Related
May 11, 2010
I've got a collection of comics on my computer which consist of single images in .jpg. I am trying to join them all to a big .pdf, so that I end up with one e-book per comic instead of a bunch of single images. I already tried importing it to Open Office, but that way I will have to rescale every single image to fit a page, which would take ages.
View 3 Replies
View Related
Dec 17, 2010
How can I combine 2 video files into 1 using FFMPEG? I've tried the following command......
cat intermediate1.mpg intermediate2.mpg > intermediate_all.mpg
....the result being only 1 of the video files combined but the overall file size is equivalent to the 2 files combined together.
View 1 Replies
View Related
Mar 6, 2011
I don't know how to join centos v5 to domain cotroller 2k3.
View 4 Replies
View Related
Sep 7, 2010
I, I want to join to partitions, one of them is a primary partition sda3 ( 10Gb), but the second one is an extended, sda10 ( 10GB ). Can I make somehow to see them as a 20Gb partition without touching the other partitions?
View 6 Replies
View Related
Jun 7, 2010
I have a problem that I can not join openSUSE11.2 with KDE. the problem accour after i try to abort a software then I restarted the system.
I get the following message:
Code:
Could not start Kdeinit4. Check your installation.
I also try to repair the system file from the DVD without any success
View 9 Replies
View Related
Oct 7, 2010
Since i first installed my openSuse 11.2 on the laptop, I didn't know how much space I'd need for this OS to run. Now I've encuntered the worst - The root prartition is 6GB big and it might run out of space shortly (700MB left).I had Win XP on it but as soon as I learned openSuse to make basic tasks - i removed the ntfs partition.The HDD is 28GB, I have 6GB root, 7,5GB home, 750MB swap (512MB RAM) ans 14,65GB free space off the deleted NTFS.Is there any way to join the partitions, so the root can be 16GB in space and home around 12GB?
Or maybe just make another second /home partition and use a program to allocate the "missing bytes" from root to another partition if it runs out of space?
View 9 Replies
View Related
Oct 13, 2010
I want to use the command line join utility on two files. Unfortunately, they're gzipped. Because they're both gzipped, I can't use gzip -cd. Is there a slick way to do this without having to unzip them?
View 1 Replies
View Related
Jul 23, 2011
Searching Google on how to join/merge many mp3 files, it suggests that I should just cat them together.That might "work", but clearly it is not the correct way to do it, as each header and set of IDv3 tags will also be concatenated.Does a Linux program exist that can be scripted to join/merge many mp3?Can mplayer/mencoder/ffmpeg do it?
View 2 Replies
View Related
Mar 11, 2010
Continuation of this archived thread: [URL] I ran into the same problem, the inability to join a meeting via GoToMeeting, when two potential contracts both requested me to use it on the same day! I received this error from their website:
[Code]...
View 8 Replies
View Related
Jul 4, 2010
I want to join 4 flv files,I am running Ubuntu 10.4 LTS seems to me that joining flv files in Ubuntu it's a very difficult task.
View 2 Replies
View Related
Jun 9, 2010
I put a Lucid 10.04 box on a Windows AD network. I want it to join the domain. I used likewise-open5_5.0.3991.1-0ubuntu2_i386
I ran
1. sudo apt-get update
2. sudo apt-get install likewise-open
3. sudo domainjoin-cli join fqdn of your domain Administrator
4. sudo update-rc.d likewise-open defaults
5. sudo /etc/init.d/likewise-open start
After step 3, I get
Joining to AD Domain: mydomain dot local
With Computer DNS Name: ubuntu dot mydomain dot local
Administrator(at)MYDOMAIN dot LOCAL's password: [I entered it]
Error: Lsass Error [code 0x00080047]
40286 (0x9D5E) LW_ERROR_LDAP_SERVER_DOWN - Unknown error
Im just a Windows schlep new to Linux. I dont even know where to find things like /etc/nsswitch.conf--winbind, let alone how to edit them.
"You are only allowed to post URLs to other sites after you have made 15 posts or more" It took me an hour to get this to post. I attached a text file without all the spaces and 'dots'.
View 6 Replies
View Related
May 30, 2010
how can i join linux and mac machine with windows domain?
View 1 Replies
View Related
Sep 28, 2009
I have a centos 5 server joined to a win2003 active directory domain. It's a virtual machine, so i had to sync the date (ntpdate) because it was 12 minutes different. It worked, but not ntlm authentication is not working anymore. If i rejoin the domain i get:
net ads join -U administrator@MYDOMAIN.COM
administrator@MYDOMAIN.COM's password:
Failed to set password for machine account (NT_STATUS_DISK_FULL)
Failed to join domain: NT_STATUS_DISK_FULL
View 5 Replies
View Related
Aug 22, 2010
I have 15 or so debian lenny machines, and a xen server that I would like to join to the windows 2003 AD domain controller. The main goal is I would like the windows / linux user names and passwords to be the same on each system. Only 10 or so users need access to the machines but the passwords sometimes are different. How should I go about accomplishing this ?
I was told that openldap may be a solution. But from what I've read about it sounds like its just a mimic or window AD and doesnt sync with it, at least natively ?
View 2 Replies
View Related
Sep 28, 2009
I have installed Fedora 11 and all updates. Samba 3.4.1. When join to domain from WinXP box with sp3 show error. The specified network password is not correct.
View 9 Replies
View Related
Nov 27, 2010
I have to merge two different pdf files and I don't know how to do this. ..(I use opensuse 11.3 with gnome).
View 9 Replies
View Related
Mar 11, 2010
I am starting a MCSE course and part of it is to create and configure a domain etc etc I have done this and all my windows XP and 7 machines on my LAN are now functioning as part of the domain just great.
Unfortuntely, I have several Open suse machines which are currently not part of the domain yet (they are in a basic Workgroup).
get these computers onto the domain so that a user can log on using their domain credentials and I can apply security policies and what not?
View 9 Replies
View Related
Nov 19, 2010
Where can I find information about how to get OpenSUSE 11.3 to join a Windows Domain that uses Kerberos?
View 1 Replies
View Related
Oct 24, 2010
How do you join multiple MP3 files into one? "cat" and "mp3wrap" are no good as they produce non standard MP3 files. I know I can use audacity, but when you have 1000's of MP3 files to join into one, it takes too long.
View 2 Replies
View Related
Aug 12, 2011
I have $db and $DATE set in my bash script, then I need to join them like this: mysqldump --user=usr --password=pss --databases $db | gzip > /backups/sqlNew/$db_$DATE.sql.gz;
Unfortunately, that doesn't work. How do I properly join those 2 variables into a filename?
View 1 Replies
View Related
Jan 6, 2010
I'm using a pppoe internet connection, when enter connection manually everything works fine but when connect automatically on startup (put script in ect/init.d/) the connection is ok and works, but applications can't join internet like firefox, chrome, only terminal and lynx browser can use internet! ping responds are OK
View 8 Replies
View Related
Feb 12, 2010
I've installed Ubuntu 9.10 in my office desktop. as a newbie in the world of linux, i really do not know much about it. I want to join my desktop in our domain. i already have the ip addresses of the DNS servers but i dunno where to put it. i've installed likewise open and try to join the domain but it displays the following errors: Manual Configuration Required:
The configuration stage 'open ports to DC' cannot be completed automatically. Please manually perform the following steps and rerun the domain join: Some required ports on the domain controller could not be contacted. Please update your firewall settings to ensure that the following ports are open to 'MARVEL2.LBPNET':
88 UDP
389 UDP
464 UDP
445 TCP
View 1 Replies
View Related
Nov 27, 2010
How to use ffmpeg or memcoder to join two .ogv files into a single .ogv ??Let's suppose the first .ogv video file is named as "01.ogv" and the resolution is 800*600;the second .ogv video file is named as "02.ogv" and the resolution is 720*576.I'd love to join two video files into a whole one, with the resolution 320*240.
View 1 Replies
View Related