Visit The New, Modern Unix Linux Community

Accessing files in batch

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Accessing files in batch
# 1  
Accessing files in batch

I have a list of files having extension .sy in a folder. I want to find such files and print the first two columns of the files to new extension .tmp
# 2  
I could interpret your requirements several ways. Please provide some sample input files and the desired output file or files. And explicitly state the field separator(s) that are used in the input files and the field separators you want in the output file(s).

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #367
Difficulty: Medium
The Single UNIX Specification specifies vi, so every conforming UNIX system must have it.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to exclude .NFSxxx files in clear old files batch script

I am new to Shell Scripting and need some help. The following batch job has been failing for me due to the .nfsxxx files in use. I need to know how to modify the following script to exclude the .nfsxxx files so this batch job will not fail on me. I have done lots of googling and keep coming back... (2 Replies)
Discussion started by: kimberlyg2007
2 Replies

2. IP Networking

Using Apache2 to Store Files for Accessing with wget?

Hello All, I have a Virtual Machine that I basically use for just testing stuff on. It is running SLES 11.1 and Apache2. I was able to get Apache2 set-up and working... I was able to insert a basic index.html page (i.e. a simple "Hello World" html page) just to check and make sure I can... (4 Replies)
Discussion started by: mrm5102
4 Replies

3. Shell Programming and Scripting

Executing a batch of files within a shell script with option to refire the individual files in batch

Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below. I am on a solaris server btw. Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose. ... (2 Replies)
Discussion started by: goddevil
2 Replies

4. Shell Programming and Scripting

Accessing Multiple files using for loop

Hi All, I have some files in my directory, and i want to pull all data using for loop....I am using following code but getting error..! for file in {file1, file2, file3, ..... filen} do L="$(tail -1 $file)";NUM=${L%%|*};DAT=${L##*|} echo $NUM>>filedata.txt done Error: tail:... (3 Replies)
Discussion started by: fidelis
3 Replies

5. UNIX for Dummies Questions & Answers

accessing windows files from unix

Hello, I am new to Unix and I would like to know how can I see my files from Windows desktop. When I type ls, I can see a list of files-directories including Desktop, but when I cd Desktop, and then ls there is a message 'Link to old Desktop'. (The big picture is to build a sundials library but... (4 Replies)
Discussion started by: s097
4 Replies

6. UNIX for Dummies Questions & Answers

Accessing UNIX files through visionFS/samba

Hello, I was wondering, for a windows application accesing UNIX files via VisionFS or SAMBA what would be a preferred way to read and process a large number of records? Up to 50 users could be accessing this file at the same time. 1. for each record - open file, read record, close file ,... (0 Replies)
Discussion started by: kirilll7
0 Replies

7. Shell Programming and Scripting

Accessing files with perl

Hello i am new to Perl and i have a question. I am trying to read a file that has the following format: 14/4/2008 8:42:03 πμ|10800|306973223399|4917622951117|1||1259|1|126|492|433||19774859454$ 14/4/2008 9:13:08 πμ|10800|306973223399|306970097423|1||1264|1|126|492|878||19774859762$... (2 Replies)
Discussion started by: chriss_58
2 Replies

8. UNIX for Dummies Questions & Answers

Accessing files on unix share from xp?

Sorry if the is in the wrong section, but would like to know if anyone can help with the following I am on a network using Windows XP and am having problems viewing/manipulating files on one of the shared drives, which happens to be a snap server. I have no other problems with any of the other... (1 Reply)
Discussion started by: MrB
1 Replies

9. UNIX for Dummies Questions & Answers

Accessing files/folders with spaces

Hi there, our unix and windows are related. i.e. if i save a file while being on windows my unix profile would contain the same file, at the same location. so i can access all my files through unix prompt. but if i save a file/folder being on windows account and put spaces between the name of... (3 Replies)
Discussion started by: a25khan
3 Replies

10. UNIX for Dummies Questions & Answers

Accessing Files on another drive

Hey..alright heres the deal I'm going to do a triple boot if you would Win98SE, Win2K, and Redhat Linux 7.1 now I have two HDs each with 30 gigs i've allowed one HD to the OS's with 10 gigs each...the third I intend to be one for windows to pull things thats compliant with both 98 and 2k and store... (2 Replies)
Discussion started by: PravusMentis
2 Replies

Featured Tech Videos