I want to append file names at the beginning of a line for each row
file content
Code:
abc.txt.gz 123|654|987
bcd.txt.gz 876|trf|kjh
I want a single output file with below format
Code:
abc.txt.gz|123|654|987
bcd.txt.gz|876|trf|kjh
This one is working but only with unzip files,need to have something like this working with zip files as i cannot unzip the files ...
Code:
awk '{pr
Hi,
When I do
Code:
ls -l | grep -h STRING
I need not only to get those files, but also the parent folder of those files,
no idea how do that.
BTW the names of those parent folders are never longer than 3 digits, if that helps.
Any assistance most welcome,
/bw,
OmarKN
Moderator's Comments:
Hello,
i try to create dir in C like that:
Code:
mkdir("/home/chercheur/1");
but when i try to open this directory: i have this message
Code:
Vous n'avez pas les permissions nécessaires pour afficher le contenu de «*1*».
have you an idea please
Thank you.
Moderator's Comments:
Code:
sort -t "~" -k 1.19,1.29 -k 2.1,2.5
in unix
- I have to understand what exactly this command will do ?:wall:
Moderator's Comments:
Please use code tags next time for your code and data.
Hi everyone,
I want to create 4000 directories with names like dir0001 ... dir 0100 till dir4000 and move 100 files in each.
I am using this :
Code:
ls|xargs -n100|awk ' {i++;system("mkdir dir"i);system("mv "$0" -t dir"i)}'
I get the directory names at dir1, dir2 etc.
Hi,
I have a folder which contains some files like this.
Code:
bin.000001
bin.000002
bin.000003
bin.000004
bin.000005
bin.000129
bin.index
I want to copy all these files to a new folder except the last files.
Please provide some ideas.
Moderator's Comments:
Please use next time code ta
I have a requirement, where in we need to SFTP files from the Unix box to the Windows server.
Since we are putting files...Where would we place the public/private keys from the Unix servers??
Any default path as such???
How would the sftp happen from Unix to Windows...Please help...
Moderator's Comments:
hello everyone,
I am trying to compare two files and have the result in a new files. When I used diff I am getting the header, '<' and '>' in my result which I don't want to have it in my output file. :wall:
Code:
opt/sam/input: diff file1.txt file2.txt
1,20d0
< 16,ZA,
< ZJ,08,
< Z7,03,
Any suggestions???
hi,
i want to PASTE two files, with a delimiter in between, using awk and pipe the output to another file. i am able to achive the reqirement using PASTE command.