LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   simple open multiple test file command help (https://www.linuxquestions.org/questions/linux-newbie-8/simple-open-multiple-test-file-command-help-4175551262/)

atjurhs 08-20-2015 10:55 AM

simple open multiple test file command help
 
hi guys,

i want to open 4 tab files that are in a dir that has 51 or so tab files, so i know i don't want to use a command that has a * in it, that would open all of them and that would be bad, i want to open the 4 by calling the 4 files by their specific file name, but so far (in my own little test area) I can't get that to work. if i use a star in the cmnd below like this '*' the cmnd will run but then i have 51 open files :(

i'm using the find cmnd and passing that to exec like this

find . -name 'file1.tab file2.tab file3.tab file9.tab' -exec gedit {} +

once i have the proper cmnd i'm going to save that off in a text file so i can run the cmnd again at another time in a differnt directory that also has 51 tab files.

thanks! look forwad to hearing back,

tabby

atjurhs 08-20-2015 10:58 AM

oh, and is there a way to tell gedit, or one of the other editors, that when you open it to put in columns by tabs, because it is a tab formatted file. or do i have to use openoffice.org calc for that?

wagscat123 08-20-2015 11:20 AM

I don't think gedit has a column mode by default, and a few Google searches confirmed that. I saw in some places that Kate (KDE's text editor) has this feature. Someone else will have to offer advice on the find command. zypper/apt-get/yum/dnf install kate should install Kate if you think it's the best option.

Also, it is best practice to edit a thread-starting post rather than post a response to it if you meant to add a detail to your question. It'll show as having 0 responses and will attract more attention.

atjurhs 08-20-2015 12:46 PM

thanks waggie,

i do also have kate on my system

wagscat123 08-20-2015 01:45 PM

Kate can probably be installed - what's your distro?

It also seems Emacs and Vim support this as well.

atjurhs 08-21-2015 01:07 PM

wags I already have kate on my system, and i'm not so caring about having kate format the docs in tabs, although that would be a nice benny

what I need to figure out is the syntax of the command when I want to open multiple files without using a * but by listing just the ones i want by filename

tabby


All times are GMT -5. The time now is 02:45 AM.