Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[?] concentrate files

Status
Not open for further replies.

shyg

Technical User
Jul 12, 2004
20
US
I am trying to concentrate three files and create a newfile containing the output

SAMPLE CODE:
Code:
test >> test1 >> test2 > newfile
This results with only "test" being added to file "newfile"

SAMPLE CODE:
Code:
test > test1 > test2 > newfile
Same result

ALSO...ne know how to view file permissions?
 
Figured out what I was doing wrong when combineding files.

Alhough I could still use some help finding hte command which lists file permissions.
 
To concatenate files, you can use "cat":
Code:
>cat file1 file2 file2 >allfiles
To view file permissions, use the long for of ls:
Code:
>ls -al
-rwxr-xr-x    1 User   None      11948 Jul 15 01:01 a.exe
To change file permissions, use chmod, and use chown to change ownerships.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top