10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am trying to backup the whole folder which contains years of data and huge size, some files are > 10GB. I want keep the exact organization of the folder, except that for bigger file only part of it (say head -50, or simply only the name of the file) will be kept. Then the structure of the... (2 Replies)
Discussion started by: yifangt
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix.
In this forum some days back, I have read something like below:
1) Do not use perl if awk can do your work.
2) Do not use awk if sed can do your work.
.
.
.
I do not re-collect the whole thing. I think it is good to know the precedence of using these... (2 Replies)
Discussion started by: Prathmesh
2 Replies
3. Shell Programming and Scripting
Hi, I only have a very limited understanding and experience with writing code and I was hoping I could get some help.
I have a dataset of two columns (txt format, numbers in each row separated by a tab)
Eg.
1 5
2 5
3 6
4 7
5 6
6 6
7 ... (5 Replies)
Discussion started by: Emred_Skye
5 Replies
4. Shell Programming and Scripting
hello everybody,
I have some files in directory.each file contain some data.
my requirement is add the count of each line of file in head of each file.
any advice !!!!!!!! (4 Replies)
Discussion started by: abhigrkist
4 Replies
5. UNIX for Advanced & Expert Users
hi,
Here my doubt is can we create a file using head/tail command in unix.
for example: my file consists 2000 lines , i want to cut it into 2. does this work please give correct command line.
head -1000 abc.txt > acd.txt
tail -1000 abc.txt > bdc.txt
hi,
Here my doubt is can we... (5 Replies)
Discussion started by: chittisri
5 Replies
6. Shell Programming and Scripting
Hi, I have the following problem. I have files with one column of data (let's say file1.dat, file2.dat...file6.dat), and I would like to record the first value of the column of each file into another file (let's name it fileall.dat), which would have the the six values, one in each column. I use to... (4 Replies)
Discussion started by: josegr
4 Replies
7. Programming
Under Solaris 10,I compile following file,
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/termios.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#define _IO_UNBUFFERED __SNBF... (1 Reply)
Discussion started by: konvalo
1 Replies
8. Programming
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <sys/mkdev.h>
int
main(int argc, char *argv)
{
int i;
struct stat buf;
... (4 Replies)
Discussion started by: konvalo
4 Replies
9. Shell Programming and Scripting
i have to print first n lines of a file. how can i do that without using head command. for some reason i do not want to use Head. is there a way to get that result using awk or sed?.
i an using this on korn shell for AIX
Thanks.. (7 Replies)
Discussion started by: dareman123
7 Replies
10. UNIX for Dummies Questions & Answers
I am trying to do a head on a mainframe file and on doing ti just gives me a blank screen with nothing on it.
however, when i do a tail for the same file...i get a few lines on the screen.
i know tht mainframe files have all the records on one line...does this have to do something with this.... (10 Replies)
Discussion started by: alfredo123
10 Replies